Search Results for '+.+default+.+'
-
Search Results
-
Just curious if there is an easy way to check if a user has been subscribed to a topic or not..
I’ve looked inside the Core templates and found the bbp_user_subscribe_link() function so I ported it over to my own functions file and changed it a little bit, now it works on the topics index page but for some reason it breaks at my topic-replies index page while they use the same default topics loop.
This is my code I’ve changed around a little and what it does is, it prints an is-subscribed text to the page if a user is subscribed to an topic or not. IF not is doesn’t do anything – this is-subscribed text I placed inside a HTML class so I can catch him by some CSS.
Visual, the 1px colored borders on the right indicate if a topic is-subscribed (blue), is-closed (black) or is-sticky (yellow).
It’s a very small feature but I believe very effective, maybe it’s possible to hook those is-values into the bbp_topic_class() by default because BuddyPress has this feature out of the box. If you’re a member of a group it also prints is-member inside the groups-list-class.

Anybody ideas about how we could make this more smooth and simple?
Topic: Change gravatar information
Hi all,
I have a problem… When somebody post in one forum the information below the picture avatar is
User name
Role
IP
by default I would like to change this information by “grups” that means… if you belong a group that information appear in the gravatar and hide IP adress. Is that possible? I am getting crazy trying change that
WordPress 3.8.1 running Suffusion theme.
bbPress Version 2.5.3On a registered participant login, I keep getting “The forum ‘Private: Small Stars’ is closed to new topics and replies.”
or “This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.” if I’m on admin privileges.The forums are definitely open.
Repair forums gives me (As Admin and Keymaster) “You do not have sufficient permissions to access this page.”
I have searched for this topic, but the phrases around “This forum is marked as closed to new topics” bring up almost every webpage that uses bbPress, as it’s the default text at the bottom of so many topics!
What could be wrong here?
Thanks in advance for any help.
David.
In bbPress 1.0 we had an array option called array( ‘exclude’ => ‘-3,-73,-103’ ) why is this gone in bbPress 2.0 ?
First I thought okay it’s just turned around instead of excluding forum_ids we now include forum_ids but that’s not true.
The post_parent is by default set to ‘any’ = 0 but you can only add one single forum_id you can’t do stuff like this.
bbp_has_topics( array( ‘post_parent’ => ‘23,51,73,107’ ) )
It’s show everything – one forum_id or nothing at all.
What am I missing here?
Topic: How to add new forum roles?
I use bbPress-2.5.3 and BuddyPress-1.9.1 for my forum.
I want to add a couple of new forum roles + existing 5 default roles. How to do that?
For example, I want to have forum roles – ‘beginner’, ‘advanced’, ‘senior’, ‘veteran’, etc. with capabilities – ‘participant’. And other forum roles with custom names with capabilities – ‘moderator’.
Thanks in advance!
First of all, I’m not asking any questions, I’m offering solutions for people who, like me, had these specific problems, are googling for a solutions and can’t find any. Some of you think this is pure amateur stuff, but there are people out there who will spend hours trying different things and this can save them so much time. If you want to delete this topic, I don’t care, I’m here to help…
How to load bbpress.css before your yoursheet.css?
Intro: When WordPress is loading stylesheets, they’ll load all the theme .css files first and then they’ll load plugin css. That way plugin css has higher priority than your css and only way you can override it is with !important. As we all know, that is a bad practice.Also, you can create your own bbpress.css in your theme but that means more files to keep up with (although, that’s the cleanest solution). Here’s another way to do this:
paste this code into functions.php…
if (class_exists('bbPress')) {
add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
function deregister_bbpress_styles() {
wp_deregister_style( 'bbp-default' );
}
wp_enqueue_style( 'bbpress_css', plugins_url().'/bbpress/templates/default/css/bbpress.min.css');
}
So, let’s get into details:
– first, if you have active plugin ‘bbPress’ it will exicute the following code which removes all the .css files from it
– second, it loads bbpress.min.css again, but this time where you want it…
– be sure that you enqeue your stylesheet after this codeNote: there are two problems that might arise from this techique
-if bbPress developers decide to rename, remove or split bbpress.min.css, you’ll have to change the code again
-there’s other .css file named “bbpress-rtl(.min).css”. Well, some cultures (Arabic), read and write from right to left. And what this file aligns everything to the right. bbPress has some system of deciding whether it should load this file or not, but by doing this technique, you’re disabling that system.How can I remove all the breadcrumbs from the templates and set them at the top of the page?
Intro: Many of us are creating our own themes with existing breadcrumbs systems which are in the header. But bbPress has it’s own idea where to display breadcrumbs, and sometimes that’s at the top of the page, sometimes that’s below search form and sometimes it’s below title. Here’s how you can change that quickly.1. If you haven’t, create “bbpress.php” in the root folder of your theme. (You can copy-paste page.php)
2. Add
<div class="truebreadcrumbs"><?php bbp_breadcrumb(); ?></div>
where you wan’t to show your breadcrumbs
3. Add this CSS:
div.bbp-breadcrumb {
display: none; /*this will hide all breadcrumbs*/
}.truebreadcrumbs div.bbp-breadcrumb {
display: block; /*this will display breadcrumbs you've created*/
}
Sure, HTML will still generate all the breadcrumbs and css will hide the unwanted ones, but this is the easiest way to do this without going into templates…
I want bbPress to look like this:
https://linustechtips.com/main/
See how the categories are above and separated from the rest?
My current forums look like this –> http://www.skyforgelabs.com/?post_type=forum , and I HATE that, the way the forums are under the category with the stupid 0’s is ugly and I don’t know why bbPress is like this by default.
Didn’t want to make a new Trac before knowing if this is a real bug or not.
I set the number of replies per page at 8 in the back-end. Save it, but right now I’ve already replied 31 times in one topic to test it and still the pagination menu doesn’t show up in the single-forum page ( topics list )
+ also the single-topic page doesn’t move to a second page it keeps adding content.Tested it on default installs with Twenty Twelve and WP 3.8
I am currently using bbPress 2.5.3 with WordPress 3.8 and the default bbPress theme, as inside the plugin folder. I am wondering how I change the tags prefix (“Tagged:”) on the topic page. I have looked through the theme files and can’t find it in any of them. Can anyone assist me? It’s really annoying me right now.
Thanks
Hello,
Clicking a username from within the BBPress section generates a 404 error.
I’ve done extensive research on this problem, and haven’t been able to find a fix in the forums so far.
I’ve deactivated all plugins besides BBPress – no dice.
I’ve switched the default theme and still get the 404.
I’ve changed the permalinks and the subscriber role – didn’t make a difference.Some code fixes I’ve found in the forums just make it so that the 404 page doesn’t generate, but it shows a blank page, which isn’t really the point. I need it to actually go the member profile.
I believe all of the software is up to date:
Wordpress v3.8
BBPress v2.5.3
Theme is Dante, v 1.5.1Here is a user link: essential-essentials.com/forums/user/Essential-Essentials/
(The site is still very much in development)
Thank you for any help you can provide : )
I’ve look at it a few times in the WordPress Codex and it probably explains GREATLY how it works and what it does but maybe I just don’t get it.
I understand the concept of taking a function that exists <—> edit it <—> return it to WP Core but how!
Lets say I just simply want to replace the text inside a HTML “… class=”bbp-topic-spam-link”> ” of the spam link.
First step I do is search for the function: bbp_topic_spam_link()
Second step found it inside plugins/bbpress/includes/topics/template.php [ line 2832 ]
Third step copy the entire function to my functions.php file or plugins functions file.
Fourth step, edit the code that you want to edit but after that, how do you add the filter to this function to make it a new or your function.
/** * Output the spam link of the topic * @uses bbp_get_topic_spam_link() Topic spam link */ function bbp_topic_spam_link( $args = '' ) { echo bbp_get_topic_spam_link( $args ); } /** * Return the spam link of the topic */ function bbp_get_topic_spam_link( $args = '' ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'id' => 0, 'link_before' => '', 'link_after' => '', 'sep' => ' | ', 'spam_text' => esc_html__( 'Spam', 'bbpress' ), 'unspam_text' => esc_html__( 'Unspam', 'bbpress' ) ), 'get_topic_spam_link' ); $topic = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) ); if ( empty( $topic ) || !current_user_can( 'moderate', $topic->ID ) ) return; $display = bbp_is_topic_spam( $topic->ID ) ? $r['unspam_text'] : $r['spam_text']; $uri = add_query_arg( array( 'action' => 'bbp_toggle_topic_spam', 'topic_id' => $topic->ID ) ); $uri = wp_nonce_url( $uri, 'spam-topic_' . $topic->ID ); $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-spam-link">' . $display . '</a>' . $r['link_after']; return apply_filters( 'bbp_get_topic_spam_link', $retval, $r ); }Thanks.




