Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-23T13:48:51-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16623 2012-01-23T13:48:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=61303#p61303 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
1) The home page
2) /wp-login.php?loggedout=true

If you end up at the home page, then according to the redirect you set up earlier, the person would then be sent to the MOP page (since they're trying to access the home page which only logged in members can access).

If you end up at /wp-login.php?loggedout=true, you shouldn't be redirected anywhere; you should simply see the login form.

Statistics: Posted by Raam Dev — January 23rd, 2012, 1:48 pm


]]>
2012-01-19T22:40:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=61045#p61045 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
If I logout from the home page, I get the "not found" page with the sidebar that shows.

If I logout from another page, I get the MOP.


Any ideas? Should these all work the same?

Statistics: Posted by Lesley — January 19th, 2012, 10:40 pm


]]>
2012-01-19T01:57:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60955#p60955 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
What page appears for most people upon logging out? And where is that set?

Statistics: Posted by Lesley — January 19th, 2012, 1:57 am


]]>
2012-01-18T22:56:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60945#p60945 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> /home-3/). If not, that might explain why the redirect isn't functioning as expected.

To allow changing a post back to /home/, you need to permanently delete the two trashed posts from your Trash (i.e., empty the trash). Until you do that, WordPress will detect /home/ as being a slug already taken by another post.

Statistics: Posted by Raam Dev — January 18th, 2012, 10:56 pm


]]>
2012-01-18T15:22:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60917#p60917 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
It is the same for both. It would seem that originally, before all these tweaks, I had a page called -home. When you gave me the instructions above, I deleted that and created a new one, just called "home", and at some point along the way, I trashed that page and created another. But the new ones were never called "home", they were the "home-a number" name. So when I followed your instructions, I did use that for the "link to a page called home-3". I would love to get back to just home, but don't know how to as I trashed those previous version and it still won't let me make it just "home".

Statistics: Posted by Lesley — January 18th, 2012, 3:22 pm


]]>
2012-01-18T13:29:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60896#p60896 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Also, can you tell me what the full URL is of the page you're bookmarking?

Statistics: Posted by Raam Dev — January 18th, 2012, 1:29 pm


]]>
2012-01-18T00:05:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60872#p60872 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Also, I tried bookmarking my site, as my members are trying to do, so I bookmarked the home page. When I log out and click my bookmark, the Not Found page comes up again.

Why is this so convoluted?

Statistics: Posted by Lesley — January 18th, 2012, 12:05 am


]]>
2012-01-17T15:21:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60847#p60847 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
I've got one more questions to make the whole process smooth now, but will start a new topic.

Thanks again.

Statistics: Posted by Lesley — January 17th, 2012, 3:21 pm


]]>
2012-01-17T13:49:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60832#p60832 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Did you copy and paste that into the editing window using the Visual editor or the HTML editor? Please use the HTML editor and make sure the only thing on that page is the code above.

Again, the Redirect page is simply designed to send the person to the correct page, so it should be selected as the Front Page and the Posts Page should be the blank Home page you created earlier (WordPress turns that blank Home page into a page with the latest posts when you select it as the Posts page).

Statistics: Posted by Raam Dev — January 17th, 2012, 1:49 pm


]]>
2012-01-17T09:31:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60812#p60812 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
I think the problem with these fixes is that I have to unclick "Front Page displays: Page of Posts" to choose these static pages...and the front page only works when Page of Posts is chosen for front page display?

Statistics: Posted by Lesley — January 17th, 2012, 9:31 am


]]>
2012-01-17T00:09:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60786#p60786 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Create another page, let's call it "Redirect Page".

Now copy and paste the following code into the page:

Code:
[s2If is_user_logged_in()]
<script type="text/javascript">
<!--
window.location = "http://example.com/link-to-page-called-home/"
//-->
</script>
[/s2If]

[s2If !is_user_logged_in()]
<script type="text/javascript">
<!--
window.location = "http://example.com/link-to-membershio-options-page/"
//-->
</script>
[/s2If]


Update those two URLs to point to the correct pages, your Membership Options Page and that Home page we created earlier (the one you set as the Posts page).

Now set your Front Page to this Redirect Page that we just created.

What should now happen is this:

- If a non-logged in user visits your home page, they will be redirected to your Membership Options Page.

- If a logged in user visits your home page (or they click on your header), they will be redirected to the page with the latest posts.

Statistics: Posted by Raam Dev — January 17th, 2012, 12:09 am


]]>
2012-01-16T23:29:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60776#p60776 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
This note did come up when I did it and I wonder if that is a problem:

