Search Results for 'how to hide pages'
-
AuthorSearch Results
-
December 9, 2011 at 7:24 am #125921
In reply to: Removing View Members from top menu
abysshorror
MemberI added a custom menu (from WordPress) and select only the pages I wanted to be there. This is a quick fix but I think if somebody knows the URL it would still be accesible. I’d like to see a plugin or something to hide the members page from anyone.
Cheers !
September 8, 2011 at 6:56 pm #119752In reply to: Desperately need help creating full width pages!
Quint
Participant@modemlooper, maybe it’s there as a placeholder for future functionality?
IMHO at the moment, providing a “template” option across all Pages (incl. Component pages), is somewhat misleading.So given your last post, are you saying that I could hide the sidebar through code in my child’s style.css? If so, how would I do that? If not, which files and how should I do it? I can figure out how to change the width on the “content”, so that shouldn’t be an issue. Sorry about asking so many questions. I am still pretty new to this. Thanks.
FYI: I’m running BP 1.5 Beta 3
September 8, 2011 at 4:01 pm #119742In reply to: Desperately need help creating full width pages!
modemlooper
ModeratorActually, component pages use their own template so won’t work. Without editing templates you can hide sidebar and change page width with CSS
August 10, 2011 at 4:34 am #118111In reply to: Profile rating system
embergermedia
Member@christophg Sorry for the delay in getting the registration/profile idea to you. Here is what I do:
I use S2member to keep my customers and brands separate. I then created a new profile group called “Company Profile”. I made this the last profile group. I then added the following code to the file:
members/single/profile/edit.php`
<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVELul.menu li:last-child{display:none;}
.company-profile{display:none;}`
The above code hides the profile group on the edit menu from users below level 2, my brand level. And it also hides the profile group edit fields from anyone below level two. In case the menu item shows for some reason. And, unfortunately, this will not hide the menu item from users in IE 8 and below. But it WILL hide the profile group from them.
I tried using jquery to affect last-child in IE. Although I can get the jq to work on a test page on IE, it won’t work on the menu item… not sure why.
Next, my brands all belong to a private group, and I use a group conditional script to show the brands profile info front and center on their profile page with custom styling. This allows the brand members only to have a slick looking page that is different from regular consumer pages.
`
`
Let me know if you need anything else. Or if something doesn’t make sense.
July 1, 2011 at 12:32 pm #115516In reply to: Members’ privacy: how can I hide members’ profiles?
Hugo Ashmore
ParticipantIn case it helps there are options to the above you could try; you can add:
bp_is_directory() to allow access to all the main BP dir pages ‘Activity’, ‘Members’, ‘Blogs’, ‘Groups’ but trying to drill down any further on links in those pages would result in redirecting to register page:
`if( bp_is_register_page() || bp_is_activation_page() || bp_is_directory() )`
July 1, 2011 at 12:13 pm #115512In reply to: Members’ privacy: how can I hide members’ profiles?
Hugo Ashmore
Participant@pinhit Kenny this is what I mentioned on your other thread and is now an example of where there are too many posts revolving around the same question
. This solution (read the whole thread linked to above for full understanding) will work to limit access to directories or in the version above it permits access to specific pages and if not in that list of allowed directs to the signup page. I think this is your best solution rather than to try and restrict drilled down aspects of pages.I’ll close the other thread as it is redundant now.
June 9, 2011 at 5:15 pm #114231billzy
ParticipantJust to update this to close all issues of this topics as I left with a question how to hide items based on navigation in profiles.
So after applying the above solution into your links, then to section off other profile pages ie. I am on my profile page so i can see settings & messages tabs.. but on a friends page those boxes are hidden.
To do this;
? php if (bp_current_user_id() == bp_loggedin_user_id()): ?
Add content here that you only want to see in your personal http://www.domain.com/members/YOU
? php endif ?All this is asking is if the current profile page user ID # (for the table row) is equal to the logged in user (You) ID#…. That returns True or False… If the answer is True then move forward. .
If your looking to reverse this idea and show something only on others profile pages simply add one ! …. !bp_current_user_id() that will reverse the effect.
There …That took me ages but it will save anyone looking to become creative with their profile menu….
Lastly, I will not be answering any questions about how to implement this, its a basic copy paste job now if you cant do that then perhaps look at other less flexible options.
Hope this all helps…
May 18, 2011 at 8:44 pm #112549In reply to: Subnav menu customization
ARHistoryHub
ParticipantOkay, I gotcha. In order to place pages before the default buddypress menu tabs, you need to modify your theme’s header.php file. Look for some code that looks like this
and paste it just after code that looks something like this<div id="header"><h1 id="logo"><a href="" title=""></a></h1>Now your pages will appear before your buddypress menu items. If there something specific you want, you can just hard code in the header.php file with good ole fashioned html.
Oh, and that Exclude Page plugin will allow you to easily hide pages you create from being added to the menu.
May 11, 2011 at 12:56 am #112020In reply to: Members’ privacy: how can I hide members’ profiles?
pcwriter
ParticipantI know I`m tooting my own horn here
, but my BuddyBuilder theme enables you to allow user access to individual BP components and WP pages/posts depending on logged-in/logged-out status. It also provides an optional Site Lockdown feature with/without a Splashpage on the frontpage, and an optional custom redirect page if Site Lockdown is enabled. See the bottom of the right-hand column on this page for all the Privacy features available: http://buddylite.com/buddybuilder-options/April 19, 2011 at 3:47 am #110538Webweaver21
MemberThanks for your help. I did indeed have the setting “Hide admin bar for logged out users?:” set to YES. I switched it to NO and now the menu bar appears whether logged in or logged out.
The only problem is that new users still only see the “Register” and “Log In” menu items, even when they are logged in. This is puzzling because I can access the pages directly as a new user if I type in the URL.
The test user I’m working with is visible under the Users listing of my BP root blog so it doesn’t seem like that would be the problem. I even gave the test user Admin priviledges to make sure there were no access level issues. The only difference is that the test user was signed up after I activated multiuser mode.
The way that WP eMember handles membership is directly linked to the WP user database. The only thing that WP eMember does is allow a new user to be created and grants them appropriate priviledges dependent on their membership level. It does seem like there could be something happening with the sign-up
When I activated WP multiuser it transferred all my plugins to the network admin panel instead of the individual site. WP eMember is now a network-wide plugin, along with BP. Since WP eMember creates a WP user account, I’m guessing it’s now creating user accounts outside of the main site and thus the main site doesn’t recognize the user? Perhaps I should move a bunch of plugins back to the main site instead of the whole network? I don’t really need any plugins for the user blogs so they could all be on the main site and things might work better. I’m not quite sure how I’d manage moving the plugins though.
April 5, 2011 at 6:52 am #109585In reply to: 2 profile types and 2 “members” pages
Joffrey Quillet
MemberNoizeburger, I’ve been testing your solution for a few days now and it’s working great. I’ve also found a way to improve it slightly, and I’m pretty sure a good PHP developer could improve it even more. Let me explain:
With your solution, the search is made on the term “band” for instance. But if people who have another type of profile have the word “band” in ANY field of their profile, the search will find them anyways. So I thought it is possible to write a script that hides the unwanted results. I used Javascript but I’m pretty sure it would be better in PHP.
In order to do that, I added a PHP line that includes the profile type field in the search result. Then with Javascript, I parse that line and, depending on the URL of the page, I give different classes to search results. For instance, if I was on the “band” page, I give all the “bar” profiles a CSS class that hides them. Works perfectly.
There is a problem though: since the unwanted profiles are just hidden but still exist in the HTML code, the loop counts them anyway and so the search results count does not match the number of profiles that are displayed.
April 2, 2011 at 10:17 am #109359goldbrick
Memberwould there be any code somewhere to hide pages unless an admin user?
February 15, 2011 at 2:25 pm #105463jokermill
MemberWhy Docs Tab is active in private group for users that are not member of it?
is it possible to hide it and make not accessible for nonmembers?January 26, 2011 at 5:14 pm #103915In reply to: Hide / Remove Page from Top-Menue
January 25, 2011 at 8:16 pm #103840In reply to: Relocating “Messages” to its own page
David Carson
ParticipantThere are lots of CSS hooks so you can customize the look of your messages pages. It would be easiest to just use some creative theming and create the effect. You could hide most profile information/avatar using CSS.
Or you could also try creating a custom page template using the private messages loop and adjust the parameters to suit your needs.
January 9, 2011 at 5:05 pm #102384David Carson
Participant`bp_is_active()` checks if a BP $component is active – not whether members are registered but not activated. The `bp_account_was_activated` function is used in the activate.php template but isn’t appropriate here I don’t think.
In addition to the BuddyPress Conditional Tags – https://codex.buddypress.org/developer-docs/conditional-template-tags/ – you might also look at WordPress Conditional Tags – https://codex.wordpress.org/Conditional_Tags – to see if there are any that will work for you.
P.S. I just saw your other post.
`
This occurs due to my BuddyPress Auto Group Join plugin. How can I hide the not-yet-activated members from appearing on the Group Members page?
`It seems like it would be better to modify the plugin(s) causing the issue instead of modifying the BP code. Maybe the plugin developers can assist.
January 9, 2011 at 4:41 pm #102382dslax27
MemberFYI: I put a more generic posting here (https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-hide-content-related-to-members-who-are-registered-but-not-activated/#post-85519) if the admins think this is too off-topic
January 9, 2011 at 4:19 pm #102381dslax27
MemberHello,
I’ve been working all weekend on this one and I just can’t seem to find an answer.*//PROBLEM: Users that have registered but have NOT activated their accounts show on the Group Members page (…/[bpressdirectory]/groups/[groupname]/members/). This occurs due to my BuddyPress Auto Group Join plugin (link below). How can I hide the not-yet-activated members from appearing on the Group Members page?
**Failed attempt #1 (members-loop.php):
`
- … [BUDDYPRESS CODE]
`
**Failed attempt #2 (members-loop.php):
`- … [BUDDYPRESS CODE]
`
Any idea where I went wrong?
WordPress 3.0.4
BuddyPress 1.2.7Plugins:
– S2Member (http://www.primothemes.com/post/product/s2member-membership-plugin-with-paypal/)
– BuddyPress Auto Group Join (http://twodeuces.com/wordpress-plugins/buddypress-auto-group-join) – ThisJanuary 3, 2011 at 2:42 am #101728Mouchoirs
MemberI like the widget you recommended above. I’m wondering if you know anything about pagelines plaform. I was thinking, if it offers full buddypress functionality, I could utilize the registration widget along with the “hide primary bar” feature in pagelines. This would make the widget available on only the pages I desire.
If I did this, do you know if there’s a way I can make every page of buddypress invisible to non-logged-in users? I could then simply have the registration and log in page visible to non-users. I’m currently using a privacy widget to hide all pages except login from non-logged-in users. However, I don’t see any way to select specific buddypress pages to choose to make private.
Thanks again so much for your time.
December 9, 2010 at 10:20 pm #100182In reply to: How to hide a page when user is logged in?
techguy
ParticipantModify header.php in your theme. I think it’s wp_list_pages or something like that which lists the pages. Use is_user_logged_in() for the if statement to choose when to display the pages.
December 9, 2010 at 5:36 pm #100163In reply to: Citizen Kane Theme white space
Ekine
Participant@modemlooper Sounds great. (:
Two more questions…
When updating the theme, how can we maintain custom css changes without editing custom.css after updating?
Is it possible to show the ad code (sidebar.php) only on certain wordpress pages. Because I would like to hide this ad code on most buddypress related sites.One more suggestion, how about adding ajax pagination for latest blog posts and or maybe ^^ make ’em sortable by date, most hits and most comments. (:
See screenshot: http://i56.tinypic.com/9bazye.png
November 22, 2010 at 11:54 pm #98945In reply to: buddypress bar
pcwriter
Participant@Tekuan_Coleman
Gotcha! Here’s how…
1- Enable “Hide Main Theme Nav”, “Add WordPress pages/menus”, “Add Buddypress components” and “Scroll with pages”.
2 – Go to “Sizes & Position” and adjust the “Overall navbar width” to the width of your template.
3 – Play around with “Vertical offset” and “Horizontal offset” until you get it positioned about where you want it.
4 – Save settings.
5 – Now go to “Appearance” > “Menus” and select the WP3 custom menu you want at “BP-WP-Navbar Menu 1”
6 – Click “Save” at “Theme locations” and “Save menu”
7 – Check your site and refresh a page.
8 – Repeat, lather & rinse until you get it “just right”.
9 – Have fun!
November 22, 2010 at 12:46 am #98841In reply to: change nav content when on member profile page.
kaelwithme
Participantyeah, well i’m trying to look for a way. which i can’t find via plugins/admin since you should restrict/hide such navs on the BP page which are different from WP pages in a sense that they kinda don’t exist. they’re generated on the fly.
do you by any means know what the equivalent of is_home() to the member profile page is?
October 23, 2010 at 1:53 pm #96207In reply to: Setting redirect page for non-logged in users
Miko
ParticipantI don’t want a landing page for visitors, I want normal visitors to see all of the usual pages & posts on the public part of the site. This is happening fine. What I want is for them to arrive on a nice page if they search for something that is on a hidden private part of the site. I am using Private Buddypress to hide members area (private profiles, forums etc) from the main marketing pages of the site ( WP pages and posts). The Private Buddypress plugin annoyingly redirects to the standard WP login screen (as you can see in the code from that plugin posted in my original Q). I do not like this, because it gives no explanantion to the user why they searched for something and arrived at a login screen. This is why I want to redirect to my custom 404 page, which I have modified to say that the item they are looking for is not found, or it is only visible to logged in members. What I want to know is how EXACTLY to modify the above code to get the redirect to point to the 404 page.
The login screen is not helpful, and in fact it’s offputting/confusing because you have to be a member of our photo club to be allowed into the community – so we don’t accept public registrations. Showing a login screen makes it seem like people should be able to register somehow, when they can’t.
October 15, 2010 at 8:50 am #95235In reply to: Multiple registration pages
Roger Coathup
ParticipantNo short cuts on jQuery – but it’s quite straightforward to setup a simple script like you’ll need: their site is good and full of useful examples: http://jquery.com/
show() and hide() are basic jQuery – and there are plenty of animation options you can apply.
Also, take a look in the WordPress codex re: wp_enqueue_script – their recommended way of loading javascripts.
-
AuthorSearch Results