Search Results for 'how to hide pages'
-
AuthorSearch Results
-
February 21, 2013 at 8:56 pm #153645findly01Participant
Thanks for the link
Any idea how to change the link in the navigation from ‘Members’ to ‘Your Profile’, so the user doesn’t have to trawl through profiles each time?
Also, how can I hide the Activity pages etc. until the user loggs in?
February 10, 2013 at 10:38 am #152779In reply to: Create private membership site with BuddyPress
FlorenceParticipantAhh, I wanted to achieve something like this as well. Like you, I’m using S2members (which I absolutely love – lets you hide/text menu items, text, posts, pages, downloadable content ect based on user role).
This is what I’ve done: For the registration process I’m using BAW invitation codes. Users need to register for a health course (using Event Espresso), and in the confirmation email they recieve an invitation code they can use to log in and access course materials.
January 22, 2013 at 7:41 pm #151497transmissionParticipantThanks for all the help. Fixed it now, I had missunderstood and had my pages set-up wrong. Thanks again.
January 18, 2013 at 12:00 am #150991danbpfrParticipantGo to your admin > Pages and delete the register and empty the trash
Do the same if you have a Login page.
Then go to settings > buddypress.
– Tab Component and check the one you want.
– Tab Pages and create a page from there for each component.
Save.
Now BP is correctly configured.
Check also settings > permalinks and choose something other as default.
If you created some custom menus before installing BP, double check them to have the new pages.
Done !
December 29, 2012 at 4:22 pm #149207In reply to: hide date and permalink from page – Status Theme
Hugo AshmoreParticipantDoesn’t look neat
Really? Please explain. If you mean that they display on all pages that’s what they are meant to do, if you are building your site using WP pages for everything I suggest you copy page.php rename it page-plain.php give it template headers so it’s selectable in the create page view and then strip out all but the content loop .
December 29, 2012 at 6:19 am #149192In reply to: hide date and permalink from page – Status Theme
saukgpParticipant@mercime thank you for replying, please check the page, http://eragenx.com and also other pages like http://eragenx.com/faq etc, date and permalink is being displayed on all pages. I am using chrome browser, infact, the result is same with opera or safari.
December 26, 2012 at 10:29 am #148940In reply to: [Resolved] hide profile from non-logged-in users
Michael4fmParticipantJust thought I’d add another suggestion – there’s a plugin called Member Access (http://www.chrisabernethy.com/wordpress-plugins/member-access/) which controls access to pages based on whether a visitor is logged in or not. I’m using it successfully on a BuddyPress site. I think you’d have to disable access to the “Member Directory” page as well for it to work ‘out of the box’, but with some php tweaking you may be able to have the directory page show but restrict access to more detailed profile information.
December 20, 2012 at 6:17 pm #148316In reply to: [Resolved] hide profile from non-logged-in users
ckchaudharyParticipant@Chouf1 thanks. works like a charm.
Since i didn’t want anything (even the avatar image) to be displayed to non-logged in users, i added the code in home.php instead (and plugins.php, since i have 2-3 custom pages added to users profile).Many thanks.
November 22, 2012 at 8:56 pm #145524drill_sgt.lewisParticipantAnother simpler approach would be to created a bp-custom.php and place it in the plugins directory and add the following code
`<?php
function bp_guest_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
// enter the slug or component conditional here
if(!is_user_logged_in()) { // not logged in user
wp_redirect( get_option(‘siteurl’) . ‘/register’ );
} // user will be redirect to any link to want
}
}
add_filter(‘get_header’,’bp_guest_redirect’,1);
?>`
This code will work to hide buddypress pages and group forums as is, if your using sitewide forums in line 4 remove the comments around:
|| bbp_is_single_forum()
Save and refresh. Works in current versions.November 12, 2012 at 9:50 pm #144902In reply to: BuddyPress + Elder Scrolls = Tamriel Foundry
aaclaytonMemberHey @candeed, thanks for the compliment! I’ve worked hard to integrate BP into my theme as naturally as possible and to keep pages lightweight. However, I would definitely benefit from the advice and collaboration of someone who has more development experience. I hide it pretty well through constant research and lots of hard work, but I’m actually still a huge noob when it comes to this stuff. If you have any friends who are experienced developers and interested in ESO I would definitely like to get a chance to talk to them.
August 20, 2012 at 2:41 pm #139846In reply to: How to hide homepage for log-in users?
tvanesParticipantSigh, I can’t get member-access to work, and can’t believe there isn’t an easier way to restrict pages to members/non-members. In my case I’d like to restrict the member listing page to members only. Was hoping to find some non-hacks here. I’ll keep looking but this appears to require code changes…
August 14, 2012 at 4:48 pm #139432In reply to: Hiding header search box other than specific page
@mercimeParticipant@mairaj know that if user disables styles in browser, they will see the search form. But should you still want to proceed with your method, these two lines should do it via CSS
`/* Hide search form in ALL pages */
#search-form { display: none; }/* Then show search form on this page only (change page ID to your installation’s page ID) */
body.page-id-25 #search-form { display: block; }`
You might have to add some width or float after display block depending on how you’ve styled the child theme.August 14, 2012 at 6:43 am #139349In reply to: Remove a page from header navigation
Prince Abiola OgundipeParticipant@formbi,The simplest way without code edit or plugin is to use css to hide it. look for the page ID and write something like: .page-item-78{ display: none ! important;} where 78 is your page ID you can hide as may pages as you want by adding a coma
July 8, 2012 at 6:57 am #136931In reply to: Really need help on privacy. Complete noob here
billzyParticipantI took a different approach to this that worked… I was looking to hide content from people who are not friends… In any pages that friends are not connected I did this..
?php if ( bp_is_friend() != ‘is_friend’ ) {
if (bp_current_user_id() != bp_loggedin_user_id()):
locate_template( array( ‘members/single/not-friends.php’), true )
endif;
}
php if (bp_current_user_id() == bp_loggedin_user_id() || ( bp_is_friend() == ‘is_friend’ ) ): ?>
// add page content for friends
?php endif; ?>for groups you can do the similar with bp_group_is_member()
naturally you would need to create;
members/single/not-friends.phpbut this way you take away the permissions settings from your users and control them yourself with your theme…. With a little bit of configuring you can do the same with users who are not logged in.
Hope this helps…
Cheers
June 7, 2012 at 12:12 pm #135545In reply to: Generally remove BuddyPress Sidebar and Footer
MqlteParticipantOkay, at least you can “hide” or remove the sidebar with some CSS:
/*Hide sidebar*/
#sidebar { display:none !important; }
/*Full-width posts and pages*/
#custom, #container, #post-entry {width:100% !important;}
/*Full-width BP components*/
#custom #container #content {width:100% !important;}
#custom #container .padder, #custom .directory #container .padder {width: 96% !important; padding:0 2%;}Source: http://premium.wpmudev.org/forums/topic/buddy-press-sidebar-on-some-pages
Regards
June 6, 2012 at 5:23 am #135511In reply to: Interesting Child Setup
michaeljdornanMemberI have tried to push ahead and test the install on a test site, I followed these steps:
1. Installed WordPress on main site – mainsite.net
2. Installed and setup WP Multi Network
3. Created my child sites – site1.mainsite.net, site2.mainsite.net, site3.mainsite.net etc – all works fine
4. Installed Buddypress on mainsite.net (network install, couldn’t install on child sites which was expected)At this stage I noticed the mainsite.net had buddy press (I figure I can hide the bits on this site if I don’t want to have social networking on the main site) .. but I also noticed the sub sites have buddypress but just linking back to the mainsite, they are not social networks in there own right, each separate, which is what I need…. so
5. I installed BP Multi Network – to have separate networks
This didn’t do what I expected, the sites still all appear to link from the main site, the sub sites do not have pages for:
Activity
Blogs
Groups
MembersI could create these but they will all go back to the main site, they need to be site specific, separate for each site…. which is what I expected BP Multisite to do..?
Any ideas?
I can put up with buddypress on the main site, although I hoped not to have so I could have a good newspaper/magazine theme on the main site, but if thats the only way to have all the user databases connected I can hide what I need to.
Any help please?
June 4, 2012 at 7:28 am #135449In reply to: Remove (not hide) Page Titles
Hugo AshmoreParticipantwhich makes it look unprofessional
Really? considering BP is developed by professional web developers that’s a sightly surprising statement to be making.
The titles you refer to on pages such as ‘Forums’, ‘Groups’, ‘Activity’ are heading tags, h# tags are a semantic tag that defines the document outline there are six levels and you use them to assign document section headings, these tags are mandatory and it’s very unprofessional not to have them so take care in removing them and also remember that search engines look for and use these tags for index information.
If you are removing these tags then you need to locate these sorts of lines in your index files `
` and simply delete them, this is basic level stuff so as an IT literate person should be within your means as it’s simple editing of text files but it is going to help you enormously to learn some absolute basics where CSS and HTML are concerned.
Lastly you are going to need to make these changes in a child theme otherwise whenever you upgrade your changes will be overwritten, a clear step by step guide to setting up a child theme can be found in the BP codex.
June 4, 2012 at 6:53 am #135446In reply to: Remove (not hide) Page Titles
@mercimeParticipant== currently all pages display the page name ==
Just so we’re on the same page, could you go to http://testbp.org/ and post URL’s of pages with titles you are referring to here?
June 3, 2012 at 6:08 pm #135425In reply to: Remove (not hide) Page Titles
tibblesMemberTheme is: BuddyPress Default
When clicking on a tab of the menu – (not blog posts) currently all pages display the page name – which makes it look unprofessional. The contents of the page clearly indicate what the page should be – no need for a display of the page name. How does one ‘hide’ this? If deleting it is too complex for me then I’ll settle for just hiding the name.
Thank you for the response.
May 25, 2012 at 2:18 am #135043@mercimeParticipant== but doesn’t hide the tabs. ==
You mean hide the main navigation links to the BuddyPress pages?
April 6, 2012 at 4:52 pm #132550In reply to: Setting user profiles to ‘private’
Mary JaneMemberI do that on jbsocial.com using the following plugins
Member Access
PC Hide Pages
Peter’s Login Redirect
Simple Access ControlApril 1, 2012 at 5:17 pm #132241In reply to: [RESOLVED]Hide pages from non-members
DRAGUIANMemberYes, it finally works. Thank you so much for that! I do have more questions, but i’ll leave that for another day. Feel guilty constantly asking. But yea good advice, thanks again.
April 1, 2012 at 4:43 pm #132239In reply to: [RESOLVED]Hide pages from non-members
acesParticipantYou need to create both menus. Without it wordpress has it’s own default menu which you have been relying on
A good guide for understanding wordpress menus is http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus
April 1, 2012 at 4:34 pm #132238In reply to: [RESOLVED]Hide pages from non-members
DRAGUIANMemberIt’s frustrating because that’s almost it. I leave the Header navigation as blank because my buddypress/wordpress pages automatically fill in that menu. So when I am logged in all the pages I want to see are there. I only made my homepage and about page available to the nonmembers, and that works fine too. However, when a user is logged off, they can still see all the pages available to a logged in user aswell as the pages which are available to them. So instead of having one smooth menu for the non member, theres the members menu and below it a non members menu. Note this is only for logged out members everything is fine as far as signed in users are concerned.
April 1, 2012 at 4:00 pm #132236In reply to: [RESOLVED]Hide pages from non-members
acesParticipantYes!
Which menu is served depends on whether they are logged in or not and that is the point to decide…
and please use backticks ` ` ` when quoting code
-
AuthorSearch Results