NOTE: Your Membership Options Page for s2Member is currently configured as your Home Page ( i.e. static page ) for WordPress®. This causes internal conflicts with s2Member. Your Membership Options Page MUST stand alone. Please correct this.

And the real issue is that as a logged in user, when I click the header, which should take me to my home page and the magazine template, it takes me to the MOP....not good. As far as I know that page just doesn't exist at the moment.

Further ideas please? I feel like we are close.

Statistics: Posted by Lesley — January 16th, 2012, 11:29 pm


]]>
2012-01-16T23:09:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60766#p60766 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Here's how:

1) Create a WordPress page called "Home"; leave it blank; the page just needs to exist.
2) Set your "Front page" to your Membership Options Page
3) Set your "Posts page" to that blank "Home" page you created
4) Set your s2Member Login Welcome Page to the "Home" page you created, or alternatively, fill in the full URL to that "Home" page (e.g., http://example.com/home/) in the box at the bottom of the Login Welcome Page

Now, when a non-logged in user visits your home page, they will see your Membership Options Page. When one of your existing users logs in, they will see a list of your latest posts.

Does that make sense?

You can always try a few of these changes and then just revert back to the hold setup if you discover it's not working.

Statistics: Posted by Raam Dev — January 16th, 2012, 11:09 pm


]]>
2012-01-16T22:31:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60757#p60757 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
And if the magazine template, which I have based the whole look of the blog upon calls for the front page being set to pages of posts, it sounds as tho' you are saying I would have to change the look of my front page.

Isn't protecting the whole site a common thing?

P.S. It is also, actually not a 404 page,which I mentioned earlier, if that makes any difference?

Statistics: Posted by Lesley — January 16th, 2012, 10:31 pm


]]>
2012-01-16T22:21:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60755#p60755 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
If you don't want your home page to show things like your sidebar and Who's Online sections, you'll need to make sure the home page that's loading does not include those items. Doing this involves creating a WordPress Page Template with those elements stripped out, assigning that page template to your Membership Options Page, and then configuring WordPress to use your Membership Options Page as the static front page in WP Admin -> Settings -> Reading.

If you at least do the last of those steps (set your MOP to be the static front page), that should solve the 404 error problem.

Statistics: Posted by Raam Dev — January 16th, 2012, 10:21 pm


]]>
2012-01-15T17:40:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60611#p60611 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
This is also more urgent now as my site is live, lots of people are visiting it and that darned error page now shows up on the search results on the first page in Google if you search "*removed".

Can anyone help me figure out how to make my site (except the MOP, of course) completely hidden to non-members? This could compromise my members feelings of privacy and safety.

Statistics: Posted by Lesley — January 15th, 2012, 5:40 pm


]]>
2012-01-15T00:08:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60554#p60554 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> Statistics: Posted by Lesley — January 15th, 2012, 12:08 am


]]>
2012-01-14T22:22:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60532#p60532 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> WP Admin -> Settings -> Reading Settings?

Statistics: Posted by Raam Dev — January 14th, 2012, 10:22 pm


]]>
2012-01-13T21:01:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60484#p60484 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> Statistics: Posted by Lesley — January 13th, 2012, 9:01 pm


]]>
2012-01-13T20:49:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60482#p60482 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> everything is restricted, then where do people go to sign up? Have you chosen a Membership Options page? WP Admin -> s2Member -> General Options -> Membership Options Page

Statistics: Posted by Raam Dev — January 13th, 2012, 8:49 pm


]]>
2012-01-13T20:18:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60473#p60473 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
It means restricted until you are a member, right? Atleast no one who has joined (as a test) has had trouble seeing anything they want.

Statistics: Posted by Lesley — January 13th, 2012, 8:18 pm


]]>
2012-01-13T19:50:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60468#p60468 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>

Statistics: Posted by Raam Dev — January 13th, 2012, 7:50 pm


]]>
2012-01-13T16:42:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60456#p60456 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
nothing in the URI boxes

the "protect alternate views" are all clicked

nothing in the specific page/post restrictions and the last two just have the default entries

Statistics: Posted by Lesley — January 13th, 2012, 4:42 pm


]]>
2012-01-13T16:31:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60454#p60454 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]> WP Admin -> s2Member -> Restriction Options (including Alternative View Protection)?

Statistics: Posted by Raam Dev — January 13th, 2012, 4:31 pm


]]>
2012-01-12T21:30:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16623&p=60402#p60402 <![CDATA[Re: how can I block people from seeing sidebar on 404 page]]>
Ok....so when I deactivated the front page loaded up instead of the error page.

Statistics: Posted by Lesley — January 12th, 2012, 9:30 pm


]]>