Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-30T00:44:46-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16596 2011-12-30T00:44:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59202#p59202 <![CDATA[Re: Protected content visible to Google?]]> WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals

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

Statistics: Posted by Cristián Lávaque — December 30th, 2011, 12:44 am


]]>
2011-12-29T23:52:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59198#p59198 <![CDATA[Re: Protected content visible to Google?]]>
Code:
<?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:
<?php echo do_shortcode('[gallery columns="3" size="themename-thumbnail"]'); ?>


Add this to your function.php

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


This should protect your images from everybody but your members.

Sam

Statistics: Posted by drbyte — December 29th, 2011, 11:52 pm


]]>
2011-12-29T23:45:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59195#p59195 <![CDATA[Re: Protected content visible to Google?]]> Statistics: Posted by ayoungren — December 29th, 2011, 11:45 pm


]]>
2011-12-29T23:37:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59192#p59192 <![CDATA[Re: Protected content visible to Google?]]> 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.

Statistics: Posted by Harty — December 29th, 2011, 11:37 pm


]]>
2011-12-29T17:18:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59147#p59147 <![CDATA[Re: Protected content visible to Google?]]>
If I want things to be visible in search results do I choose-
None (do not filer any Wordpress queries)

Statistics: Posted by ayoungren — December 29th, 2011, 5:18 pm


]]>
2011-12-29T14:29:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59115#p59115 <![CDATA[Re: Protected content visible to Google?]]>
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. ;)

Statistics: Posted by Eduan — December 29th, 2011, 2:29 pm


]]>
2011-12-29T14:16:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16596&p=59114#p59114 <![CDATA[Protected content visible to Google?]]> What are recommended SEO practices for protected pages?

thanks in advance

Statistics: Posted by ayoungren — December 29th, 2011, 2:16 pm


]]>