Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-28T14:44:32-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6269 2011-06-28T14:44:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=21895#p21895 <![CDATA[Re: hide protected pages link from the nav]]> Statistics: Posted by Cristián Lávaque — June 28th, 2011, 2:44 pm


]]>
2011-06-28T08:34:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=21877#p21877 <![CDATA[Re: hide protected pages link from the nav]]> Statistics: Posted by LarsW — June 28th, 2011, 8:34 am


]]>
2011-06-28T00:31:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=21857#p21857 <![CDATA[Re: hide protected pages link from the nav]]> Statistics: Posted by Cristián Lávaque — June 28th, 2011, 12:31 am


]]>
2011-06-28T00:16:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=21853#p21853 <![CDATA[Re: hide protected pages link from the nav]]>
viewtopic.php?f=4&t=10298
viewtopic.php?f=4&t=10273#p21608

Statistics: Posted by Cristián Lávaque — June 28th, 2011, 12:16 am


]]>
2011-06-27T15:41:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=21815#p21815 <![CDATA[Re: hide protected pages link from the nav]]> I am tight on schedule for a version to be ready start August so I need to make a good working version asap.
Do you think there is a Beta-version that include that as I can test.

Then you also have me tweak and see if there is any problem, must be ready with the Multisite and this is one of the last pieces that I miss. Otherwise I need to look for other membership script that can handle the problem.

Take care / Lars

Statistics: Posted by LarsW — June 27th, 2011, 3:41 pm


]]>
2011-06-13T23:06:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20648#p20648 <![CDATA[Re: hide protected pages link from the nav]]>

Statistics: Posted by Cristián Lávaque — June 13th, 2011, 11:06 pm


]]>
2011-06-11T15:21:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20570#p20570 <![CDATA[Re: hide protected pages link from the nav]]>
There is need only for 2 choices (and no free join, the admin set up each user as member and no cost).

One part is public to all and s2Member handle that. The second and last part is WHEN I put a page as member this gives now that page is still showing up on the public Nav-bar.

There is need only for Public Nav-bar and member NAV-bar (= protected page) and ALL pages that is protected should NOT show up when not logged in as member and also when logged in the public Nav-bar shouldn't show up.

It seems so basic so I don't understand why there isn't such plugin?

Statistics: Posted by LarsW — June 11th, 2011, 3:21 pm


]]>
2011-06-11T10:00:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20565#p20565 <![CDATA[Re: hide protected pages link from the nav]]> Statistics: Posted by fcp2011 — June 11th, 2011, 10:00 am


]]>
2011-06-10T15:30:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20540#p20540 <![CDATA[Re: hide protected pages link from the nav]]>
I built a standard WP-site that worked perfect with what should be presented and what was for members for each place. BUT, since it get around 120 pages and growing it is no good for handling in an easy way for the pages since it is for 5 places with each responsible for theirs and then main pages that is handled by the central webmaster.

DAP can easily handle the 10 levels of members (around 400) and show on the same URL the different Nav-tabs depending of the member that is logged in. There is no payment for any level and the members are set manual to different levels when they are ready with the knowledge for each.

BUT for making it much easier for the different sites (web-responsible) to reach only their pages and posts I tested WP Network and that is great for handling this BUT then DAP can't work in WP Multisite, It can hide and show the right pages BUT they don't protect them and they can be reach if you know the different URL (don't know if it's a kind of virtual pages/blog's). It is working with 6 blogs joined in MU.

So I was happy to reach s2Member when surfing looking for a Multisite Network membership plugin, BUT it still seems to be very hard to use and a lot of coding (DAP was nearly zero coding). So now I don't know if I will continue to try learning s2Member or try to find another more user friendly plugin.

Regards / Lars

Statistics: Posted by LarsW — June 10th, 2011, 3:30 pm


]]>
2011-06-08T22:23:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20451#p20451 <![CDATA[Re: hide protected pages link from the nav]]>
Code:
<div class="nav">
                <?php 
                if
