Search Results for 'code'
-
Search Results
-
Mildly baffled by this. I’m trying to remove the pagination at the top of the forum topic page but leave it at the bottom (see here for an example). I can remove both by commenting out the code in pagination-topics.php, or I can remove both with display:none, but how do I remove the top one and not the bottom one? They share exactly the same properties.
Thanks,
Jamie
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?
I want the users to get email alerts every time their forum role changes to a specific role.
Namely, I have to notify them only if their role has changed from Spectator to Participant.
I found a way to do this with standard WordPress roles, but it doesn’t work with bbPress roles.
I tried changing
if ($new_role == 'contributor')toif ($new_role == 'participant')and even to this if($new_role == 'bbp_participant')– nothing worked.Perhaps someone knows the solution?
WordPress version: 3.8.2
bbPress version: 2.5.3Using 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!