Search Results for 'Hide Admin'
-
AuthorSearch Results
-
June 19, 2013 at 9:01 pm #166430
In reply to: Hide Buddypress Profile based on Admin Field Value
shanebpModeratorWhile very doable, this will require custom coding.
You can contact me at PhiloPressJune 19, 2013 at 8:48 pm #166428In reply to: Hide Buddypress Profile based on Admin Field Value
dpetersParticipantWP Version: 3.5.1
BuddyPress: 1.7.2You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
What should happen if that page is accessed by that member or another member?
Redirect? Custom message page ?Either redirect to a listing of all active members or display an error page would be fine, (i.e. “This member is not currently an active member.”)
If ‘paid dues’ is a boolean, then it’s easy to write a function.
Where is that boolean stored?It would be stored in their profile as an Admin-editable field, per the original post.
Does that member still appear on the Members page? In the Activity stream?
No to both. Hidden users would be able to login and update information but their profile wouldn’t be public-facing, just them and the admins.
This would be useful as we have staggered dues, allowing profiles to turn off/on.
June 19, 2013 at 8:41 pm #166426In reply to: Hide Buddypress Profile based on Admin Field Value
shanebpModeratorYou need to state which versions of WP & BP you use.
You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
What should happen if that page is accessed by that member or another member?
Redirect? Custom message page ?If ‘paid dues’ is a boolean, then it’s easy to write a function.
Where is that boolean stored?Does that member still appear on the Members page? In the Activity stream?
iow. you need to be more specific about the behaviour that you want.
June 19, 2013 at 7:22 pm #166423In reply to: Hide wp-admin ( WP Dashboard from USers )
TeccaParticipantYou can download a plugin like Theme My Login — it automatically redirects logged out/non-registered users to a log-in page with your site’s style.
June 19, 2013 at 6:57 pm #166419In reply to: Hide Buddypress Profile based on Admin Field Value
dpetersParticipantAny ideas?
June 15, 2013 at 3:47 pm #166119In reply to: Hide Admin Bar for Logged OUt Users
LiltigerParticipant*My theme also… haha sorry for bad grammar
June 15, 2013 at 3:46 pm #166118In reply to: Hide Admin Bar for Logged OUt Users
LiltigerParticipantHey,
If you go to Dashboard Settings > Buddypress > Settings, then the first option is ‘Show the Toolbar for logged out users’. Just uncheck it.
My theme is also has a setting for the login toolbar, so you may want to check out your theme settings.
I hope it helps!
May 29, 2013 at 11:28 am #164980In reply to: hide admin from members list
WPAgenturParticipantHi, i put the code in my theme funktions.php but superadmin is still visible in memberslist.
add_action(‘bp_ajax_querystring’,’bpdev_exclude_users’,20,2);
function bpdev_exclude_users($qs=false,$object=false){
//list of users to exclude$excluded_user=’1′;//comma separated ids of users whom you want to exclude
if($object!=’members’)//hide for members only
return $qs;$args=wp_parse_args($qs);
//check if we are searching for friends list etc?, do not exclude in this case
if(!empty($args[‘user_id’])||!empty($args[‘search_terms’]))
return $qs;if(!empty($args[‘exclude’]))
$args[‘exclude’]=$args[‘exclude’].’,’.$excluded_user;
else
$args[‘exclude’]=$excluded_user;$qs=build_query($args);
return $qs;
}
Iam using WP: 3.5.1 and BP: 1.7.2 with the buddyboss-theme.
May 22, 2013 at 3:08 pm #164526In reply to: BuddyPress 1.7.1
SurajParticipantyou guys are just awesome.
I have a feature request. I searched for the same using Google and almost across all the buddypress related support forum and tried all the codes but the thing is not working for me, I want to hide the admin activities to appear on my site, but it is not working, if possible, can you add a feature to hide all the activity of any particular user if he wants to including his/her online status.May 21, 2013 at 3:45 pm #164444Ben HansenParticipanti’m not using that one i’m using this one:
<?php //hide superadmin add_action("plugins_loaded","bpdev_init_sm_mode"); function bpdev_init_sm_mode(){ if(is_site_admin()) remove_action("wp_head","bp_core_record_activity"); //id SM is on, remove the record activity hook } ?>
May 7, 2013 at 10:44 pm #163561In reply to: Custom User Role Doesn't Have Sufficient Privileges
danzigismParticipantYou’re right @shanebp
After reading that manage_options much gives that role access to the entire Settings feature of WordPress I realized that isn’t good. Needless to say, I have used Adminimize to hide the “Settings” tab from the Manager user role for the time being but certain savvy people could still access it if they knew the URL to those settings pages.
I submitted the bug to: https://buddypress.trac.wordpress.org/ticket/4991#ticket
Thanks again for all of your help!
May 3, 2013 at 12:06 pm #163334In reply to: Possible bug – last_activity missing
rypo73ParticipantOK – you’re onto something… And it seems your initial hunch of PBCK was spot on – feeling foolish, but enlightened now!
SO… I had some code in my custom-functions.php file to ‘hide’ the site admin activity (see below). Because we have several users with ‘Administrator’ roles, it seems this particular user was affected. Others MAY have been if they had logged in more often…
Seems this code was not the best to use:
// Don’t record activity by the site admins or show them as recently active
function my_admin_stealth_mode(){
if ( is_site_admin() ) {
global $bp;
remove_action(‘wp_head’,’bp_core_record_activity’);
delete_user_meta($bp->loggedin_user->id, ‘last_activity’);
}
}
add_action(‘init’,’my_admin_stealth_mode’);SO I’ve removed it in favour of THIS version, specifically masking the activity of INDIVIDUAL users with ‘Administrator’ roles, like our site admin user.
// Don’t record activity for a user or show them as recently active
function my_user_stealth_mode(){
$current_user = wp_get_current_user();
if(is_user_logged_in()) {
if(‘YourUsername’ == $current_user->user_login) {
remove_action(‘wp_head’,’bp_core_record_activity’);
delete_user_meta($current_user->ID, ‘last_activity’);
}
}
}
add_action(‘init’,’my_user_stealth_mode’);Hope it might be of use to others in future. Thanks for responding to my post. I’m now a LOT more familiar with meta data fields as a result.
p.s. you’re right about # plugins, we do need a lot, but not ALL of those. It’s our dev environment after all. Often a case of playing with different ones to see what fits the bill.
April 11, 2013 at 6:59 pm #161330In reply to: Hide Admin Bar Buddypress v. 1.6.1
meg@infoParticipantIn functions.php file of your current theme 😛
April 11, 2013 at 6:26 pm #161327In reply to: Hide Admin Bar Buddypress v. 1.6.1
tibmixParticipant@megainfo Great. Where should I add this line? (don’t, please, think what I think you’re thinking)
Thanks.April 8, 2013 at 7:08 am #160267In reply to: PLEASE HELP ME TO SOLVE MY PROBLEM
Prince Abiola OgundipeParticipantAns 1, you can hide it with simple css in your theme by using :
#wp-admin-bar-wp-logo>.ab-item .ab-icon {display:none ! important}
I dont understand the question 2
Naijaping
March 19, 2013 at 3:56 pm #156787In reply to: how to hide admin activity on Buddypress activity?
Ben HansenParticipant@mercime thanks!
March 19, 2013 at 7:39 am #156754In reply to: how to hide admin activity on Buddypress activity?
@mercimeParticipant@ubernaut the code provided by sbrajesh is only for Super Admin (multisite) or Site Admin (single WP) not for members who create a subsite. You’d need change is_site_admin to is_super_admin even when you use it in single WP install. is_site_admin had been deprecated some time after I posted sbrajesh’s code
I don’t recall trac ticket for this enhancement. Up to you to make a request in trac 🙂
March 14, 2013 at 9:37 pm #156418In reply to: how to hide admin activity on Buddypress activity?
Ben HansenParticipant@mercime Quick question about your code, i had been using BP ninja successfully but i found that the “who’s online” widget is still available on sub sites and the plugin appears to not be effective on the sub sites showing my normally invisible super admin user so now i’m looking for alternative once again.
So my question is will this code cause all admins to be invisible or just super admins? i don’t think i’d want to hide anyone who creates a site.
Also has anyone entered this as a core feature request? Seems like it would be a great addition at least to me.
March 4, 2013 at 5:39 pm #155050In reply to: Paid virtual gifts?
FeeligoParticipant@wpnewbie69 Maybe you might be interested in this new GiftBar plugin that we have just launched.
http://feeligo.com/en/giftbar/buddypress
It has an option for paid gifts and has a large catalog of well-designed, contextualized gifts. In addition, the plugin is completely free and all revenues earned by gift purchases are shared equally between Feeligo and the social network owner.
You can demo it here: http://feeligodemo.com/
Set-up and installation should take just a couple of minutes. If you find any issues with the widget, feel free to contact our support at https://feeligo.zendesk.com
Thank you.
More details about the plugin:
==============================
Benefits:
• Increase your community’s engagement
• Earn a share of all paid transactions by your members
• Improve the experience of your social network & drive traffic
• Always free for you with no obligations
• Easy set-up
• Adapts perfectly to your site’s structure and any other bar plugins==============================
Plugin Features:
• Send gifts – Send gifts to any member of the community
• Personalise messages – Can enter a special message while sending a gift
• View gifts – Giftbar is visible at the bottom of the screen, allowing easy access to send and view gifts (acts like a trophy cabinet, increasing a member’s value in the community)
• Purchase gifts – Easy & secure purchasing through paypal, credit card, or mobile phone
• Hide bar – Can easily hide or show the Giftbar
• Select multiple friends – Can send gifts to multiple friends at a time
• Ad-free – No clutter==============================
Admin Features:
• Manage gift catalogue – Select from over 300 professionally designed gift options
• Select themed gifts – Choose specific gifts for festivals and occasions
• Add personalised gifts – Add your own gifts
• Optimize gifts using Advanced Analytics – Manage Giftbar usage, including gifting history, revenue earned, and details of most popular gifts and most active users
• Manage gift descriptions – Modify the names and descriptions of gifts
• Ask for help – Access our FAQs, help guides and support forums==============================
March 2, 2013 at 1:07 pm #154874March 1, 2013 at 12:00 am #154764Brajesh SinghParticipantNo problem. You are most welcome 🙂
February 28, 2013 at 11:46 pm #154760February 28, 2013 at 11:33 pm #154758Brajesh SinghParticipantYou Can put this code in your bp-custom.php and It will take care of your issue
`
add_action(‘bp_friends_setup_nav’,’bpdev_custom_hide_friends_if_not_self’);function bpdev_custom_hide_friends_if_not_self(){
if(bp_is_my_profile()|| is_super_admin())
return ;bp_core_remove_nav_item(‘friends’);
}
`
hope that helps.
February 28, 2013 at 11:17 pm #154755rizingsunParticipantThanks @bphelp
But my intent is that the “Friends” tab should not be visible to anyone except the account user (like “Settings” and “Messages” tabs are only visible to an account user).
Even if you’re friends with a user, you should not be able to see his other friends.
Complete privacy.
I would like to make the “Friends” tab a private setting. Is there any way to do that?
February 28, 2013 at 11:04 pm #154754bp-helpParticipantI already tested the advice I gave you and if you click on a users friends tab that you are not friends with it displays the message “You must be friends in order to access users friends.”
I am sure there is someway to build upon that function so it only displays the friends tab if you are friends with that user. -
AuthorSearch Results