Search Results for 'buddypress'
-
Search Results
-
How to control the Group and Profile sub nav tabs?
I am using the latest WordPress and Buddypress versions.
I am trying to control the visibility of the sub nav tabs. At the moment the standard behavior is that the Settings tab is only visible to the owner of the profile.
How do I make it so that the Friends tab is also only visible to the owner? (Not visible to logged out people and other members)
Assistance in this matter would be greatly appreciated.
Ian
Say for the persons profile? Im currently using raindrops
Hello Buddy Dev team,
I’m very new to php coding and I’ve been trying very hard to get this to work.
I’m using wedevs project managment plugin with buddypress integration. There dev team doesn’t have the time to customize the plugin for me at the moment so I’m looking for a quick fix. I feel I’m so close but for some reason I’m not getting it to work.
I have a “create project” button that I would like to hide for all group memembers accept the Group admin. so I would like it to verify if the user is the group admin and show the “create project link”. But if it is just a group member or user, I would like the “create project link” to be hidden. Only group admins should be allowed to create projects… Here is what I have so far. But its not working. Any help or guidence would be greatly appreciated.
<?php if ( BP_Groups_Member::get_is_admin_of( $user_id )) { ?> <style type="text/css" media="screen"> .cpm-projects nav.cpm-new-project a {visibility:visible; } </style> <?php } else { ?> <style type="text/css" media="screen"> .cpm-projects nav.cpm-new-project a {visibility:hidden; } </style> <?php } ?>Keep in mind that the stylesheet for the plugin has this inside the style sheet.
.cpm-projects nav.cpm-new-project a { background: transparent url("../images/plus.png") no-repeat scroll 50% 50%; box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3); height: 80px; width: 80px; display: block; border-radius: 3px; }For some reason its still showing for all members with this code.
Any help would be greatly appreciated.
Why BuddyPress activity stream No sharing?Only reviews, collections, deleted? Why not sharing? Look at facebook, google +, Twitter, which did not share button? What you want in the end?
I tried added a slightly modded version of the parse_Args thing @danbp posted here:
to thin out the activity stream.. and now the widget I have in sidebar that was showing sitewide posts from member blogs is showing stuff that is in the activity stream like “member x joind group b”
Is this something that is supposed to happen, a side effect of using the parse args mucking with the site tracking that the recent posts widgets gets / pulls from?
Maybe I messed up the code to filter the activity stream and this is my created bug – or maybe doing things this way does indeed affect the other?
my bp-custom.php:
<?php // hacks and mods will go here define( 'BP_DEFAULT_COMPONENT', 'profile' ); function remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' ); // block activity stream stuff - things to include function demo_parse( $retval ) { // existing BP/bbP activities // remove the one you wont to see from that list $retval['action'] = ' activity_comment, activity_update, bbp_topic_create, joined_group, last_activity, new_avatar, new_blog_post, new_member, updated_profile, rtmedia_update, bp_doc_created, new_groupblog_post, bp_album_picture, added_group_document, new_blog_comment, new_member, created_group, '; return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'demo_parse' ); // block activity stream stuff removed friendship_created, new_avatar,bp_doc_edited,activity_liked, // deleted_group_document, new_blog, new_forum_post, new_forum_topic, new_status,new_wire_post // previously blocked via plugin - deleted_group_document, new_blog, new_member, joined_group, friendship_created, activity_liked ?>I tried to copy register.php into theme director and make it as a template but nothing showing. Also i want to add my custom post or video above the registration form.How it possible ?Please Help me. I will grateful to you.
Thanks