Search Results for 'code'
-
AuthorSearch Results
-
January 20, 2018 at 12:54 pm #189548
Robin W
ModeratorI’ve now set up a quick test site for 2.65c5 to validate
I can confirm that
<?php echo do_shortcode("[bbp-forum-index]"); ?>doesn’t work but the shortcode on a page on it’s own does.
However your issue with profiles is a theme/bbpress one, it all works on my test site.
Can you try adding this to your themes css
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-topics { overflow: visible !important; }that seemed to fix it for your site, but I haven’t checked that it doesn’t create issues elsewhere !
January 20, 2018 at 4:31 am #189544Robin W
Moderatorok, 2.6 is trying to just load on bbpress content pages, but obviously is missing those that use code.
I’ll update the trac ticket
January 19, 2018 at 7:31 pm #189542TechHaus
ParticipantGood call! And guess what, it works if I use the shortcode on a page via the wordpress backend.
January 19, 2018 at 6:07 pm #189541Robin W
ModeratorSorry, but I support live versions, so I’m reluctant to load RC code to my test site, so I’ll keep asking you to do stuff if that’s ok !
Can you create a page and put the shortcode in there – I want to test if that makes a difference over using code to call it.
January 19, 2018 at 6:02 pm #189539TechHaus
Participant<?php echo do_shortcode("[bbp-forum-index]"); ?>January 19, 2018 at 5:53 pm #189538Robin W
Moderatorwhich shortcode are you calling ?
January 19, 2018 at 5:45 pm #189537TechHaus
ParticipantIt didn’t load the style for the shortcode on twentyfifteen either!
January 19, 2018 at 4:38 pm #189533TechHaus
ParticipantAnd here is right after I install 2.6, babble about cryptocurrency for a bit, and then hit refresh. The forum page looked normal, then I look at the front page and notice the CSS isn’t formatting the shortcode.
(no need to watch that, but just for the sake of documenting the issue. time stamp for when i look at it at 5 minutes 2 seconds. Also sorry about curses! Don’t watch if offended by bad language. My apologies.).
January 19, 2018 at 4:04 pm #189532TechHaus
ParticipantYes, correct! OMG, i recorded this…
I just hit save there with the shortcode on 2.5.14
At 20:05 if the video doesn’t load at the right time. Thanks again! You made me remember that I actually documented this so I don’t have to fire up a new wordpress instance to retest. I recorded every thing I’ve done so far on this bbpress installation.
January 19, 2018 at 3:11 pm #189529urbexjordan
ParticipantHi bbPress,
I am looking for help to make my bbPress full width, I’ve tried a bunch of CSS, tried to make a new bbPress.php template, nothing works.
Note – I am not the best coder , but I do know some stuff.
My issue (IMG)

