Search Results for 'Hide Admin'
-
AuthorSearch Results
-
February 21, 2012 at 8:32 pm #130228Tux KaponoParticipant
Actually, I did. She was wondering if there were more obvious solutions than what she could think of. Though she mentioned that the listed solution only works if you don’t ever have a different field name.
Attached is a screenshot of what I really was hoping BuddyPress would have, a standard Ning feature, which allows you to select ‘private’, so the answer will only be visible to you and other administrators: http://csplacemaking.com/images/profile-questions.png. This is the ideal solution.
February 21, 2012 at 2:34 pm #130200Hugo AshmoreParticipantYou’ll need to do something like wrap the custom xprofile loop section in a check for a specific field name ‘birthdate’ and do something like ‘if not’ ‘birthdate’ go ahead and display field item or display if is_admin if you want to be able to see users data as a site admin.
To remove a field you could do:
`<tr>
`
in the profile loop; equally if you wanted to remove a complete field group you can copy the approach seen in the file for ensuring that the base group is not shown `if ( 1 != bp_get_the_profile_group_id() ) ` adding an OR followed by a check on the group id to hide.February 14, 2012 at 5:41 pm #129792acesParticipantOn Buddypress > Settings select No for Hide admin bar for logged out users?
See: https://codex.buddypress.org/getting-started/configure-buddypress-components/#bp-settings
February 2, 2012 at 2:23 am #129048In reply to: hide admin profile from member list?
acesParticipantJanuary 29, 2012 at 3:45 pm #128793In reply to: hide admin from members list
Brajesh SinghParticipantJanuary 29, 2012 at 7:20 am #128782In reply to: hide admin from members list
oblaxParticipantExactly. How can I do it? I googled it and I could find any.
January 29, 2012 at 7:14 am #128781In reply to: hide admin from members list
@mercimeParticipantYou mean you don’t want the Admin to be included in the list of members in members directory?
January 27, 2012 at 9:37 am #128706In reply to: Interactive Profile Fields During Registration
MarcellaParticipantHey @davidveldt this should do it if you are using the default theme. Otherwise you should integrate as you see fit.
theme/registration/register.php
You can add any groups or fields as you require. The groups and fields here are arbitrary.
` ‘player’, 4 => ‘coach’, 5 =>’parent’, 6 => ‘instructor’); ?>
$role) : ?>
<div id="” class=”role-fields”><label for="”>
<textarea rows="5" cols="40" name="” id=””>
<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />
`
Create some profile groups to cater for each role. You can find the group id within the BuddyPress admin… In the url bar or investigate your database.
You should set-up the $roles array above to match your requirements.
Within the loop you can show any fields you have created within that xprofile group. If you have a select box within that group you would add the following code as outlined in the bp-default register.php
`
<label for="”>
<select name="” id=””>
`
Finally add the following jQuery where you house any other code of similar ilk.
`
jQuery(“.role-fields”).hide();
$roles = jQuery(“#roles”);
jQuery(“#field_2”).change(function()
{
$role = jQuery(this).val().toLowerCase();
jQuery(“.role-fields”).hide();
jQuery(“#” + $role).toggle();
});
`Here’s a pastebin for all that above. http://pastebin.com/QFdTdstz
No need for tabs or accordion this time.
Hope that helps you on the Road.
January 5, 2012 at 6:26 pm #127484In reply to: WP adminbar / BP buddybar bug/issue?
acesParticipantI put it in bp-custom-php – actually it also worked in functions.php…
I’m not sure if you want the same functionality. Wrapping in `is_admin` was so that the following lines only worked on the admin pages. `remove_action` shouldn’t be necessary.
The `define` line tells buddypress to use the wp adminbar. This adds the personal menu under your name like on this page and gets rid of some blank space under the menu bar. It also stops the buddybar being rendered (behind the WP admin bar – see WP bug mentioned above). I can not find a simple way to use the buddybar instead of the wp adminbar on the admin page – but I think that’s the way WordPress wants it to work…
For the public facing side I have selected Hide admin bar for logged out users? so you only see the buddybar when logged in.
What are you trying to achieve?
January 4, 2012 at 7:53 pm #127421dianeinatlantaMemberHi, Mercime. I am using Salutation by para.llel. us It has been recently revamped for use with Buddypress and I can see that many members seem to be doing fine. I am sure it is something I have done. I have changed only one setting under buddypress and that is ‘hide admin bar for logged out users’. I messed up initially on my pages set-up, so had to go back and re-install bp to get the permalinks working right. Now everything but this section works – it throws me out to google and says it is a broken link:
Oops! This link appears to be broken.
Suggestions:
Go to http://www.atlantagardeningforum.com
Search http://www.atlantagardeningforum.com for members admin settings generalI will try switching back to bp default and see what happens.
December 16, 2011 at 10:18 pm #126509In reply to: Hide the main blog from users “My Blogs” menu item
mrshowMemberanyone found a solution to this having same issue of users being considered blog owner in buddypress multisite setup. admin bar says my sites
mainsite.com
actuallsite.com -> user registeredMainsite does not belong to user how i get rid of link on bar and profile as it does this for all users.
November 28, 2011 at 2:59 am #125118SameeraMemberThanks for your reply. I don’t mind editing home.php because I’m doing it in my theme file. I’ve figured out a way to prevent the friends tab to other users. Just trying to figure out the way it’s done for messages, so that I’m not reinventing anything.
November 27, 2011 at 7:41 pm #125090modemlooperModeratorJust read you don’t want to edit home.php. There isn’t a filter for privacy like there is with messages for showing profile sections. Messages and xprofile fields has logic for output and can be filtered but the actual page needs a code edit.
November 27, 2011 at 7:37 pm #125089modemlooperModeratorInstall BuddyPress Profile Privacy plugin
November 23, 2011 at 4:38 pm #124887In reply to: ”Create a Group” button only allow admin to see
NahumParticipantremoving the button from the groups index page alone will not stop your members from being able to create groups…
have you seen this…to limit group creation to admins
If you just want to hide the button…maybe something like
`<?php if (is_user_logged_in() && current_user_can('administrator'))>
your button stuff
`November 21, 2011 at 7:57 pm #124774In reply to: how to hide admin activity on Buddypress activity?
@mercimeParticipant@igotmore There’s also this other plugin for that plugin https://wordpress.org/extend/plugins/bp-ninja/
November 20, 2011 at 10:09 pm #124737In reply to: how to hide admin activity on Buddypress activity?
igotmoreMemberNovember 20, 2011 at 9:38 pm #124736In reply to: Hide Admin
igotmoreMemberI put the code in my Theme functions (functions.php)
should i put it in buddypress/bp-activity/bp-activity-functions.php or ?
I’m noob in codes & coding, but I really need this, so I hope someone will help me get it doneNovember 20, 2011 at 9:31 pm #124735In reply to: Hide Admin
igotmoreMemberHey Magi182 I put that code in my functions.php and still no changes ? any other way?
Using WP 3.2.1. & BP 1.5.1
October 7, 2011 at 8:56 am #122648In reply to: Feature request: Hide certain members
FeeParticipantthis should work for excluding all super admins:
`
-
<?php while ( bp_members() ) : bp_the_member();
if( !in_array( bp_get_member_user_login(), get_super_admins() ) ) {
?>`September 30, 2011 at 12:57 pm #121554In reply to: How to edit and add thing to bp adminbar
Tahir TaousMemberi tried to remove Viisit Radom Member, Random Group And Random Site from BuddyBar successfully, Here is link for you how to make changes, edit BuudyBar.
http://www.funjog.com/learnbuddypress/2011/09/30/how-to-hide-visit-random-group-members-sites-menu-from-buddypress-buddybar/
Hope this will help.September 15, 2011 at 12:00 am #120091modemlooperModeratorYou need to clarify more, you can just re enable the groups component in the admin. if the hide the create button try going to the URL /groups/create
August 10, 2011 at 11:08 pm #118172In reply to: Activation Code after New Member Registration
WhitefoxMemberOK so I’ve had the same problem and have built a very clumsy workaround.
PROBLEM: When the user click the email verification it sends them to verify.php and logs them in to WP but my Buddypress doesn’t know they are logged in and asks them to login. If the user just ignores the login request there is no problem but users don’t do that so they try to login and get the same “error..please provide a valid activation key” message because the account is already active.
MY RUBBISH ANSWER: The only thing that worked for me was to hide the BP admin bar and handle login links manually then change the text on the verify.php to a simple ‘congratulations, you’re in’ message. The downside of this is that I lost the use of my BP-Sliding-Login-Panel which I love. so I would be very grateful for a real solution to this.
August 7, 2011 at 10:48 pm #117943In reply to: remove admin-bar
valuserParticipantdefine(‘BP_DISABLE_ADMIN_BAR’, true); + Hide admin bar for logged out users NO works
August 3, 2011 at 10:12 pm #117607In reply to: Hide Admin
DuckyParticipantThere is one problem with that solution, it does not hide the user from groups
-
AuthorSearch Results