Page 1 of 1

S2Member - Menu Disappearing - Need Help

PostPosted: October 28th, 2011, 9:50 am
by Kojak
I'm working on a blog for a client. http://www.tradingpub.com. In the top menu, there should be an option called "Premium Pub", where the blank spot is between "News" and the login box.

I've got it setup so that someone tries to access a Level 1 restricted post, it displays the "Become a Member" page. So, if you try to access the "Premium Page" page, which is at http://www.tradingpub.com/?page_id=107, and you're not logged in as a Level 1 user, the "Become a Member" page is displayed. Try it. That part works.

In the "Premium Pub" page, the "Page Level Restriction" is Level 1, meaning they need to be a paid member with Level 1 access.

When I'm logged into Wordpress and the Admin, I can see the "Premium Pub" link. When I'm not logged in, the place in the menu where "Premium Pub" should be is blank.

How do I get the "Premium Pub" menu option to stay in the menu regardless of being logged in or not, and have it so that if the user clicks on "Premium Pub" menu option, it displays the "Become a Member" if they are not logged in as a Level 1 user?
Thanks!
Alex

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 28th, 2011, 1:27 pm
by Raam Dev
Alex,

You should manually add the 'Premium Pub' link to the menu (either via the built-in WordPress menu editor if your theme supports it: Appearance->Menus, or by manually editing your themes header.php file). When a non-logged in user then clicks on it, they will be redirected to your Membership Options page.

Since the 'Premium Pub' page is protected by s2Member, it won't show up in the automatically generated menu items for users that are not logged in.

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 6:29 am
by Kojak
Thanks for the answer.
However, it already is in the custom Menu. It was working. However, I accidentally clicked Deactivate on the plugin and now re-configuring it. Everything else is back working except for this one problem.
Any other thoughts?

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 9:02 am
by Raam Dev
If you disable s2Member, does the page show up? If not, then the problem isn't with s2Member but with your theme/WordPress.

If it does show up when you disable s2Member, then try adding the page to the custom menu manually (typing in the link to the page instead of selecting it from the drop-down).

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 11:04 am
by Kojak
Yes. If I remove the Level 1 restriction from that "Premium Pub" page, then the "Premium Pub" link shows up in the menu again.

The menu on the site is a custom menu. The "Premium Pub" page is already manually added to that menu.

Its quite frustrating, because it used to work before I accidentally deactivated the S2Member plugin, which completely erased all of its configuration.

Thanks for putting your mind to the problem. Its frustrating that I can't figure it out.

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 12:21 pm
by Raam Dev
When you say the menu is "manually added" to the custom menu, are you manually typing in the URL to the Premium Pub page, or are you selecting it from a drop-down of existing pages? If you manually add the Premium Pub page to the menu, it should look something like this:

Image

If you use the Custom Links widget inside Appearance->Menus and manually add a link to the Premium Pub page, s2Member shouldn't remove it.

If that still doesn't work, can you tell me what happens when you edit your themes header.php and manually add something like this underneath where the menu gets generated (preferably inside the menu <ul> tags):

Code: Select all
<li id="menu-item" class="menu-item menu-item-type-post_type menu-item-object-page menu-item"><a href="http://tradingpub.com/premium-pub-page">Premium Pub</a></li>

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 12:44 pm
by Kojak
Well,
you got it! If the page is added to the menu by selecting the page, it disappears from the menu. However, if the URL is added to the menu using the Custom Link, the page shows up in the menu.

Nice detective work! Thanks very much for your quick and helpful advice! It is VERY much appreciated!

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 29th, 2011, 3:24 pm
by Raam Dev
Glad I could help, Kojak! :)

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 30th, 2011, 12:09 am
by Cristián Lávaque
Nice work Raam. :)

Kojak, what is your restriction setting for menus? WP Admin -> s2Member -> Restriction Options -> Alternative View -> Nav Menus

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 30th, 2011, 2:52 am
by Kojak
A ha! All of the options in the Alternative View are checked. I don't think that they were checked before.
Good catch Cristián!
You guys are great! Very supportive!
BTW. This is the first time I've used S2Member/S2Member Pro, and I LOVE it! I have some other clients that I'm going to recommend it to.
Thanks again guys!

Re: S2Member - Menu Disappearing - Need Help

PostPosted: October 31st, 2011, 10:45 pm
by Cristián Lávaque
You're welcome! Thanks for the kudos and support! :)