Forum Replies Created
-
In reply to: Template for single updates???
members/single/activity/permalink.php
get_post_meta( bp_get_activity_secondary_item_id(), ‘thumbnail’, true)
but have a read about this – if you have pull info from a user’s blog post. so to switch, you’ll need to pass in bp_get_activity_item_id() (which is the blog_id)
https://codex.wordpress.org/WPMU_Functions/switch_to_blogIn reply to: Adding topic tags after topic creation?https://trac.buddypress.org/ticket/2281
FWIW – the bbpress function name is bb_add_topic_tags (look at tag-add.php and functions.bb-template.php tag_form() )
Possible but needs to be coded in, the notification class has a simple api to use for adding/deleting but all those triggers need to be setup (via a plugin)
In reply to: Displaying forum topic tagsquickly looking around in the bbpress code – i don’t see any forum level tag heat maps – only for top_tags and topic_tags.
have a look at the code that powers this bbpress plugin, though it may take some reworking for buddypress
https://bbpress.org/plugins/topic/hot-tags-plus/In reply to: Adding topic tags after topic creation?forgotten oversight in the templates/bp – sure it is possible if you dig deep into bbpress code for the proper function
In reply to: Show group members blogsjust a general theory
what about hooking on the action “bp_directory_members_item” in members-loop template
then within that hooked function – call “bp_blogs_get_blogs” (see bp-blogs.php line 279) which accepts a few arg params (user_id, per_page,page – but set those to so you do not paginate) Use the templatetag bp_get_member_user_id() for the user_id
“bp_blogs_get_blogs” will return an array( ‘blogs’ => $paged_blogs, ‘total’ => $total_blogs ) – $paged_blogs is the direct result from the mysql query though. Have a look at bp-blogs-classes.php and the ::get function for the column names (domain, path, name, description). You may need to reference bp-blogs-templatetags.php as the blog_permalink is built depending on if the domain is empty
though the only drawback is for each user in the member-loop – this will perform a bunch of extra queries just to find the blog info.
passing the wrong values
https://codex.wordpress.org/Function_Reference/get_post_metavery close! – use the template tags
bp_get_activity_item_id()
bp_get_activity_secondary_item_id()but as a side note – i don’t know about get_post_meta and realm of MS (you might have to switch the current blog) which is why i pulled out the blog_id info
$post->ID would not be valid in that case – for a blog post:
‘item_id’ => $blog_id,
‘secondary_item_id’ => $post_id,bp_forums_get_forum_topicpost_count( $forum_id ), where forum_id is groups_get_groupmeta( $bp->groups->current_group->id, ‘forum_id’ );
depends on the group_id – if you are within the group context then $bp->groups->current_group->id
nope – that would be @boonebgorges

groups_get_group_mods( $group_id )
groups_get_group_admins( $group_id )In reply to: mysql_get_server_info() Error~~please post the details on your server configuration
In reply to: Hide Comments from Non Membershere is some code for removing activity reply comments from non-logged in users
http://etivite.com/groups/buddypress/forum/topic/quick-tip-hide-activity-updates-andor-replies-by-types-for-non-logged-visitors-in-users/#topicnot sure about blog comments – different template (and depending if MS)
In reply to: Buddypress forum photo upload nightmare..buddypress forum attachment is the only plugin that would allow local uploading to the server
group forum extras allows some bbcodes/shortcode for external hotlinking
In reply to: Member sincehttps://buddypress.org/community/groups/buddypress-member-profile-stats/ will display a member since (ie, nuprn1 has been a member for 3 months, 3 weeks. )
sure – just need to modify the forums/forum-loop template
the functions i use:
bp_the_topic_poster_avatar( ‘type=thumb&width=16&height=16’ )
bp_the_topic_poster_name()
bp_the_topic_time_since_created();correct behavior – the slug is used as the nav id
$bp->profile->slug = BP_XPROFILE_SLUG;
/* Add ‘Profile’ to the main navigation */
bp_core_new_nav_item( array( ‘name’ => __( ‘Profile’, ‘buddypress’ ), ‘slug’ => $bp->profile->slug, ‘position’ => 20, ‘screen_function’ => ‘xprofile_screen_display_profile’, ‘default_subnav_slug’ => ‘public’, ‘item_css_id’ => $bp->profile->id ) );just tested and it works for me – but when copy/pasting from this site you get curly quotes, make sure to replace those.
@sadr
https://wordpress.org/extend/plugins/buddypress-restrict-group-creation/ does this already.You can set whatever defined wp_cap/role levels assigned to:
Create group capability
Create group forum capability
Create private group capability
Create hidden group capabilityIn reply to: Cannot post in forumsalso check the site_option (in the db) “bb-config-location” and verify this is pointing to the correct bb-config.php file
In reply to: Working with Titleshave a look at the function bp_get_page_title() in bp-core-/bp-core-templatetags.php to see how the title is built. There is a filter which you can hook onto, albeit the page_title function is a bit lacking on certain pages.
or
create your own function (and just change your child theme header.php to the new)
In reply to: Footer plugins and widgetsdepends on your theme – bp-default does not include a footer widget area
In reply to: members slugif BP_ENABLE_ROOT_PROFILES is set then urls do not include the BP_MEMBERS_SLUG (ie, http://whatever.com/username )
function my_get_members_base()
global $bp;if ( !defined( ‘BP_ENABLE_ROOT_PROFILES’ ) )
$domain = $bp->root_domain . ‘/’ . BP_MEMBERS_SLUG . ‘/’;
else
$domain = $bp->root_domain . ‘/’;return $domain;
}