Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'how to hide pages'

Viewing 25 results - 151 through 175 (of 205 total)
  • Author
    Search Results
  • Webweaver21
    Member

    Thanks 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.

    #109585

    Noizeburger, 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.

    goldbrick
    Member

    would there be any code somewhere to hide pages unless an admin user?

    jokermill
    Member

    Why 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?

    #103915
    modemlooper
    Moderator
    #103840
    David Carson
    Participant

    There 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.

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-private-messages-loop-bp_has_message_threads/

    David 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.

    dslax27
    Member
    dslax27
    Member

    Hello,
    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.7

    Plugins:
    – 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) – This

    Mouchoirs
    Member

    I 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.

    #100182
    techguy
    Participant

    Modify 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.

    #100163
    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

    #98945

    In 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! :-)

    #98841
    kaelwithme
    Participant

    yeah, 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?

    #96207
    Miko
    Participant

    I 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.

    #95235
    Roger Coathup
    Participant

    @dorothysulzmann

    No 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.

    #95231
    dorothy sulzmann
    Participant

    Wow you know your stuff hnla! I get what you mean and will have a look at the jQuery show/hide bit – do you know where i can find this information?

    @questus5
    i found the details here for showing other profile groups – https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-show-multiple-profile-field-groups-on-register-php/

    Cheers for all your help guys!

    #95153
    Hugo Ashmore
    Participant

    @questus5

    Look at your bp admin section, you will see the custom profile link you use that to create new groups and fields, as long as a new group is created under the ‘Base’ level then it will appear on the registration page.

    @dorothysulzmann
    As a workaround I would move the three type selections labeled ‘Fan off’? to just after the primary details and use the tree types as just that to confer a user type to each member but also run a simple jQuery show/hide on the further groups so all are hidden and then a check is performed to catch the radio selection and the appropriate group revealed with perhaps a ‘none’ control selection default.

    The proper approach would be to complete a section and then pass the form control fields in a session or buffer to the next view to complete further sections but with BP that will likely start to get complicated, as techguy says there is no quick easy way to do this but with client side scripting it wouldn’t be that difficult.

    #91770
    Pagan Gwynne
    Participant

    1. Could you set this as a profile field ? For ex. A dropdown list added to the registration page where they state yes or no to a question on hospitality. If they answer yes they can be autojoined to the ‘yes’ group so everyone will know where to look for them.

    2. If you are running a WP multisite you could set up a blog called ‘work listings’ or something like that, allow everyone ‘author’ capabilities set up one page as a standardized form and another to show the results of the posted form set the excerpts to show 0 -zero- characters and you’ll have a multipost page with a listing of jobs. – There are a number of plugins that will autojoin users to specific blogs on a multisite –

    3. Same thoughts as with 2.

    5. If you do a search for plugins there are a few that offer events calendars. Right now I’m using ‘My Calendar’ which offers an easily customizable interface so that you can make it look like your main site.

    7. A simple page with a ‘donate’ button linked to paypal or whoever

    8. WP multisite does this. If you set it so that users can create a blog on registration they can name the blog anything they like, I don’t know if you can automate the process so that the blog-name field is pulled from their username, or you can have a strict naming policy, add some text to the reg form stating that only the username is acceptable for blog names and set the joining process under moderation so that you have to approve each that way each blog will be called registeredusername.mydomain.com for subdomain installs or mysite.com/regusername for sub directory install.

    4 & 6 I have no idea.

    As for the plugins most come with the ability to activate either for one blog or for network activation, using the plugin ‘exclude plugins’ you can hide the plugins from your users blogs or allow certain plugins but disallow others. For ex, I have a user that wanted the plugin ‘ephemeris’ on their blog, I installed it, allowed it for that site and they are now happily ephemerising awaywhilst other users aren’t even aware that the plugin exists (they don’t see it on their blogs)

    The plugins that I’m using I pulled straight from the WP plugin pages and so far they have all worked on my WPBP site without hiccup,

    Regards.
    Me.

    #90542

    In reply to: Introducing JobBoardr

    Michael Eisenwasser
    Participant

    I think €100 is well worth it for a good plugin. If the plugin means I can save a lot of time and get the results I need immediately, then yeah I’ll happily pay. My time and frustration are worth money too. If he spends 20 hours developing a plugin and I buy it for €100, I think I just got a great deal!

    I find this JobBoardr plugin particularly interesting because we had a similar plugin written for our site, easyoutsource.com. It’s a job hiring site for Americans to hire people in the Philippines as online workers. The big issue, as you’ve already discovered I’m sure, is how to separate the roles. We set up a custom field for workers and one for employers and made you pick your role on signup. The role is just a profile field you select on signup. Then on the site every function is dependent on which role you picked. Groups have been turned into jobs entirely. Employers can create groups and workers can apply to them. Another big issue we had was that employers always showed up in the search results. We wanted to display workers (members) and jobs (groups). No employers. So we had to get a custom plugin written (by the ever so talented R-a-y) to hide employers from search results.

    It’s interesting that you’ve set it up so that employers ARE groups and workers are members. Are your employers not also members? Do they have their own profile pages? How did you get this to work correctly?

    #90525
    pcwriter
    Participant

    .You could also try my plugin (he says with shameless self-promoting grin).

    See this post for the latest beta version: https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/forum/topic/updated-the-beta/
    Here are the user configuration options available in the admin panel under “Settings” > “BP-WP-Navbar”
    – Hide or display the main theme navigation
    – Hide or display the site name in your new adminbar
    – Hide or display the Login and Signup links in the adminbar
    – Hide or display the “Visit Random” menu
    – Select whether to display top-level WordPress pages horizontally or in a dropdown menu
    – Define the label for the dropdown in WordPress 2.x
    – If you’re running WP3.x, the plugin will fetch whatever custom menu labels you assign and display them in the admin bar along with all child pages in dropdowns
    – Define the label for the Buddypress directory dropdown (default = “Community”)
    – Define the font, font-weight and font-style for all menu items
    – Define ALL colors: navbar background, main and sub menu item backgrounds, border, text and hover colors too
    – Set the overall width of the navbar and of sub-menus
    – Set the height of all menu items
    – Adjust margins where required
    – Reposition your fancy new custom navbar anywhere you like, relative to your theme so it scrolls with your pages

    If you add categories to your custom menus in WP3.x, the plugin will pick them up and display them in whichever menus they are assigned to. Give it a whirl.

    #90401
    pcwriter
    Participant

    @jenyus

    Here comes some shameless self-promotion! Try the beta-version of my plugin: Add-All-Nav-Links-To-BP-Adminbar. You can add all your main navigation items to the bp-adminbar, hide your theme’s main nav, then customize your new adminbar just about any way you like, including repositioning the whole thing anywhere on your pages. Here’s a screenshot of the backend admin panel: http://i33.tinypic.com/2nvea8j.jpg

    You can download from my site here:
    http://nowrecovery.com/downloads/add-all-nav-links-to-bp-adminbar2.1beta.zip

    The current release is available here:
    https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/

    If you try it, please let me know what you think in the plugin’s forum :-)

    #89477

    In reply to: Hide Number of Friends

    PJ
    Participant

    Are you asking if there is a way to have a user’s friends only available to him or her? Adult dating sites and consulting groups/companies find the end users like a layer of privacy that doesn’t let site users see their friend connections. I dont know if it can be done in buddypress.

    You could go line by line through the theme to remove pages that display friends, but I’ve never tried to see if it would work.

    #88741
    Hugo Ashmore
    Participant

    Good spot, that’s why second eyes are vital, also the $hideMainNav doesn’t need to be globally scoped as the function sits outside pages() and the variable is already in the main page scope so no global required for it.
    Not sure how the process works for uploading plugins but would guess it hasn’t been approved yet?

    If I have a minute I’ll add the config variable for ‘Community’ link then you can run things through their paces when your back.

    #88615
    Hugo Ashmore
    Participant

    @pcwriter

    I’ve had to do a fairly extensive rewrite on the function for a number of reasons:

    1/ There was a significant degree of malfomed ul child nesting which prevents drop down aspects working correctly primarily I’ve removed the opening and closing UL elements as they are not required and cause issues.

    2/ Not sure how the wp_list_pages was intended to work but with the parameter ‘title_li’ declared as empty you correctly remove the wrapping elements but would need to add UL elements manually wrapping the function call for the dropdown to function correctly.

    3/ Added back in the wp_nav_menu function calls but wrapped them in a check to see if WP 3.0 is running i.e are the new menu available if not hide altogether.

    Also added a reverse check to remove the wp_list_pages function if using the new menus as there is little point in both and the new menu system serves better.

    4/ Changed region and menu top link names to ‘pages’ but this area is a fundamental issue as it cant be known what the user sets as menu names, ideally one shouldn’t hard code values but retrieve them from the admin menu area, but this proves far too hard to work out (asked a question on WP support but haven’t had a reply and I don’t expect one – sadly there is little codex documentation of any depth on the new menus.)

    This issue applies to the wp_list_pages as well as you can’t really pass any values for ‘include’ and ‘exclude’ as these values can’t be known so you ought to remove those values you have hardcoded (I have left them in).

    If I can get some guidance on how to fetch values from the menu backend view such as menu names then it will be possible to make the menus far more effective but have spent quite a while trawling through the core WP files for nav-menu and it’s not obvious and too time consuming.

    I have copied the revised code to this pastebin page, give it a check over, but don’t assume I have things all correct, run it as plugin copy 2

    http://pastebin.com/trUDaPEP

Viewing 25 results - 151 through 175 (of 205 total)
Skip to toolbar