Search Results for 'Hide Admin'
-
Search Results
-
Topic: 404 on Manage groups page
I just found a little problem on my website.
As an admin I can edit directly on the Front-End the profiles of my users if there is bad data.I show the fields like this (I have only 1 group):
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> // many things are going on here! but nothing special <?php enwhile; ?>
The problem is… EMPTY fields are not in the output!
I tried to put
array('hide_empty_fields' => 0)
intobp_the_profile_field()
but this doesn’t work.I handle everything (display of the profile, editing of the profile fields etc) in
<my-theme>/buddypress/members/single/cover-image-header.php
Please help me 🙁
Hi guys,
I am running some tests on my site and found a few deprecated functions and recommendations for the BuddyPress plugin:
Unsafe/buddypress/bp-groups/bp-groups-actions.php view source base64_decode at line 141: $bp->groups->completed_create_steps = json_decode( base64_decode( stripslashes( $_COOKIE['bp_completed_create_steps'] ) ) ); Potential risk: High. Decode data encoded with MIME base64. May be used to obfuscate (hide) malicious code. Often paired with eval function to execute malicious code.
DeprecatedUnsafe/buddypress/bp-forums/bbpress/bb-includes/functions.bb-core.php view source force_ssl_login at line 566: ( ( $context & BB_URI_CONTEXT_BB_USER_FORMS ) && force_ssl_login() ) // Force https when required on user forms Deprecated 4.4.0 Use force_ssl_admin()
For a full report, I suggest you take a look at Plugin Inspector – https://wordpress.org/plugins/plugin-inspector/
Best regards,
MichaelHello guys,
How do I hide “+New” button,located at top bar, from members?
I only want administrators getting access to add new postings, media, etc.
I want something like this (I’m not a coder):
if ( ! is_user_logged_in() ) {
add_filter( ‘show_new’, ‘__return_false’ );
}Thank You!
Hello, im having problems with the registration and activity pages on my website, im new at this, so i dont know if i’ve made a mistake and where i might have made it…
I installed buddypress through wordpress plug-in search engine, and then went to settings and set up everything as i wanted, edited the profile fields as i needed, and then when i tried to visit the pages i only get the title of the page and the rest is blank, as if it where a normal page.
I’ve been searching different forums about people having the same problem, but i haven’t been able to find a solution, they’ve either been posted a lot of years ago, or they just say solved and do not share how they solved it.
If anyone can help, i will appreciate it a lot!!I have read the codex as many suggested, but it did not help because i did everything as it indicate to do it.
I created the register and activate page and then assigned them under Settings/Buddypress/Pages, how the codex indicates so. (i did not edit in any way the pages, i only created and assigned them.
I made sure that in Settings/General under membership the “anyone can register” is checked.
I’ve checked if the register.php and activate.php files do exist.
I read that it might be a bug, so i tried uninstalling this version (V2.5.2) and installing V2.5.1 and V2.3.5, just in case that would fix it…I truly don’t know what else to do.
Its my first website and i do not know a lot of coding, im learning as i go.
Could it be a bug in the plug-in? if so… how can i fix it?Just in case it helps, my host company is hostgator, WordPress is updated to the lates version, so is buddypress.
I have the following plug-ins installed (i know they are a lot, but since i do not know how to code, i sort of need them…) :
Admin Custom Login
Black Studio TinyMCE Widget
Black Studio Touch Dropdown Menu
BP Registration Options
BuddyPress
BuddyPress Cover Photo
BulletProof Security
Confirm User Registration
Contact Form 7
Duplicate Post
Hide Admin Bar From Non-admins
Lightbox Plus Colorbox
Meta Slider
No Right Click Images Plugin
Page Builder by SiteOrigin
PMPro KISSmetrics
Polylang
Protect My Contents
Quick Page/Post Redirect Plugin
SB Welcome Email Editor
SiteOrigin Widgets Bundle
Spacer
Title Remover
Wordfence Security
WordPress Access Control
WP Bouncer
WP Maintenance ModeThanks in advance for your help!
I’m looking to set up moderation through my BuddyPress install. I’ve looked at the permissions and no matter what I try I seem to come up empty handed – any thoughts on what permissions I would give to a user to allow them to delete others activity from the front end. I will have my site set up in such a way that the user (any level other than super admin) cannot see the back end.
Further, I have set up a user called flag, (I have hidden flag from being visible anywhere on the site, and when a user attempts to go to the URL they’re forwarded to the support page I have setup) I wish to have their notifications forwarded to anyone who has X role or to a set of user ID’s that can delete said post if it offends.
I used the above code to achieve the hidden user https://buddypress.org/support/topic/hide-admin-from-members-and-activity/#post-190874
Does anyone have any thoughts on this? I’m pretty stuck.
Thanks,
Kieran
hi – I have a multi author website and want people to be able to view authors profiles. I also have subscribers – is there a way to deny access for people to view subscribers profiles even if they type in the full web address and username?
I found this code for admins and am using it atm – is there a way to have it for subs as well.
// deny access to admins profile. User is redirected to the homepage
function bpfr_hide_admins_profile() {
global $bp;
if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
wp_redirect( home_url() );
exit;
endif;
}
add_action( ‘wp’, ‘bpfr_hide_admins_profile’, 1 );I am wanting to hide the notification alert ( that sits in the admin bar ) when it has a 0 count. Tried many css but nothing works.
.count no-alert {
display:none!important;
}I’m looking to exclude a single user ID from the main activity feed only. Directly above the main feed, I’m using a shortcode to pull in the latest post from this same single user, thus creating a ‘sticky’ post as this account only posts announcements. However, the code below seems to hide the user’s content across the entire site, so it doesn’t appear in either the shortcode-generate feed or the main feed.
Essentially, is there a way I can specifically target the main buddypress activity feed only with this exclusion? Thanks in advance for any help you can provide.
// hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 784 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
Hi, I’m using the below snippet from @danbp
// deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
When enabling WP_DEBUG, I get the following errors:
- Use of undefined constant bp_is_profile – assumed ‘bp_is_profile’ in …/fonctions.php in line 291
- Undefined property: stdClass::$id in …/fonctions.php in line 291
Although the redirect works fine, is there any way to resolve these 2 errors?