Dear bbPress-ers!
Hello. I’m Herman.
I will greatly appreciate your assistance with a couple of problems with my forum I’ve been trying to fix for a couple of days now with no solution.
I wanted to display the message “Replies not viewable to non-members” to anonymous/not-logged-in users browsing my forum. This message replaces all actual replies with the generic one above. I was able to achieve this with the code below found on this page Dezzain website. The problem though is that this message shows up everywhere a reply is posted. So if there are 20 replies, there will be 20 generic messages.
So my request for help #1: I would like the 1 reply ONLY to display the generic message, and the other replies hidden. Any chance you can help me with it please?
#2, I would like to include a link to register/login in that generic reply. I am not too familiar with php. Can anyone rewrite the message below so that it also has a url portion for “Login here” | Register”?
Thanks so very much in advance.
bb_auth_reply_view(
$reply_id
) {
$reply_id
= bbp_get_reply_id(
$reply_id
);
// Check if password is required
if
( post_password_required(
$reply_id
) )
return
get_the_password_form();
$content
= get_post_field(
'post_content'
,
$reply_id
);
// first topic reply shouldn't be hiding
$rep_position
= bbp_get_reply_position(
$reply_id
);
// if user is not logged in and not the first post topic
if
( !is_user_logged_in() &&
$rep_position
> 1 ) {
return
"Replies only viewable for logged in users"
;
}
else
{
// return normal
return
$content
;
}
}
add_filter(
'bbp_get_reply_content'
,
'bb_auth_reply_view'
);
Hi
I created few forums and topics when I press on forums It’s give me the following error:
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Can you please help
Thank you
Nicola
untested but try this
add_filter ('bbp_new_reply_redirect_to', 'rew_redirect_to_topic', 10 , 3) ;
function rew_redirect_to_topic ($reply_url, $redirect_to, $reply_id ) {
$topic_id = bbp_get_reply_topic_id ($reply_id) ;
$redirect_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
return $redirect_url ;
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Roles
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Roles
A little update on this too. π
The $count of favoriters is updated correctly on topic’s single page.
But when the $count is called elsewhere, WordPress seems to take the first _bbp_favorite encounter.
Looking at posts’ metavalues, it seems that every ‘favorite’ mention becomes an extra _bbp_favorite

My code doesn’t say anything about taking the highest number – maybe this would be the solution?
$subscriptions = get_post_meta(get_the_ID(), '_bbp_favorite', true) ;
$count = count($subscriptions) ;
$output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'an_extra_field', true) . '</a><br> <span> Votes :' . get_post_meta(get_the_ID(), '_bbp_favorite', true) . '</span></li>';
}
$output .= '</ul>';
wp_reset_query();
}
return $output;
}
bbp style pack
if that doesn’t help, then link please to a live example on your site
styling root page us
#bbpress-forums
eg
#bbpress-forums ul.odd
{
background-color:blue ;
}
or use
bbp style pack
Itβs about the [bbp-forum-index], but it seem that the failure is coming from my theme (pro from theme.co)
If I style the page with their builder the output seems to be broken. It works if the page is created with the standard WordPress editor.
I will contact them about this.
Atleast one that says it officially supports the latest wordpress version that is out.
I thought it now did – certainly here
bbPress
I appreciate that you took the time to look.
Maybe sometime soon we will get an updated bbPress? Who knows …. Atleast one that says it officially supports the latest wordpress version that is out.
I did look at some thoughts on this, but my knowledge of linking email to WordPress is too weak to work a solution out π
it would be nice to achieve
Hi everyone,
I’m using the bbp_register_view_popular for the homepage of my offline website.
Works pretty well to sort_by my meta_value.
What I’m trying to do is to return a custom field as the main title.
I’m already doing this on custom pages and it works like a charm, here is my code :
$output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'bbp_extra_field1', true) . '</a></li>';
How can I return the same thing in my custom_view for my homepage without actually changing permanently the_title from WordPress? the_title is absolutly needed and bbp_extra_field1 works a subtitle.
Many thanks to anyone who could put me on the right way π
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Display>item 17 and 18
bbp style pack
dashboard>settings>bbp style pack>buttons
you are correct. it still happens.
even contacted the theme dev for some help, he removed most plugins and still didn’t work.
looks like i have to leave wordpress.
either use the settings in
dashboard>settings>discussion
which lets you set say ‘before a comment appears’
or use
bbPress – Moderation Tools
which though old still works fine
there should be a topic form at the bottom if you are logged in (presuming you are only allowing logged in users to post)
you can add a button using
bbp style pack
dashboard>settings>bbp style pack>Buttons
Can anyone help with this? There is no way to post in forums at all. There is no post button. It just says “this forum is empty”
I am using all the recent versions of things. This is a new website. It is a member only website using wordpress, BBpress, Buddypress and some other plugins. Please help! In a time crunch!
http://www.michiganlibertyleaders.com
ok you could also use a PHP variable rather than a wordpress function
so
$current_url = $_SERVER['REQUEST_URI'];
should give you the displayed URL in all cases.
you can then do an ‘if’ test to see if you are in forums using say
if (strpos($_SERVER['REQUEST_URI'], '/qaforums/') == true ) …then you are in the forums
sorry, I have given you some code which addresses, which does not seem to satisfy you.
I am not quite sure why you think the plugin authors would want to make their plugin work for your exact circumstances, but if you want to post a defect then go here
https://bbpress.trac.wordpress.org/
You can restrict who can see what by using
Private groups
Hello, I have a membership website, and in it a forum with bbpress.
I use restrict content pro and to restrict the forum I installed the restric content pro-bbpress plugin.
The following happens to me, apparently this plugin is abandoned and they do not make updates for a lot of time, or so the security of my website indicates.
My question is which one can I change it for and have it integrated with restric content pro.
My version of: wordpress is
5.8 bbpress 2.6.6
RCP-bbpress
1.0.1 My
site is https://www.tactodebarro.com
Thank you for your attention Nuria