I am trying to make it go full width, but keep that 30-50px padding on either side. Just my OCD kicks in with that stuff, lol.
bbPress Version: 2.5.14
My Theme: Socialize by GhostPoolJanuary 19, 2018 at 2:57 pm #189527TechHaus
Participant@robin-w, thank you for the response. Nothing too clever going on! There is a 999 priority to enqueue the site’s css after plugin css, to over-ride things like some woocommerce styles, but that seems like pretty normal practice. I don’t think that’s it. The plugin styles still load, in this case, just first.
Besides, the shortcode worked when i originally used bbPress 2.5.14, and the when i switched to bbPress 2.6 Release Candidate 5, the styles stopped loading.
Hmmm….
They were both (local and server) clean installations, and only contain bbpress plugins right now. I didn’t copy the databases over.
And yes, they work as expected on twentyfifteen.
Stumped! ahhh. Ty again.
January 19, 2018 at 1:10 pm #189520In reply to: Size of box for listing sub forums
emiralem
ParticipantHello Robin, Im using pixiehuge as isuzu. I changed codes like you said in pixiehuge theme (main.css) but my problem not solved yet.
Here is the my website forum http://e-sporturkiye.net
January 19, 2018 at 6:02 am #189514TechHaus
ParticipantHi Robin W. – just want to say that thank you so much for all the responses and help you give to this community. Super inspiring.
I ended up just uploading the theme and putting up a little dummy content.
The two areas of note I mention, on the front page, http://jockjams.com, you can see below the blog post that what the shortcode out put on my page isn’t styled.
However, if you dig around at http://jockjams.com/forums/ or go to http://jockjams.com/forums/topic/do-the-nets-suck/, these look ok.
Another place where there is an issue is if you go to some of the lists on the profile page:
http://jockjams.com/forums/users/bobby/topics/
That is a good example. The list is THERE, you can see it when you inspect the page. Somehow the styling (or lack of) just pushed it way off to the side.
Both of these looked right in twenty fifteen, and I know for sure the shortcode worked on bbPress 2.5.14 from wordpress plugin repository, but not on bbPress 2.6 Release Candidate 5 that I downloaded from this form.
I guess those are all of the details. I would love to know why the styling worked on twenty fifteen, yet it doesn’t work on my theme, while the other two examples above are styled correctly along with my theme and are being properly targetted by bbpress css as well for the list styling.
Thoughts?
Sorry if this is beyond the scope of this forum. I use JointsWP.com btw as my starter theme.
January 19, 2018 at 4:56 am #189513In reply to: Importing from Rainmaker; Topics’ post_parent = 0
Stephen Edgar
KeymasterI’d still prefer to see the database schema, not data that’s already been parsed.
From what I can see you’ve got various issues with that WXR data:
•
<wp:post_type><![CDATA[topic]]></wp:post_type><-topicshouldn’t be wrapped in![CDATA[/]], I’m not sure if that or any other instances apart from content will be affected by this.•
_wp_page_templateshouldn’t be included, if thepost_typewaspage, then yes, buttopicpost type shouldn’t have a_wp_page_templatemeta key, again, I’ve no idea what the resultant behaviour of this would be, maybe ok, maybe not.• You have the following, which is correct:
1327is the “forum ID”`
<wp:postmeta>
<wp:meta_key><![CDATA[_bbp_forum_id]]></wp:meta_key>
<wp:meta_value><![CDATA[1327]]></wp:meta_value>
</wp:postmeta>
`• Just above the above, you have the following which is *not* correct,
post_parentis *not* “post meta”, this should be in thewp_poststable and *notwp_postmeta`
<wp:postmeta>
<wp:meta_key><![CDATA[post_parent]]></wp:meta_key>
<wp:meta_value><![CDATA[1327]]></wp:meta_value>
</wp:postmeta>
`• Closer to the top of your code you have
<wp:post_parent>0</wp:post_parent>, this is where thepost_parentshould include that1327forum id.I suspect if you can get
1327into that last item above you’ll be all set, or at least progressed somewhat, I’m pretty sure the repair tools will be able to recalculate the topic meta once that is in, so that’s another option to repair any meta issues.This might be a handy reference https://codex.wordpress.org/Database_Description
Also checkout https://bbpress.trac.wordpress.org/ticket/2516, the file attached to that ticket is a pretty comprehensive WXR XML file of forum, topics, and replies layed out per the description in that ticket, it might be worth importing into a test site to help visualise the data when looking at the source of the XML file 🙂
January 19, 2018 at 3:14 am #189511In reply to: Importing from Rainmaker; Topics’ post_parent = 0
liderxlt
ParticipantThanks for answering…
As I mentioned in the open topic today https://bbpress.org/forums/topic/do-not-see-the-topic-in-forum/ What I did was prepare an xml file with the information to upload in the forums , topic and replies.I am using the plugin all import to load because it allows me to use cron tasks daily, not overload the server and not rewrite what is already loaded.
I can do the import and visualize it correctly in the dashboard. The problem is that it is not displayed in the frontend. As far as I could see the post_parent of the topic is 0 … It must be equal to _bbp_forum_id.
These are the parameters for the topic:
_bbp_topic_id = 2231
_bbp_forum_id = 2229
_bbp_reply_count = 0
_bbp_voice_count = 1
_bbp_forum_parent_id = 2229Parameters replies:
_bbp_topic_id = 2231
_bbp_forum_id = 2229
the_reply_parent_topic_id = 2229The other parameters, such as Post Status, are already automated.
The good thing about the import plugin is that it allows you to introduce functions in import http://www.wpallimport.com/documentation/advanced/execute-php/I leave an extract of the topic export, there you can see how it takes the values but not the post_parent one
<title>2586/15</title> <link>http://localhost/expedientes/forums/topic/2586-15/</link> <pubDate>Fri, 19 Jan 2018 03:22:16 +0000</pubDate> <dc:creator><![CDATA[liderxlt]]></dc:creator> <guid isPermaLink="false">http://localhost/expedientes/forums/topic/2586-15/</guid> <description></description> <content:encoded><![CDATA[<p style="text-align: center;"><strong><span style="text-align: start;"> <strong>CAUSA:</strong> JUICIO EJECUTIVO]]></content:encoded> <excerpt:encoded><![CDATA[]]></excerpt:encoded> <wp:post_id>2113</wp:post_id> <wp:post_date><![CDATA[2018-01-19 00:22:16]]></wp:post_date> <wp:post_date_gmt><![CDATA[2018-01-19 03:22:16]]></wp:post_date_gmt> <wp:comment_status><![CDATA[closed]]></wp:comment_status> <wp:ping_status><![CDATA[closed]]></wp:ping_status> <wp:post_name><![CDATA[2586-15]]></wp:post_name> <wp:status><![CDATA[publish]]></wp:status> <wp:post_parent>0</wp:post_parent> <wp:menu_order>0</wp:menu_order> <wp:post_type><![CDATA[topic]]></wp:post_type> <wp:post_password><![CDATA[]]></wp:post_password> <wp:is_sticky>0</wp:is_sticky> <category domain="topic-tag" nicename="2586-15"><![CDATA[2586/15]]></category> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_activity_id]]></wp:meta_key> <wp:meta_value><![CDATA[10]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_author_ip]]></wp:meta_key> <wp:meta_value><![CDATA[120.000.001]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_last_active_time]]></wp:meta_key> <wp:meta_value><![CDATA[2016-02-03]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_reply_count]]></wp:meta_key> <wp:meta_value><![CDATA[0]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_voice_count]]></wp:meta_key> <wp:meta_value><![CDATA[1]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_wp_page_template]]></wp:meta_key> <wp:meta_value><![CDATA[default]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_forum_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_forum_parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[post_parent]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[wp_get_post_parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> </item>Can it be solved with the correct function?
Thanks for your time @netwebJanuary 18, 2018 at 11:45 pm #189507In reply to: Importing from Rainmaker; Topics’ post_parent = 0
liderxlt
ParticipantHi Mike!
I have the same problem. https://bbpress.org/forums/topic/do-not-see-the-topic-in-forum/
Have you been able to solve the problem? I’m almost sure it’s the post_parent although I still can not assign a value to that paramenter. If I could do it with the others _bbp_forum_id, _bbp_reply_count, etc.When I’m doing the import I tried to force it with the function
<?php function pariente($id){ include "wp-load.php"; wp_get_post_parent_id( $id ); return ; } ?>But I have not succeeded
January 18, 2018 at 3:04 pm #189489TechHaus
ParticipantI just tried to insert the shortcode on a random page via the admin editor, and it worked fine.
So it has something to do with putting it in my template directly. Any ideas?
January 18, 2018 at 2:59 pm #189488TechHaus
ParticipantI even tried in another browser, so it wasn’t a cache issue.
It’s odd that everything else seems to work and style correctly, but not this shortcode.
I just tried
<?php echo do_shortcode("[bbp-forum-index]"); ?>And same issue. Hmmm…
January 18, 2018 at 2:42 pm #189485Topic: [bbp-topic-index] shortcode displaying without styles
in forum TroubleshootingTechHaus
ParticipantHi,
I started working on bbpress 2.5.14 last night and used the shortcode [bbp-topic-index] on my front page, and it rendered as expected.
Today I switched development to 2.6 Release Candidate 5, and now it is displaying without styles. For example, the all of the lists are showing up completely unstyled with bullets, etc.
However, when I switch to twentyfifteen and use the shortcode on a page, it looked fine.
Any ideas?
Sorry the site is only on my local server as of now, but I could upload later if necessary.
Thank you,
BobbyJanuary 18, 2018 at 1:29 pm #189482In reply to: we are ip and emails in the database?
Robin W
Moderatorthey are held in the postmeta table
so taking a topic or reply make a note of the id – in the example below it is 16191.
then go into the postmeta and enter this sql command
SELECT * FROMwp_postmetaWHEREpost_idLIKE '16191'assuming your table prefix is ‘wp_’
you see entries for both the IP and email
January 18, 2018 at 12:10 pm #189479In reply to: @mentions not working
pjbarry21
ParticipantDoes not autopopulate/work in forum discussions using the visual editor, although cutting and pasting or typing handles changes them into links upon saving — most of the time. Sometimes we have to go back in and edit/remove spaces around the entry for it to show up.
To try to get a little more functionality on a test site, I’ve added code from here: https://bbpress.org/forums/topic/mentions-not-becoming-links-some-times/ — but this only works in the text editor and not in the visual editor.
It does autopopulate in activity feeds and does work in resources (bpdocs).
January 17, 2018 at 5:45 pm #189462In reply to: Forum Description Appearance
Robin W
Moderatorok, I can’t help you with winscp, but what you need to achieve is the following.
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
bbPress will now use this template instead of the original
and you can amend thisso line 38 says
<div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>delete this and in its place put these lines
<div class="bbp-forum-content"> <?php setup_postdata(bbp_get_forum_id()) ; $excerpt = get_the_excerpt() ; echo $excerpt ; ?> </div>This will then put the first 55 characters of your content.
Once you have achieved that, come back and I’ll show you the second part.
January 17, 2018 at 12:44 pm #189450Topic: Main Forums Page doesn’t show up right
in forum Troubleshootingavaiya
ParticipantWordpress Version:4.9.2
bbPress Version: 2.5.14
Site: http://www.avaiya.comI just installed bbPress a few days ago and I see it automatically created this page:
https://www.avaiya.com/forums/
But when you click on it it doesn’t have the actual forum on it. It seems like this should be the main forum page, with all our Categories & Forums listed on that page.
I then watched a tutorial and realized I needed to create a page with the bbpress forum index shortcode. So I did that on the page below and now this page shows all the forums & categories on it.
The issue I still see, however, is that if you’re on one of the forum pages:
https://www.avaiya.com/forums/forum/community-discussions/
You still see the “Forum” text near the top and if you click on it it takes you
back to this page: https://www.avaiya.com/forums/How can I fix this?
Thanks!
January 17, 2018 at 9:48 am #189446In reply to: Noidex metatag to groups of pages
Process of Illumination
ParticipantHi and thank you very much,
we are close but not there yet: this last code works, but writes the meta-tag on <b>each page of the forum</b>, not only the archives.
How is it possible to make it work only for archives pages?
Thank you,
the Process
January 17, 2018 at 4:31 am #189437In reply to: Noidex metatag to groups of pages
Pascal Casier
ModeratorThat should be the correct functions.php, yes.
As the theme is not open sourced, I cannot see how the different archives and pages you mentioned are setup. If they are really bbPress pages, then the above should at least add the meta tag when looking at the source of the html page.You could also try (make sure to copy it from here on the forum, not from an email that you get):
add_action( 'wp_head', 'casiepa_add_noindex' ); function casiepa_add_noindex() { if ( bbp_is_topic_archive() || bbp_is_forum_archive() ) { wp_no_robots(); } }Maybe have the theme author have a look at the above code and ask him to add an option in the theme?
-
AuthorSearch Results