latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Author page auto-created for any level – why?

Home Forums Community Forum Author page auto-created for any level – why?

This topic contains 5 replies, has 3 voices. Last updated by  Raam Dev 4 years, 8 months ago.

Topic Author Topic
Posted: Monday Apr 30th, 2012 at 6:45 pm #12248
Bran
Username: brans2member

Hi gang.

I have 4 levels set up for registration: 1 – 4.

The subscriber level (0) is not used (disabled in the s2member Settings area), and conventional subscribers via WP are not allowed (disabled in the WP dashboard area).

Some of my levels 1 – 4 can create posts (e.g., have the publish_posts capability). Others cannot.

Yet, for any registered user signing up through a PPro form, an author page is being created. This includes levels where the only capability assigned is “read”.

Request: for anyone with an install that takes registrations (free or otherwise) on PPro s2member levels 1 through 4 – would you mind checking if this happens on your install? Do you have an automatically created author page for that user?

Thank you.

Bran

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Tuesday May 1st, 2012 at 4:41 am #12263

s2Member doesn’t give the publish_posts capability capability to any role. Did you customize this with a role editor?

It’s possible that your customization is causing that author page to be created? s2Member doesn’t create pages for users.

Posted: Tuesday May 1st, 2012 at 9:15 am #12272
Bran
Username: brans2member

Cristian,

This was a test of a level1 user whose capabilities are:

* access_s2member_level0
* access_s2member_level1
* read

This is a person who signed up for a free account via a PPro form.

I was not logged in when I tried this.

All I did was go to an author page on the front end and change the URI to end in this level1 user’s display name.

And that brought up an author page for this person (e.g., attempted to list all posts by this user, despite that they don’t have the capability to post).

Normally this wouldn’t bug me but I fear that search engines might somehow find and index this user’s page. I also don’t want any of these users to try it out for themselves just for kicks – they should be returned with a 404 on such an attempt.

I will say that if I run regular WP DB queries to get posts or list authors then these users don’t show up (as expected).

Bran

Posted: Tuesday May 1st, 2012 at 2:15 pm #12300
Raam Dev
Username: Raam
Staff Member

Hi Bran,

The WordPress Author Page is something that is part of the WordPress theme framework. When you request the URL for the author page, WordPress dynamically generates the page for you.

If you don’t want that page to be available or accessible at all, you’ll need to find a way to disable it. You could also add some code that redirects away from the author page when the requested author has zero posts (see here for an example).

Posted: Tuesday May 1st, 2012 at 5:04 pm #12325
Bran
Username: brans2member

Raam,

1000 stars for this snippet – it works a charm!

THANK YOU!

Bran

Posted: Wednesday May 2nd, 2012 at 6:12 pm #12403
Raam Dev
Username: Raam
Staff Member

Glad to help, Bran! :)

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.