Forum Replies Created
-
In reply to: Is there a latest forum topic widget?
well the easiest way is to just extract the snippet and replace a line of code
open up
bp-forum-extras-index.phpplace this class BP_Forum_Extras_Index_Latest_Topics_Widget extends WP_Widget into the bp-custom.php file
then replace the line
if ( bp_forum_extras_blogs_component() )
with
if ( $bp->forums->slug == $bp->current_component )In reply to: php code for output username in activity streamwell the “action” is where the username is displayed but that contains the entire “title” of the activity stream. ( thisuser posted an update: )
but you could use bp_get_activity_user_id() in the loop and reference one of the bp_core get username functions
In reply to: Link to first new post in forumi believe @3sixty created a plugin (or posted code – have to search for it) to record the user’s last viewed post
In reply to: Is there a latest forum topic widget?correct, under the forum index sub-plugin. (you can set the max topics)
it calls bp_has_forum_topics so if viewed from a group page or profile page – it will filter for those components as well.
IIRC within BP – the BB config file is also stored in the meta table ( $bp->forums->bbconfig = $bp->site_options; )
In reply to: How can i redirecthtaccess?
Options +FollowSymLinks
RewriteEngine on
RewriteBase /RewriteRule ^secure/register$ /secure/words-on-mobile/ [L,R=301]
part of bp_core_do_catch_uri() when a template is not located then:
if ( $located_template = locate_template( array( ‘404.php’ ) ) ) {
status_header( 404 );
load_template( $located_template );In reply to: Sticky a group in the directory?i’d say the best bet is using a “featured group” style and adding some field to the group_meta table – then pull out that featured group within the theme template
In reply to: BUG: bbpress reply with buddypresseasy change via the theme file – you’ll need to edit whateverchildtheme/groups/single/forum/topic.php and comment out the if statement for bp_get_the_topic_is_last_page()
In reply to: the bp_has_activities() loop filteringor drop me a note on here

this will block all new entries for certain activity stream types:
https://wordpress.org/extend/plugins/buddypress-block-activity-stream-types/but i’m sure you could extract the code or modify it for a certain group, etc.
or you could loop over the has_activities filter and unset the items based on type
will dump out a full html link
bp_core_get_userlink ( $bp->displayed_user->id )just the link
bp_core_get_user_domain( $bp->displayed_user->id )$bp->displayed_user->id when viewing a profile – otherwise if you have the user_id that would work too
In reply to: topic.php so first post has unique cssquick function to check first post – reference that within the topic loop
function my_forum_is_first_post() {
global $topic_template;if ( $topic_template->post->post_position == 1 )
return true;return false;
}In reply to: Privacy component–where is it?i’ve definitely hit that snag on adding new subnav items (and some other weird chain-events – if using the “loader” method to check bp first results in some hooks not catching – ie profile/settings nav items)
In reply to: Privacy component–where is it?great news!
In reply to: Create an account is missingdid you enable allow users to register on your blog?
always try and override the values if a filter is available instead of modifying the bp-core files (next bp update you’ll need to make the changes all over again)
bp_activity_latest_update() triggers the member-header activity – there is a filter bp_get_activity_latest_update
as for the forum # permalink – that is in the /groups/single/forum/topic.php theme file (can override with a child theme)
In reply to: isolating buddypress pagestry this (same principal)
http://wiki.dreamhost.com/index.php/Making_stats_accessible_with_htaccess#What_To_Changewhat about xmlrpc? i’m working on a receiver plugin which allows profile activity updates and a new blog post updates (ie, if someone sent an update from an external wordpress blog when a new post is published)
In reply to: isolating buddypress pageswhat about a rewriterule before the htaccess wordpress stuff?
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(mydirectory).*$ [NC]
RewriteRule . – [L]In reply to: When i de-activate buddypress – site crashes??make sure to disable all bp related plugins – some may not have a proper check yet if BP is disabled
function groups_get_group_members i believe
In reply to: Disable Activation Emaili don’t have the thread on hand but andy posted up a solution with filters/hooks to disable the email and change the user status
what about wp-mail.php? i think that uses the wp.org -> settings > writing > Post via e-mail
sure
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/set the action to new_blog_post, object to groups, primary_id to the group_id