-
rich! @ etiviti posted on the forum topic How do I find the Blog ID of the current blog inside a bp_has_blogs() loop? in the group How-To and Troubleshooting: 14 years, 2 months ago
i can’t find a template tag just for it but you can find it via
$blogs_template->blog->blog_id
-
rich! @ etiviti posted on the forum topic @thepseudo in the posts in the group Creating & Extending: 14 years, 2 months ago
bp-activity/bp-activity-filters.php
-
rich! @ etiviti posted on the forum topic @thepseudo in the posts in the group Creating & Extending: 14 years, 2 months ago
i *think* the filter to hook on is
content_save_pre
as the bp atname filter already hooks on comments ->add_filter( 'pre_comment_content', 'bp_activity_at_name_filter' );
-
rich! @ etiviti posted on the forum topic Modifying BP Class output with an add_action function in the group Creating & Extending: 14 years, 2 months ago
seems in this special case you want an apply_filters in place of the
{$browse_sql}
var, then at least you can move the logic and sql code to that called function. though you will always need to copy it back during any upgrade since it is a core file – you could create your own patch file […] -
rich! @ etiviti posted on the forum topic Group Activity Comment doesn't update group’s last_activity in the group How-To and Troubleshooting: 14 years, 2 months ago
nothing in the code to trigger on
bp_activity_new_comment
in a group context. i would file a trac ticket -
rich! @ etiviti posted on the forum topic bbPress Themes in the group Creating & Extending: 14 years, 2 months ago
forums are just wrapped in groups – as bbPress is “dumbed” down a bit and only used for some basic functionality.
following theme files:
/forums/forums-loop.php
/forums/index.php
/groups/single/forum/edit.php
/groups/single/forum/topic.php -
rich! @ etiviti posted on the forum topic Changing group links in the group How-To and Troubleshooting: 14 years, 2 months ago
a safe bet is just to modify a child theme for /groups/groups-loop.php and change the line of code
<div class="item-title"><a href=""></a></div>
to
<div class="item-title"><a href="forum/"></a></div>
another idea is just to add a forum link within the group directory…[Read more]
-
rich! @ etiviti posted on the forum topic Trying to alter layout of bp_activity_action() in the group How-To and Troubleshooting: 14 years, 2 months ago
@ehegwer – this was just answered the other day in the forums and filtering the output – do a quick search.
-
rich! @ etiviti posted on the forum topic Stop posts and updates from a single blog showing up in the mainpage activity stream in the group How-To and Troubleshooting: 14 years, 2 months ago
😛 thanks for testing it… i’ll add this to my plugin after bp1.2.6 hits. i see this question a bit (along with blocking a certain blog category)
-
rich! @ etiviti posted on the forum topic Stop posts and updates from a single blog showing up in the mainpage activity stream in the group How-To and Troubleshooting: 14 years, 2 months ago
search up on placing code snippets in the theme’s function.php or creating a bp-custom.php
the blog_id is not the name of the blog but rather the numerical value in the db for that blog.
-
rich! @ etiviti posted on the forum topic Stop posts and updates from a single blog showing up in the mainpage activity stream in the group How-To and Troubleshooting: 14 years, 2 months ago
functions/bp-custom file – but with that code snippet you won’t be able to recover the data going forward (blocked from the db) – make sure you test it
-
rich! @ etiviti posted on the forum topic Stop posts and updates from a single blog showing up in the mainpage activity stream in the group How-To and Troubleshooting: 14 years, 2 months ago
think i’m going to update my block activity type plugin to allow more granular control over the item_id and types but here is a code snippet i quickly modified from that plugin (untested – so double check). in theory, just replace INSERT_THE_BLOG_ID_HERE with the blog_id you want to block. (note this blocks new updates to […]
-
rich! @ etiviti posted on the forum topic Cron Tasks with BuddyPress in the group How-To and Troubleshooting: 14 years, 2 months ago
something like: (what i use for sitemap generator for a daily function call) ` //on plugin activation register cron function myplugin_activation() { wp_schedule_event( time(), ‘daily’, ‘myplugin_wp_cron_call’ ); } register_activation_hook(__FILE__, ‘myplugin_activation’); //on plugin deactivation remove cron function myplugin_deactivation() {…[Read more]
-
rich! @ etiviti posted on the forum topic Create groups only admin in the group How-To and Troubleshooting: 14 years, 2 months ago
-
rich! @ etiviti posted on the forum topic Using bp_activity_add() to update an activity in the group How-To and Troubleshooting: 14 years, 2 months ago
something like:
$activity_id = bp_activity_add( array( 'id' => 555, 'action' => 'something new and blue' );
no reason to use the do_action – that is just a trigger point for hooking into buddypress. make sure you capture all the previous activity data and pass that back in – performs a full sql update […] -
rich! @ etiviti posted on the forum topic Can someone explain how to add tabs to the profile page? in the group Creating & Extending: 14 years, 2 months ago
oops, i guess you could use
bp_core_new_nav_item
as well – i was just copying my example code from a plugin of mine which places it under the ‘Profile’ nav -
rich! @ etiviti posted on the forum topic Can someone explain how to add tabs to the profile page? in the group Creating & Extending: 14 years, 2 months ago
wrap the bp_core_new_subnav_item call in a function which is hooked on xprofile_setup_nav action (if that is installed, i don’t recall the name of the regular profile setup_nav action)
-
rich! @ etiviti posted on the forum topic How To Show Groups That Only You (Or a User) Has Created (Not Joined) in the group How-To and Troubleshooting: 14 years, 2 months ago
interim – what about filtering on bp_has_groups and unset the items? (and readjust the count)
-
rich! @ etiviti posted on the forum topic Can someone explain how to add tabs to the profile page? in the group Creating & Extending: 14 years, 2 months ago
you can add this to whatever functions/bp-custom file – the above code is incomplete and only serves as a rough guideline.
- Load More
@nuprn1
Not recently active