Search Results for 'how to hide pages'
-
Search Results
-
Topic: [Resolved] Navigation Menu
I am using WordPress 3.2.1 and Buddypress 1.5.1 and I cant seem to find a way to hide my members profile, groups, pages from visitors (logged out members). Is there a plugin I can use? Or anything simple? This is one of the reason I’m putting off ablums etc for my members.
Any help would be greatly appreciated. Thanks in advance.
Hi,
I’m using Buddypress for an academic blogging system. We don’t want students’ usernames to be visible in the system to other users, alongside their real names. The display names are populated by LDAP values.
I have disabled @mentions, which use the username values. All I need to do now (I think) is change the urls of members’ profile pages, which currently use the studentID. e.g:
http://domainname.ac.uk/members/zhe11341841/Is it possible to rewrite these to use another unique identifier, such as member ID? e.g.
http://domainname.ac.uk/members/751Thanks!
Topic: Need help please :/
I’ve started reading threads about the BP_DEFAULT_COMPONENT & define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); which I get and it works but I was wondering if anyone knows of a plugin or of a way to add a check to see if the member is a friend or follower.
I’m thinking of doing something like;
if the user is a friend
show Activity as default tab
if not
show Profile as default tabthe more I think about it, the more it sounds like a privacy plugin but I haven’t seen anything like that as a feature of current privacy plugins.
I guess this is similar to FB behavior when looking at profile pages. I guess the privacy element would require to hide all but profile tab if not a friend and I don’t know that I need that right now. just switching between tabs I think is enough for what I’m thinking.Is there any way to pass username as buddypress name and then hide buddypress name from registration page and edit profile page? I saw a plugin that makes the them use the username only but the buddypress name field still exists which is very confusing. Instead of hiding the buddypress name from different pages I want to make it the same as username.
I am wondering how do I change the pages my Fishbook buddypress theme displays. In the upper right it says Members, Activity, groups and I would like to hide or not display the Groups button/ page.
Hi all,
It’s a well covered topic here, but my problem seems to be common, although a definite answer doesn’t appear easy to find.
Registration issues, once submitted, I’m not going any further, the validation doesn’t activate, and the new user doesn’t capture. This is with my theme installed (Unite 2.0 by Parallelus (Andy Wilkerson)), however it does work on BuddyPress’s default theme. And if I install a basic theme like twenty10, I can get it to work no problems once I copy the required files across.
So my thoughts are, that there is something function wise that is missing or broken in Unite 2.0 theme (which I have to use as the client requires this, and has spent money customizing), and is conflicting, or not being called identically. I have followed just about all steps I can think of, and can’t fix the final missing piece,
Has anyone come across something like this? The functions.php file for unite is quite small, so I have pasted it below, as a starting point, and if you need any more info or files I can pass them on:
My setup is as follows:
Latest WordPress
Latest BuddyPress
BuddyPress Templates modified to work as expected on my theme or not modified and clean installed, not working
functions.php#================================================================== # # Admin control panel setup # #================================================================== # Default theme variables and information $themeInfo = get_theme_data(TEMPLATEPATH . '/style.css'); $themeVersion = trim($themeInfo); $themeTitle= trim($themeInfo); $shortname = strtolower(str_replace(" ","",$themeTitle)) . "_"; $postIndex = false; // special case variable for index paging bug // set as constants //................................................................ define('THEMENAME', $themeTitle); define('THEMEVERSION', $themeVersion); // shortcuts variables //................................................................ $cssPath = get_bloginfo('stylesheet_directory') . "/"; $themePath = get_bloginfo('template_url') . "/"; $themeUrlArray = parse_url(get_bloginfo('template_url')); $themeLocalUrl = $themeUrlArray . "/"; // setup info (category list, page list, etc) //................................................................ $allCategories = get_categories('hide_empty=0'); $allPages = get_pages('hide_empty=0'); $pageList = array(); $categoryList = array(); // create category and page list arrays //................................................................ foreach ($allPages as $thisPage) { $pageList[$thisPage->ID] = $thisPage->post_title; $pages_ids[] = $thisPage->ID; } foreach ($allCategories as $thisCategory) { $categoryList[$thisCategory->cat_ID] = $thisCategory->cat_name; $cats_ids[] = $thisCategory->cat_ID; } // Translation ready code //................................................................ // Make theme available for translation, Translations can be filed // in the "languages" directory. To change language just change // the value of $locale with laguage .mo file name.. // for example: global $locale; $locale = 'pa_IN'; load_theme_textdomain( THEMENAME, TEMPLATEPATH . '/languages' ); // This theme uses wp_nav_menu() in one location. //................................................................ if (version_compare( get_bloginfo('version'), '3.0', '>=' )) { register_nav_menus( array( 'primary' => __( 'Primary Navigation', $themeTitle ), ) ); } # Admin Menu Options // include options functions //................................................................ include_once('theme_admin/includes/option_functions.php'); // Menu structure //................................................................ function this_theme_menu() { add_menu_page('Theme Options', THEMENAME, 10, 'theme-setup', 'loadOptionsPage', get_template_directory_uri().'/theme_admin/images/themePanelIcon.png'); add_submenu_page('theme-setup', 'General Settings', 'General Options', 10, 'theme-setup', 'loadOptionsPage'); add_submenu_page('theme-setup', 'Home Page', 'Home Page', 10, 'homepage-options', 'loadOptionsPage'); if ( version_compare( get_bloginfo('version'), '3.0', '<' ) ) { // Theme menu manager only used for WP versions earlier than 3.0 add_submenu_page('theme-setup', 'Main Menu', 'Main Menu', 10, 'mainmenu-options', 'loadOptionsPage'); } add_submenu_page('theme-setup', 'Slideshow', 'Slideshow', 10, 'slideshow-options', 'loadOptionsPage'); add_submenu_page('theme-setup', 'Sidebar', 'Sidebar', 10, 'sidebar-options', 'loadOptionsPage'); add_submenu_page('theme-setup', 'Blog', 'Blog Pages', 10, 'blog-options', 'loadOptionsPage'); // 18-Aug ubhi -ps (added the blog link) add_submenu_page('theme-setup', 'Portfolio', 'Portfolio Pages', 10, 'portfolio-options', 'loadOptionsPage'); add_submenu_page('theme-setup', 'Contact Page', 'Contact Page', 10, 'contact-options', 'loadOptionsPage'); } // Create menu //................................................................ add_action('admin_menu','this_theme_menu'); // call and display the requested options page //................................................................ function loadOptionsPage() { global $themeTitle,$shortname,$pageList,$categoryList,$wp_deprecated_widgets_callbacks; include_once('theme_admin/includes/options_pages/'. $_GET .'.php'); // Get the list in array array form of excludes $customOptionsPages = array('slideshow-options', 'mainmenu-options', 'blog-options', 'portfolio-options', 'sidebar-options'); if ( !in_array($_GET, $customOptionsPages) ) { include_once("theme_admin/options.php"); } } # Addon Functions and Content include_once("theme_admin/includes/addon-functions.php"); # Include Widgets include_once('theme_admin/includes/widgets.php');
I’ve got a community of about 1,000 members and 300 blogs. Yesterday afternoon, the permalinks structure for all sub-blog posts changed from /year/month/title to year/month/day/title. So, all of the thousands of posts on those sub-blogs now lead to 404 pages.
Anyone have any clue what file would do this?
Yesterday afternoon I was tinkering with theme files for my main theme only – and mostly just single.php – so I don’t think I fat-fingered this.
There were some plugin updates yesterday and the only one that even seems like a possible culprit is Donncha’s Domain Mapping, which implied only minor changes to be compliant with 3.1 (but it didn’t require 3.1). To be sure, I renamed my plugin and mu-plugin folders to force-deactivate them – no change to my permalinks.
I’ve checked wp-config and there doesn’t appear to be any changes and certainly nothing that would impact permalinks.
My htaccess file was edited. Yesterday we adjusted some of the “expires header” settings. Fearing that somehow that caused the problem, we loaded in a backup htaccess and there was still no change in permalinks.
Also of note, I use an mu-plugin to hide the permalink button on my user’s menus. So, they can’t change them.
I’m tempted to try a 3.1 update to see if that fixes anything – but I was also hoping a wait a week or two for the various plugins to get updated.
My hosting company scanned my install for malicious code and found nothing. Access logs didn’t show anything suspicious either.
Thoughts anyone? I’m hoping it’s a simple, obvious tweak that is right in front of me but I’m too close to see it.
Aarrgh!
I am running WP 3.0.4 multi-site (subdirectory) + BP 1.2.7. Buddypress is installed on a secondary blog, /community.
When we set it up, we could not use the root blog at blogs.otis.edu/, so I have tried to hide it, with moderate success. The DNS redirects blogs.otis.edu/ to blogs.otis.edu/community. New users are added as subscribers to another blog, /dashboard, if they don’t already have a blog. The pages load, people can log in, there is joy in the world.
However. If you make a typo with the URL, e.g. /communityyy, the “Error establishing database connection” page appears. Not a 404 Page Not Found error. Same thing when someone goes to a page in the root directory, e.g. /wp-login.php. This latter one is annoying since the new registration emails point to /wp-login.php instead of /community/wp-login.php.
Another factor: On the Sites-Edit screen, the root blog’s siteurl = SERVERNAME.otis.edu. and it is NOT editable. All of the other subblogs, including /community, have the siteurl = blogs.otis.edu. The only place I have found that SERVERNAME to appear is in my FTP client; it does not appear in wp-config.php.
Any ideas on how to properly configure my site? My ideas include:
– finesse the DNS redirect
– adding more rewrite rules to .htaccess
– moving BP to the root blog
– use a domain mapping pluginThanks in advance.