You can change this through your bbpress.css file fairly easily. The IDs/classes you’re looking for will be similar to this:
#favorite-toggle, #subscription-toggle {
text-decoration: none;
padding: 0 6px;
font-weight: bold;
}
#favorite-toggle a {
color: #d7be4c;
}
#favorite-toggle a:hover {
color: #dfca66;
}
#favorite-toggle span.is-favorite a, #subscription-toggle span.is-subscribed a {
color: #888888;
}
#favorite-toggle span.is-favorite a:hover, #subscription-toggle span.is-subscribed a:hover {
color: #555555;
}
#subscription-toggle a {
color: #39c696;
}
#subscription-toggle a:hover {
color: #4cd4a5;
}
That’s an older version of what I was using — in there you can see that these elements will change the color based on whatever you set them to:
#favorite-toggle span.is-favorite a, #subscription-toggle span.is-subscribed a
Take note of “span.is-favorite a” and “span.is-subscribed a”. Those are the important ones that will allow you to change the color and style.
If you’d like to add a check mark, you can do something like:
#favorite-toggle span.is-favorite a:before, #subscription-toggle span.is-subscribed a:before {
content: "✓";
}
In the above, I added the “:before” pseudo elements to indicate that “before the word, add this content.” The content is the checkmark. Alternatively, you can also use the “:after” pseudo element and add things that way. Both work.
@allenpayne It seems i’ve even more a beginner with this. I added your code above to my functions php and just got errors. What am I missing?
Hi all,
So I’m now just trying to remove the ‘topic contains’ elements in bbpress, and I’ve used @jshultz ‘s code above in my themes function.php file, but it no longer seems to work.
Would there be an update for this?
I have exactly the same problem. Can someone please help?
Thank you.
Solved it with the following code in my theme’s function.php:
add_filter(‘bbp_current_author_ip’, ‘my_anonymize_ip’);
function my_anonymize_ip($retval) {
$retval = ‘0.0.0.0’;
return $retval;
}
I found out that the filter “bbp_current_author_ip” is called by bbp when creating a new topic/reply.
I am extremely frustrated with a recent install of bbPress and BuddyPress.
My understanding is that, when you create a forums page with the same name as the bbPress forum slug, this page will show the list of forums.
Mine did not. I finally used a short code on a new page and it gave me a list of forums – though the formatting leaves a lot to be desired.
Unfortunately, every time you click a forum link on the page, it takes you to the listing of forums. You can never access the individual forums to post questions or comments.
Thoughts on how to fix this?
bbPress 2.3.2
BuddyPress 1.8
WordPress 3.5.2
Responsive theme
http://dev.brownfieldagnews.com/
There must be a way to do this. I am in includes/common/template-tags.php
I see:
/** URLs **********************************************************************/
/**
* Ouput the forum URL
*
* @since bbPress (r3979)
*
* @uses bbp_get_forums_url() To get the forums URL
* @param string $path Additional path with leading slash
*/
function bbp_forums_url( $path = '/' ) {
echo bbp_get_forums_url( $path );
}
/**
* Return the forum URL
*
* @since bbPress (r3979)
*
* @uses home_url() To get the home URL
* @uses bbp_get_root_slug() To get the forum root location
* @param string $path Additional path with leading slash
*/
function bbp_get_forums_url( $path = '/' ) {
return home_url( bbp_get_root_slug() . $path );
}
/**
* Ouput the forum URL
*
* @since bbPress (r3979)
*
* @uses bbp_get_topics_url() To get the topics URL
* @param string $path Additional path with leading slash
*/
function bbp_topics_url( $path = '/' ) {
echo bbp_get_topics_url( $path );
}
/**
* Return the forum URL
*
* @since bbPress (r3979)
*
* @uses home_url() To get the home URL
* @uses bbp_get_topic_archive_slug() To get the topics archive location
* @param string $path Additional path with leading slash
* @return The URL to the topics archive
*/
function bbp_get_topics_url( $path = '/' ) {
return home_url( bbp_get_topic_archive_slug() . $path );
}
I figure there MUST be a way to add the forum to the topics URL. I’m doing this because I have a action based upon the URL string and need to have all things on that forum associated with that at a URL level. I’m more of the design end than the development end of things and though I see it there I cannot seem to bridge the gap.
I was also reading: https://bbpress.trac.wordpress.org/ticket/2258 – has there been any progress here?
Customizing this has taken much longer than expected & I’d like to resolve this. Any thoughts would be appreciated.
TY
I am in includes/common/template-tags.php
I see
/** URLs **********************************************************************/
/**
* Ouput the forum URL
*
* @since bbPress (r3979)
*
* @uses bbp_get_forums_url() To get the forums URL
* @param string $path Additional path with leading slash
*/
function bbp_forums_url( $path = '/' ) {
echo bbp_get_forums_url( $path );
}
/**
* Return the forum URL
*
* @since bbPress (r3979)
*
* @uses home_url() To get the home URL
* @uses bbp_get_root_slug() To get the forum root location
* @param string $path Additional path with leading slash
*/
function bbp_get_forums_url( $path = '/' ) {
return home_url( bbp_get_root_slug() . $path );
}
/**
* Ouput the forum URL
*
* @since bbPress (r3979)
*
* @uses bbp_get_topics_url() To get the topics URL
* @param string $path Additional path with leading slash
*/
function bbp_topics_url( $path = '/' ) {
echo bbp_get_topics_url( $path );
}
/**
* Return the forum URL
*
* @since bbPress (r3979)
*
* @uses home_url() To get the home URL
* @uses bbp_get_topic_archive_slug() To get the topics archive location
* @param string $path Additional path with leading slash
* @return The URL to the topics archive
*/
function bbp_get_topics_url( $path = '/' ) {
return home_url( bbp_get_topic_archive_slug() . $path );
}
I figure there MUST be a way to add the forum to the topics URL. I’m doing this because I have a action based upon the URL string and need to have all things on that forum associated with that at a URL level. Any ideas?
Add the following code to your functions.php
function forum_icons() {
if ( 'forum' == get_post_type() ) {
global $post;
if ( has_post_thumbnail($post->ID) )
echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft'));
}
}
add_action('bbp_theme_before_forum_title','forum_icons');
Hope it helps 😉
BBpress has reduced the text editor to a minimal one that is really sub-par, in my opinion. I would really like to use something like a TinyMCE version that works for all of the users. There is this one, set up for bbpress, but only authors and above see it: http://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/
We are an arts org and we need to have good ways to share visual content. I loaded GD BBPress Attachments which is fine for uploading images and docs, but you can’t insert them into the text: http://www.dev4press.com/plugin/gd-bbpress-attachments/
I found this one: http://premiumsoftware.net/CLEditor/Index, but it’s not as nice as the TinyMCE ones that I’ve used and it shows the bbpress one (the minimal one) right above it, so that is confusing, too. Do you have any recommendations of what would work well for us?
Site: http://www.tafaforum.com/
We’re using the latest updates of bbPress, etc.
I’m pretty savvy (even though I don’t write code) and I don’t even know what “ol” means, much less the other artists who are using our forum…
I have a problem and I don’t know if it is related to BuddyPress or BBPress and it’s made it very confusing for our users. The same thread shows up in the three pages: Activity Streams, Group Home Page and Group Forum Page. I have deactivated the sitewide Forums as I think it is confusing enough without it. So, we are focusing on having Group topics and discussing within them. But, because the thread shows up in all three places and can be replied to in any of them, one would think that the replies would follow through on all of the pages where the thread is displayed.
I think that this might have something to do with nested replies. They show up on the Activity Streams (if one replies on that page) and on the Group Home page, but they don’t follow through on the forum. You can see it here: http://www.tafaforum.com/user-groups/blogging-general/ Members are supposed to register their blogs on the Topic page of the forum: http://www.tafaforum.com/user-groups/blogging-general/forum/topic/register-your-blog-here/ Most did not understand that they should go to their page and just added their blogs to the Home page of that group. I replied with “Added” for the ones that I added to the RSS Feed (http://www.tafaforum.com/tafamemberblogs/) But, my “Added” reply does not show up on the Forum Topic version of the same thread.
Any suggestions on how to deal with this? It makes things very confusing.
I don’t want to mess with code so if you have suggestions, please make them for what can be done within the BBPress or BuddyPress options….
I’ve been digging around in the code and it seem like it’s impossible to make a user type that can view a forum but not post in it. Am I missing something?
It seems like a user’s ability to post/reply is global. Is there any way to quickly accomplish this?
My goal:
A user type that can view public and private forums, but only post in public.
I was originally attempting to add a new forum type, but quickly realized it was out of scope for the timeframe I’m looking to accomplish this in. That said, regardless of whether or not I add a new forum type, or repurpose existing types, I’m at a brick wall if there’s no way to check posting privileges in an individual forum. Has anyone tackled this issue already? I love the simplicity of bbPress and really want to avoid having to use a more fleshed out forum package, but this is a very necessary feature.
This “topic” was also discussed in an older (2 years old) Post.
But no clarification how “safe” it is to remove the mod_security rule for particular bbPress links (which ones, anyone?).
Since bbPress sanitizes a post, is it save to disable the mod_security rule (for forum pages only) concerning the SQL injection rules?
(what do you do on this forum?)
Alright found the cause of this issue: mod_secure is catching it 🙁
Any way to make this work without compromising security?
(ie. the bbpress.org server seems to be fine with posting this)
FYI: I have looked at Debugging in WordPRess.
I did install the “debug bar” but the amount of queries and info after a post is not telling me why it did not post.
Are there other factors that can make it that such a post will not be posted?
(ie. mod_secure on the webserver, etc – any logs I can snoop through, etc)
One step further: if I try to submit this code in my test environment (local network), it works just fine.
Does anyone have an idea how to debug/approach this issue?
Since that worked just fine here, I’ll have to blame my own editor 🙂
(I’m using a rich editor, not TinyMCE)
If I send “rich” content to BBPress (ie. HTML), what would the proper formatting be for code?
Well after playing with this issue for several hours I have narrowed the problem down to this;
If I try to post the following trivial example code example:
update project_management set prj_first_activated = CURRENT_DATE;
the post will not be posted (I guess trying that here will help get insight – if it behaves the same, then I know that there is a good chance that it’s BBPress related).
If I leave the “=” out of the code however, it posts just fine.
I have a section in my bbPress Forums (bbPress 2.3.2 + WordPress 3.5.2) related to SQL.
So … users will post SQL example code, but it appears bbPress is simply rejecting the entire post, without even a warning.
Is this a “standard” filtering by bbPress (to avoid injections)?
Is there a way around this limitation?
Does it involve only a few keywords/characters?
(Yes; I did try Google and searching this forum)
Any help or insight would be very much appreciated 🙂
@janhoos to control page titles in bbPress pages, add to your stylesheet:
body.bbpress h1.entry-title {
// your styles here
}
I would really like to get the @username displayed under a person’s name next to the avatar; the same as these forums; some of my forum users have changed their display names and its making it less user friendly when people try to use @username to get someone’s attention through mentions.
I have read all the info from @johnjamesjacoby above; but it kinda went over my head; ideally I’d love to know exactly what php file to edit and what code to insert and at what specific line/area of said PHP file 🙂 if possible!
Hope someone can help! thanks!
I had to add another line to get this working:
add_theme_support( 'post-thumbnails', array( 'forum' ) );
add_post_type_support('forum', 'thumbnail');
The short code [bbp-forum-index] displays an entire list of forums while the side bar widget bbPress List can be made to display just the Forum root. Is there a way to either make the [bbp-forum-index] display just the forum rootlist or can the widget bbPress List be made to display on a page?
Thank You
After much trial and error, I’ve come to a solution that retains permission control and shows the first post when using Wishlist Member with bbPress:
// Create a new filtering function that will add our where clause to the query
add_filter( 'posts_where', 'your_filter_where', 99 );
function your_filter_where( $where ) {
global $post;
// Limit to posts so it's not ruining permission queries all around the site. You could also check user level if you need further specificity.
if( get_post_type( $post->ID ) == 'topic' ) {
// The Solution: Match based on post id AND parent id. The admin query did this, the user query did not, so we do a simple search and replace to make it happen.
$search = $wpdb->prefix . 'posts.post_parent = ' . $post->ID;
$replace = '( ' . $wpdb->prefix . 'posts.post_parent = ' . $post->ID . ' OR ' . $wpdb->prefix.'posts.ID = ' . $post->ID . ' ) ';
$where = str_replace( $search, $replace, $where);
}
return $where;
}
Due to the way that WLM obfuscates their code, it’s impossible to know exactly HOW they are re-constructing queries, but this is a quick starting point for anyone looking to solve the issue of WLM not showing bbPress’s first post in a topic to users.
Hope it helps!
Jonathan