PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

S2Member - Menu Disappearing - Need Help

s2Member Plugin. A Membership plugin for WordPress®.

S2Member - Menu Disappearing - Need Help

Postby Kojak » October 28th, 2011, 9:50 am

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
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: S2Member - Menu Disappearing - Need Help

Postby Raam Dev » October 28th, 2011, 1:27 pm

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.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: S2Member - Menu Disappearing - Need Help

Postby Kojak » October 29th, 2011, 6:29 am

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?
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: S2Member - Menu Disappearing - Need Help

Postby Raam Dev » October 29th, 2011, 9:02 am

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).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: S2Member - Menu Disappearing - Need Help

Postby Kojak » October 29th, 2011, 11:04 am

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.
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: S2Member - Menu Disappearing - Need Help

Postby Raam Dev » October 29th, 2011, 12:21 pm

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>
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: S2Member - Menu Disappearing - Need Help

Postby Kojak » October 29th, 2011, 12:44 pm

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!
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: S2Member - Menu Disappearing - Need Help

Postby Raam Dev » October 29th, 2011, 3:24 pm

Glad I could help, Kojak! :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: S2Member - Menu Disappearing - Need Help

Postby Cristián Lávaque » October 30th, 2011, 12:09 am

Nice work Raam. :)

Kojak, what is your restriction setting for menus? WP Admin -> s2Member -> Restriction Options -> Alternative View -> Nav Menus
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2Member - Menu Disappearing - Need Help

Postby Kojak » October 30th, 2011, 2:52 am

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!
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: S2Member - Menu Disappearing - Need Help

Postby Cristián Lávaque » October 31st, 2011, 10:45 pm

You're welcome! Thanks for the kudos and support! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron