Page 1 of 1

Protected content visible to Google?

PostPosted: December 29th, 2011, 2:16 pm
by ayoungren
Is it true that excerpts of protected content are visible to Google?
What are recommended SEO practices for protected pages?

thanks in advance

Re: Protected content visible to Google?

PostPosted: December 29th, 2011, 2:29 pm
by Eduan
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. ;)

Re: Protected content visible to Google?

PostPosted: December 29th, 2011, 5:18 pm
by ayoungren
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)

Re: Protected content visible to Google?

PostPosted: December 29th, 2011, 11:37 pm
by Harty
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.

Re: Protected content visible to Google?

PostPosted: December 29th, 2011, 11:45 pm
by ayoungren
Thanks for the suggestion... might be a good work around.

Re: Protected content visible to Google?

PostPosted: December 29th, 2011, 11:52 pm
by drbyte
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

Re: Protected content visible to Google?

PostPosted: December 30th, 2011, 12:44 am
by Cristián Lávaque
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]