(!is_user_logged_in()) {
                    if(has_nav_menu('main-menu')) {
                        wp_nav_menu(array(
                            'theme_location' => 'main-menu',
                            'container' => 'ul',
                            'walker' => new UDS_Menu_Walker
                            
));
                    } else {
                        wp_nav_menu(array(
                            'container' => 'ul'
                        ));
                    }
                } else {
                    if(has_nav_menu('primary-level'.S2MEMBER_CURRENT_USER_ACCESS_LEVEL)) {
                        wp_nav_menu(array(
                            'theme_location' => 'primary-level'.S2MEMBER_CURRENT_USER_ACCESS_LEVEL,
                            'container' => 'ul',
                            'walker' => new UDS_Menu_Walker
                            
));
                    } else {
                        wp_nav_menu(array(
                            'container' => 'ul'
                        ));
                    }
                }
                ?>
            </div>

Statistics: Posted by fcp2011 — June 8th, 2011, 10:23 pm


]]>
2011-06-08T22:21:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20450#p20450 <![CDATA[Re: hide protected pages link from the nav]]>
This needs to be custom programed into your theme. I have a guy that did mine for me. I set up 5 different menus and added the pages I wanted based on each membership type. Then, I registered the menus in wordpress. Then the guy put the code in the wordpress that reads the cookie that s2member sets when the user logs in and posts that nav bar.

Is this what you want or envisioned? If so, email PM for the guys info.

Statistics: Posted by fcp2011 — June 8th, 2011, 10:21 pm


]]>
2011-06-07T16:57:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20368#p20368 <![CDATA[Re: hide protected pages link from the nav]]> Thanks for your quick reply but I still don't get out what to put in for take the protected pages away from the Nav:

Example #1: Full access for anyone that is logged in.

Code:
<?php if(is_user_logged_in()){ ?>
    Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
    Some public content.
<?php ?>


What should I put in the first "Content for anyone.." If I want to show the protected pages in the Nav e.g. page 12,15?
And what should I write in the second part "Some public.." that only should show the unprotected pages?

Take care / Lars

Statistics: Posted by LarsW — June 7th, 2011, 4:57 pm


]]>
2011-06-06T03:25:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20186#p20186 <![CDATA[Re: hide protected pages link from the nav]]> WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals

In addition, there are two special functions that can be applied by theme authors before making custom queries: attach_s2member_query_filters(), detach_s2member_query_filters(). These can be used before and after a call to query_posts() for example. s2Member will automatically filter all protected content ( not available to the current User/Member ).


Look at examples 1 and 2 in that panel.

You'd use this in your template where the pages navigation is.

Statistics: Posted by Cristián Lávaque — June 6th, 2011, 3:25 am


]]>
2011-06-05T14:11:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=20094#p20094 <![CDATA[Re: hide protected pages link from the nav]]> I need to hide protected pages from the Nav when not logged in but I don't understand which code I need to use of them and where to paste it on my site? Now it looks messy with ALL pages showing to all people coming to the blog in the Nav and when clicked on they redirect to membership.
Regards / Lars

Statistics: Posted by LarsW — June 5th, 2011, 2:11 pm


]]>
2011-05-02T07:28:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=13938#p13938 <![CDATA[Re: hide protected pages link from the nav]]> Statistics: Posted by camillemm — May 2nd, 2011, 7:28 am


]]>
2011-05-01T19:16:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=13920#p13920 <![CDATA[Re: hide protected pages link from the nav]]>

You can close free registrations, which will remove the link to the registration page from the login one. WP Admin -> s2Member -> General Options -> Open Registration / Free Subscribers

To hide protected pages from the navigation, take a look at the advanced query conditionals. WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals

I hope that helps.

Statistics: Posted by Cristián Lávaque — May 1st, 2011, 7:16 pm


]]>
2011-05-01T17:11:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6269&p=13914#p13914 <![CDATA[hide protected pages link from the nav]]>
before I bury myself in the API scripting and Thesis customization - just wanted to know if it's possible to hide the links to protected pages from the nav. My client wants to have his employees access certain areas of the site which are not accessible to unregistered users. There are no payments required. If this is not the right plug-in to use I'm open to suggestions!

Along with that - is there a way to remove the registration link from the login page?

Thanks!

Max

Statistics: Posted by maxim — May 1st, 2011, 5:11 pm


]]>