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™

Protected content visible to Google?

s2Member Plugin. A Membership plugin for WordPress®.

Protected content visible to Google?

Postby ayoungren » December 29th, 2011, 2:16 pm

Is it true that excerpts of protected content are visible to Google?
What are recommended SEO practices for protected pages?

thanks in advance
User avatar
ayoungren
Registered User
Registered User
 
Posts: 10
Joined: April 1, 2011

Re: Protected content visible to Google?

Postby Eduan » December 29th, 2011, 2:29 pm

I believe anything blocked by s2Member is not put on search results. Though excerpts from posts/pages are sometimes visible.

But just to make sure they aren's, go to WP Admin -> s2Member -> Restriction Options -> Alternative View Protection configure everything there and see if it solves your problem.

Hope this helps. :)
Also remember to report back,
otherwise you leave me worrying. ;)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Protected content visible to Google?

Postby ayoungren » December 29th, 2011, 5:18 pm

I do want the text content to be found in search results, just not the images.

If I want things to be visible in search results do I choose-
None (do not filer any Wordpress queries)
User avatar
ayoungren
Registered User
Registered User
 
Posts: 10
Joined: April 1, 2011

Re: Protected content visible to Google?

Postby Harty » December 29th, 2011, 11:37 pm

There may be a smarter solution than mine, but how about having two pages for each item, one with photos, and one without.
On the page without photos you have a button that says, 'click here to see this page with photos'. That page would be protected by s2member and only available to logged in viewers.
User avatar
Harty
Registered User
Registered User
 
Posts: 104
Joined: April 27, 2011
Location: New Zealand

Re: Protected content visible to Google?

Postby ayoungren » December 29th, 2011, 11:45 pm

Thanks for the suggestion... might be a good work around.
User avatar
ayoungren
Registered User
Registered User
 
Posts: 10
Joined: April 1, 2011

Re: Protected content visible to Google?

Postby drbyte » December 29th, 2011, 11:52 pm

You could do something like this:

Code: Select all
<?php if (current_user_can("access_s2member_level1")){ ?>
    <?php echo do_shortcode('[gallery option1="value1"]'); ?>
<?php } else { ?>
    Some public content.
<?php } ?>



ref: http://codex.wordpress.org/Gallery_Shortcode

You could set different width and height using size="themename-thumbnail" in the above code

Code: Select all
<?php echo do_shortcode('[gallery columns="3" size="themename-thumbnail"]'); ?>


Add this to your function.php

Code: Select all
add_image_size( 'themename-thumbnail', 340, 400, true );


This should protect your images from everybody but your members.

Sam
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: Protected content visible to Google?

Postby Cristián Lávaque » December 30th, 2011, 12:44 am

Another way would be using conditionals around each image. WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals

Code: Select all
[s2If is_user_logged_in()] <img src="/my-image.jpg" /> [/s2If]

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