Search Results for 'code'
-
Search Results
-
Topic: Topic content not showing up
Hi,
I have the latest version of wordpress running (4.5.2) and latest version of bbPress.
Everything was working just fine before i moved my host from windows to Linux server.
Now i can see the forums and topics in each forum. but when i open a topic the content and replies are not shown in the pages, only the reply form shows up.
I can see the replies in the admin panel but clicking view from back end opens the front end reply to … without the reply content.I have already tried these :
1) disabling all other plugins
2) switching to wordpress default themes
3) creating a new page with bbPress shortcode
4) copying the php code provided in other forums
5) removing and re-installing bbPressit’s driving me crazy ! i have tried all 2 links on google’s 2 first pages for search results of “bbPress content not showing up”, “bbPress topic content not showing”, “bbPress replies not shown”,…
Best Regards,
KavehI have a custom wp role that I have displaying under each user author link in all replies. There are different custom roles depending on the user. I was able to use it by implementing this snippet (inserted on loop-single-reply.php):
<?php $user = new WP_User( bbp_get_reply_author_id() ); echo $user->roles[0]; ?>My question is how to get some text (with link) to show if a user has a specific custom role. For example, is user has “Graduate” role, I need a link with text to show under the role, in all the replies for all users.
I’m not coder by any means, but I realize it will probably take a php “if” statement. Any suggestions on how I might accomplish this? Thanks for any help.

I’m trying to add a forum description. I used
<?php bbp_forum_content(); ?>in loop-single-forum and didn’t work! Any other way I can do this? I have not modified any theme fifle, I simply copied loop-forums & loop-single-forums into my bbpress folder in my them folder
Hello,
I got an issue while trying to put a background color under the role name on my forum.
I added this to my function file :
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_get_role = bbp_get_user_display_role($replyid); $bbp_display_role = strtolower($bbp_get_role); $classes[] = $bbp_display_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );and this into my css file :
#bbpress-forums .participant .bbp-author-role { background-color: blue; #bbpress-forums .keymaster .bbp-author-role { background-color: red; #bbpress-forums .moderator .bbp-author-role { background-color: green;But it only works with the participant role. Maybe I’m not using the correct keymaster and moderator role name. Is someone already did that and can help me to sold it out ?
Thanks!
So Buddypress, by default, has a nifty @function that allows you to look up users by username. As I understand it, bbpress works with this out of the box, in the reply boxes. However, when I enable TinyMCE using the tutorial above (https://codex.bbpress.org/enable-visual-editor/), Buddypress autocomplete goes away completely. We’d rather not have to choose between these two features, is there a way to restore autocomplete even with TinyMCE enabled?