Search Results for 'how to hide pages'
-
Search Results
-
Topic: Hide pages/content
Hi,
I am building a membersite using buddypress, bbpress and package it with buddyx theme.
If I visit as non-logged in I can see activites, forums, member etc. Is it possible to somehow block that? Perhaps re-direct to a login/register page as facebook does?
Best regards,
flamuren
Hi there,
how can I deactivate the “Public message” button on all profile pages?
I think those 2 buttons are too confusing for the users.
The “Private message” button is more then enough, I thinkHi.
I install your plugin .
And every thing is ok.
But the comment area still appears.
How can hide all comments from all post.
For example:
https://ophthoplus.com/staging/1967/members/ophthoplus2/Kindly help us to remove comments ?
Topic: Margin-left move
So I also have youzify plugin enabled for my Buddypress and I have been trying to get the buddypress pages to shift to the left so the content doesnt hide behind my elementor section.
I have tried editing the css files in youzify but to no avail. Can anyone help me ?
Hello !
First of all, I apologize if the answer already exists, but I am new to the php language, and I do not understand much …
I created a website for an organization, and I set up a community space thanks to Buddy Press and Youzify.
Here is my question: I want to make this space completely closed, and not accessible to non-logged in users. I tried putting this php code in wp-content / plugins / bp-custom.php:
<? php
/ **
* Redirect the Buddypress directories to the login page for non logged in users.
* /
function yzc_redirect_bp_directories_to_login_page () {if (! is_user_logged_in () && (bp_is_groups_directory () || bp_is_members_directory ())) {
// Get pages Buddypress;
$ bp_pages = get_option (‘bp-pages’);// Get the redirection URL
$ redirect_url = youzify_get_login_page_url ();wp_redirect ($ redirect_url);
go out();
}
}add_action (‘template_redirect’, ‘yzc_redirect_bp_directories_to_login_page’);
Now unconnected users cannot have access to member directory and groups directory, but I would like to block access to all BuddyPress pages (such as member profile pages, activity page. ..) and redirect to the login page.
Could someone help me complete this piece of code?
Thank you for your helpTopic: Widget verbergen
Dear
Is there a possibility to hide a widget on the registration form.
I can hide or show a widget on all pages except the registration page.Thanks in advance
GreetingsHi, i feel like im doing this properly but i never get the right result. i have a custom meta called “featured” in activity meta. For testing purposes the meta values are 1,2,3,4 my goal is to have an activity loop order activities by the meta value. i’ve checked the documentation and i came up with this.
<?php get_header(); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); $atts = array( 'title' => 'Latest Activity',// title of the section. 'pagination' => 1,// show or not. 'load_more' => 0, 'display_comments' => 'threaded', 'include' => false, // pass an activity_id or string of IDs comma-separated 'exclude' => false, // pass an activity_id or string of IDs comma-separated 'in' => false, // comma-separated list or array of activity IDs among which to search 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => 5, // how many per page. 'max' => false, // max number to return. 'count_total' => true, // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions). 'scope' => false, // Filtering 'user_id' => false, // user_id to filter on 'object' => false, // object to filter on e.g. groups, profile, status, friends 'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id. // Searching 'search_terms' => false, // specify terms to search on. 'use_compat' => bp_use_theme_compat_with_current_theme(), 'allow_posting' => false, // experimental, some of the themes may not support it. 'container_class' => 'activity',// default container, 'hide_on_activity' => 1,// hide on user and group activity pages. 'for' => '', // 'logged','displayed','author'. 'role' => '', // use one or more role here(e.g administrator,editor etc). 'for_group' => '',// group slug. ); $atts['meta_query']= array( array( 'key' => 'featured', 'value' => '0', 'type' => 'numeric', 'compare' => '!=', ), 'meta_type' => 'numeric', 'orderby' => 'meta_value_num', 'meta_key' => 'featured', 'order' => 'DESC' ); ?> <div id="buddypress"> <?php do_action( 'bp_before_activity_loop' ); if ( bp_has_activities( $atts ) ) : ?> <div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?>"> <ul id="activity-stream" class="activity-list item-list"> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'buddypress/activity/entry' ); ?> <?php endwhile; ?> <?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; ?> </ul> <?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> <?php endif; ?> </div> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> ?> </div> <?php do_action( 'bp_after_activity_loop' ); ?> <?php get_template_part('page-parts/general-after-wrap'); ?> <?php get_footer(); ?>everything here works except for the order. for some reason it always orders by activity ID. am i missing something here? Thanks in advance im going crazy with this.
Hi!
when i integrate buddypress items (such as profile, messages, groups…) in the menu, they are just shown if the visitor is logged in.
when i integrate a regular page (i created in wordpress) in the menu, it is shown weather the visitor i slogged in or not.
when i copy the css class of a buddypress menu item (e.g. bp-menu bp-settings-nav) and paste it in the css field of the regular page, this menu item is also just shown to logged in visitors. this is exactly what i need!
the problem is just, that it kind of confuses the menu. all tems with the same class are spoken at once.
is it possible to create my own css class of the same kind, that hides the menu items in case the visitor isn’t logged in?!
thanks a lot!!!
Hi!
Is it possible to hide members own pages from other users than admin.
Example if I have users “user1” and “user2”.
If User1 is in his own page “www.yourdomain.com/members/user1”
User1 can acces to User2 own page by changing only url to “www.yourdomain.com/members/user2”
Topic: remove ‘last active’ status
Hello, I searched existing posts but didn’t find this exact question.
On the members’ page, and on individual profile pages, it shows the time the member was last active. (example ‘active 3 minutes ago’)
I’d like to hide/turn this off but can’t figure out where or how to do this. I have turned off the activity stream but that didn’t do it.
Is there a snippet of code I need to change or add to accomplish this?I changed the theme to twenty-seventeen and it still shows up.
Wordpress version 4.9.8
BuddyPress version 3.2.0This will (temporarily) take you directly to the member ( ‘Connect’ ) page.
Thank you!
Denise