Search Results for 'how to hide pages'
-
AuthorSearch Results
-
December 25, 2014 at 9:24 pm #231036
In reply to: Buddybar issues with wordpress 4.1
danbpParticipantTempera theme was recently updated and normally you haven’t to use the old buddybar.
So the define is of no utility… (see ticket)BP use now the WordPress Toolbar.
It looks also that you have 2 activity pages, 2 members page and 2 groups page. There should be only one. See if you have deleted pages, and clear the trash.
Also set up the pretty permalinks (anything but default), or at least re-save that setting page.Finally, make a test with one of wp’s default theme, bring anything to work, before activating Tempera.
I use another theme of the same author, and if like i suspect, there is the same theme customization tool in Tempera, you must be carefull with that theme settings.
In BP settings, you have an option to show/hide the toolbar to logged out user. Deactivate it.
And read the theme doc attentively ! 😉
November 19, 2014 at 8:30 am #229185mcpeanutParticipant@izzyian, I believe if you use the code above it will also remove the Whats new form from your main activity stream too! If you want to hide it from just the profile pages i suggest trying this code.
div#item-body form#whats-new-form {
display: none;
}Hope this helps
October 17, 2014 at 5:06 am #215432mahdiarParticipantThanks .
I read those pages before . The first one is about 9 month ago and it is closed to new replies . I can’t find any solution there .
The second one is about how to hide comments completely in activity stream but it’s nice to see them just by one click on the activities .September 17, 2014 at 4:11 pm #197257In reply to: New problem i havent seen before?
danbpParticipantThe problem is with the hiding of activity comments
How did you hide activities comment ?
Default wp/bp install let you add 5 (nested) comments only. And all comments are shown on SWA. If you have 100 you have to scroll them, yes.
I’m unable to reproduce your issue.Try this bp settings:
check profile syncing
check activity stream commenting for blog and forum
check automatically check for new itemswp discussion settings
uncheck Enable threaded (nested) comments
uncheck Break comments into pagesSeptember 13, 2014 at 3:54 pm #193476In reply to: [Resolved] Customise register page
danbpParticipantThe field NAME in the field group BASE is required. This group is used for the registration page to work. As you already know, it’s also this group who allows you to show custom fields on the registration page.
The NAME field in BuddyPress is intended to receive first and last name and replace the two original fields (first name, last name) coming with WordPress.That said, you can hide this field to users, but you can’t give them the choice to show/hide it.
The above snippet will hide the field NAME to all visitors/members, but not to site admin and the concerned profile.
function bpfr_make_name_members_only( $retval ) { //hold all of our info global $bp; // is xprofile component active ? if ( bp_is_active( 'xprofile' ) ) // The user ID of the currently logged in user $current_user_id = (int) trim($bp->loggedin_user->id); // The author that we are currently viewing $author_id = (int) trim($bp->displayed_user->id); // user can see only his name && admin can see everyone if ($current_user_id !== $author_id && !current_user_can('delete_others_pages') ) { $retval['exclude_fields'] = '1'; } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_name_members_only' );
Add this to your child-theme functions.php or to bp-custom.php
August 9, 2014 at 8:53 pm #186374In reply to: No option to Select who sees Name in Profile Field
August 1, 2014 at 11:16 pm #185851In reply to: Hide admin from member list
pstidsenParticipantHi danbp
I have now inserted all of your code in functinos.php, but the only place the admin user disappear is at the “All users”-page. The admin user still shows up at the group members pages and the front page where I have listed all members with the Bowe code plugin.
I need to hide the admin from the entire site.
July 23, 2014 at 2:58 pm #185464In reply to: $bp->bp_options_nav wrong user links
jejemoParticipantThanks for you help !
Actually I hide the admin bar on my pages. That’s the reason why I’m trying to build the exact same menu on another navigation bar.
I feel like it is a bug because here, it says that :
$bp->bp_nav “is the array used to render each component navigation menu item for the logged in user”
and
$bp->bp_options_nav “is the array used to render all of the sub navigation items for the $bp->bp_nav array”.
Actually I feel like I’m having the result of $bp->bp_users_nav.
Because it “is the array used to render each component navigation menu item for the displayed user (when you view a user that is not you).”What do you guys think ?
July 19, 2014 at 2:33 am #185279foresmeParticipantHello! I’m using the Membership plugin by WPMU.
Will the private bp pages plugin hide member activity from Google listings?
Thank you 🙂
May 20, 2014 at 11:03 pm #183167Tbarnes37ParticipantHi @soran7
I’ve narrowed the problem down further and found a hack that works for me. If you look in buddypress-functions.php, there’s a function at line 739 called bp_legacy_theme_new_activity_comment. At line 770 is the process of inserting the new comment into the activity stream.
It begins by checking if $activities_template->activities[0] is set. I’ve tested this function on an actual group page and found that this returns true, so it’s able to handle the activities effectively. However, on my custom template, this returns false; thus, the new comment data is never inserted. Of course this is separate from the process of saving the new comment to the database, so it makes sense that the comments still show up after refresh.
I’m still hoping to find a less hacky way to do this, because my current solution messes up other activity stream pages, but I’ve managed to get my custom template working by copying buddypress-functions.php into my theme folder and modifying line 768 to have a ‘groups’ scope.
So change line 768 from this:
bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );
to this:
bp_has_activities( 'scope=groups&display_comments=stream&hide_spam=false&include=' . $comment_id );
Hope that helps! And if you’re able to find a better, less damaging way, please let me know. My hangup currently is that even if I manually set $bp->current_action to ‘groups’ in my template, it gets over-written at some point after page load, due to a url check that finds my template to not be at a group home url.
February 14, 2014 at 9:58 am #178386JenParticipantHi I’m wanting to just hide member profile pages, but keep all other BuddyPress pages public. I tried this code in my bp-custom.php, but it doesn’t work. Any ideas?
/* Prevent logged out users from accessing bp profile pages */ function nonreg_visitor_redirect() { global $bp; if ( bp_is_profile_component() { if(!is_user_logged_in()) { //just a visitor and not logged in wp_redirect( get_option('siteurl') . '/register' ); } } } add_filter('get_header','nonreg_visitor_redirect',1);
December 23, 2013 at 6:48 pm #175992In reply to: Group Fun and Games
bowoolleyParticipantI’m all for fun and for personalising group activities! I’m thinking of adding polls and quizzes, but I don’t like adding tabs to the group page – I have actually been trying to avoid sending users (many of whom are somewhat grouchy about technology) to the default group pages (which look sort of 1999, even in my estimation.) So I’m playing with ways to hide the default group page and create a separate “space” for each group (without going MU.) I’ll follow this thread with interest, and post if I find something useful!
November 24, 2013 at 12:30 am #174704In reply to: Buddypress on Mobile / Hide admin access
mattg123Participant@pjbursnall yeah that code replicates the notification element only (the only part that is somewhat confusing to replicate) you place the code in the plugins directory in bp-custom.php you may have to create the file yourself.
http://stackoverflow.com/questions/9953482/how-to-make-a-pure-css-based-dropdown-menu – shows you how to create a drop down menu, https://codex.wordpress.org/Function_Reference/get_currentuserinfo get the current users info so you can create links to their profile pages, etc.
Just a note, to add the notifcations to your custom bar your code will look something like
<li><?php bp_notification_badge(); ?></li>
October 22, 2013 at 8:47 pm #173237In reply to: [Resolved] Buddypress Pages Post ID
mizzincParticipantSimple styling options. Show/Hide page title, breadcrumbs, feature image?
Hmm, after reading your extended response, perhaps I am approaching this from the wrong angle.
October 5, 2013 at 6:30 pm #172349In reply to: Feature request: Hide certain members
robotnjikParticipantI have similar request. We would like to exclude admins from groups. We set that only admins can create groups and now all groups have admin for a member. It is ok to have admin activity listed but we would like to hide admins from member listings on group pages. Is this code or part of code work on BP 1.8.1.?
September 13, 2013 at 11:01 pm #171313danbpParticipanthi @valuser,
the bp_is_blog_page function is missing to hide the calendar when on BP pages.
The place with the weird output contains an overcomplicated method to show a title. IMHO there is no need to use so many conditionnals to show a post title…. So I replaced it by the h1 stuff used in Twenty Thirteen.
You will probably need some adjustment into CSS too. So far i can see there is no other trouble with BP. Nice theme !
remove/replace the following into /partials/part_article_header.php
<?php // Article calendar if ( bp_is_blog_page() ) : // if it returns true, it's not a BP page. if (!is_page() && !is_search()) : ?> <div class="calendar event_date"> <span class="month"><?php echo strtoupper(get_the_date('M')); ?></span> <span class="day"><?php echo get_the_date('d'); ?></span> <span class="year"><?php echo get_the_date('Y'); ?></span> </div> <?php endif; endif; // ending bp_is_blog_page ?> <h1 class="entry-title"> <?php if ( is_single() ) : ?> <?php the_title(); ?> <?php else : ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php endif; ?> </h1>
August 31, 2013 at 2:28 pm #170681In reply to: Hide members page
bp-helpParticipant@kenstansmith
A quick search provided all of these related threads. You should be able to find something in one of them that will point you in the right direction.
https://buddypress.org/support/search/how+to+hide+pages/July 7, 2013 at 12:33 pm #167714In reply to: Hide members from Members Directory
RiGoRmOrTiS_UKParticipantI’m happy to forget filtering members by last activity date.
So to simplify it; can someone can tell me how to filter members from the member’s directory if their WordPress role is set to “no role on this site” (or the blocked role from bbpress). Also when hiding such members the pagination count in the members directory would also need to be correct; as the previous ideas remove the member but not the count; thus you get empty pages saying “showing members X – X” but nothing there.
I’m a totally inept when it comes to coding in PHP so any help really is appreciated.
June 23, 2013 at 10:13 pm #166676In reply to: Hide members from Members Directory
RiGoRmOrTiS_UKParticipantHi, Thanks for that.. I’ve just tested the code. It certainly removes members who haven’t logged in for 60 days; however it doesn’t reduce the “member count” on the page; so you end up with empty pages where it says its showing members 80-88 but no-one is listed.
Is there anyway to get the member count to reduce so I don’t have empty pages with invisible members? 🙂
also the role exclusion doesn’t appear to work; I’ve tried replacing it with ‘subscriber’ to see if it was because “blocked” wasn’t the right role phrase; however subscribers were still displayed; so I assume its a code error?
June 8, 2013 at 11:55 pm #165629In reply to: How to Hide Members Page But Not Disable It?
@mercimeParticipantMembers page is not visible in the top menu bar
@waterfiend check out http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/ or have a look at different solutions posted for a private BP site at https://buddypress.org/support/topic/protecting-buddypress-pages-from-non-logged-in-users/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!
April 28, 2013 at 7:47 pm #162954In reply to: pages: register and activate?
Anton NaydenoffParticipantThis key works same as the link to confirm your acount sent to your e-mail works. The difference is that the key has to be manually entered in the field on “Activate” page. You can hide this page from your menu for logged in users because it is meanless for them after registration, activation and logging in the site for the first time.
April 5, 2013 at 1:06 pm #159983In reply to: Remove/hide frontpage menu
giannisffParticipantIf you change the css file you will remove it from all pages. In my opinion just find this code to your html file and remove it. In any case you can do an inspection element to your browser (this will help you more). Have a backup anyway.
`
`
March 2, 2013 at 9:21 pm #154911In reply to: [Resolved] Attn: (help needed!)
39imagesParticipantIs there a way to hide postbullets just on the BP pages?
February 21, 2013 at 9:07 pm #153648bp-helpParticipantAlso, how can I hide the Activity pages etc. until the user loggs in?
Read my reply in the following thread to accomplish this.
https://buddypress.org/support/topic/private-community-with-public-wordpress/ -
AuthorSearch Results