Search Results for '+.+default+.+'
-
Search Results
-
Hi,
i have the challenge to show the latest topics for the role members in the topic index view. I’m new to bbpress so i’ve to learn a lot.I’m using buddypress with sidewide and group forums. Each group has one forum.
When I’m using a site and shortcode [bbp-topic-index] only all topics from the sidewide forums are shown. What I’ve learned is that this is a default behavior – i hope i’m not wrong 🙂Now I want to show all latest topics / posts for all members belonging to their group / group forum – optimal on the latest topic page. The users are members (bbpress) and abonnents (WordPress).
How do i accomplish that ?Hey guys. So Ive been wondering this for a long time, and I just dont understand. Why is bbPress’ editor so bad? Everything uses lame tags and is very primitive. WordPress already has color and bold and italic and linking and everything integrated, so why doesn’t bbPress add this?
No one can actually tell me that bbPress is meant to be this way? Is there something stopping the devs from just importing the full editor over…?
Very curious…
I have added this code to my functions.php file
function mycustom_breadcrumb_options() { // Home - default = true $args['include_home'] = false; // Forum root - default = true $args['include_root'] = true; // Current - default = true $args['include_current'] = false; return $args; } add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );… but that last argument only works for the original post, which returns something like this:
Forums › Assignment Submissions ›
On the replies underneath it includes the current location, something like this:
Forums › Assignment Submissions › Assignment 24: 1st 24 hours in Crown Point, Tobago
You can see this in action here.
How do I remove that last part in the replies?
Using this code I have made it to where only updates and rtmedia posts show up on my activity stream
/** * Activity Stream Default Updates */ function make_swa_show_notice_only( $retval ) { if ( bp_is_page( 'activity' ) ) { $retval['action'] = 'activity_update, rtmedia_update'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );I would like bbpress forum posts to show up on my wall as well. What would i put next to
‘activity_update, rtmedia_update’
in my code to make that happen? Thanks!
Out of the box, bbpress shows topics from a particular forum when you are on that forum’s archive page. Makes sense. If that forum has a sub-forum, it will link to those sub-forums, but it won’t show the actual topics from that sub-forum.
I’m trying to modify the default bbpress loop on a forum page (loop-topics.php) to include the sub-forum topics.
Here’s an explanation:
Forum A
Sub-forum A1
Sub-forum A2
Forum B
Sub-forum B1
Sub-forum B2
So when viewing Forum A’s archive page, I’d like to show topics from Forum A, sub-forum A1 and sub-forum A2.The code needs to be dynamic in order to work with whatever parent forum archive a user is on.
You can pass wp_query args into bb_has_topics(), but I can only only come up with code that shows topics from one forum – not multiple forums.
To better explain what I’m working with, here’s an example of a loop that grabs topics from the parent forum:
<?php $parents = get_post_ancestors( $post->ID ); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $parent = get_page( $id ); ?> <?php $bbp_loop_args = array('post_parent' => $parent->ID, 'post_type' => 'topic'); ?> <?php if ( bbp_has_topics($bbp_loop_args) ) : ?> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?> <?php endif;?>Any ideas on how this can be achieved?
So I am wondering how I can modify the default forum role based on the user site role? So let’s say under settings > Forums I have set the default role as Participant. This is great since most of my users will be contributors and I want them to be participants.
However, I will have editors as well. When these users are created I want their forum role to be automatically set to Moderator rather than Participant. Is there a way I can change the default forum role based on that users’ site role?