GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Do you know this plugin? ( Wordpress ) (https://gfy.com/showthread.php?t=933721)

Robocrop 10-16-2009 12:51 PM

Do you know this plugin? ( Wordpress )
 
I was wondering, is there any plugin that can make the posts I choose only viewable by site members?

So if they arent registrerd they cannot view the post I decide.


Thanks in advance! :pimp

Jdoughs 10-16-2009 12:52 PM

http://butlerblog.com/wp-members/

and also

http://wp-member.com/

fris 10-16-2009 02:49 PM

use a shortcode so you can set it for only the posts you want

add this to your themes functions.php file

Code:

add_shortcode( 'member', 'member_check_shortcode' );

function member_check_shortcode( $atts, $content = null ) {
        if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
                return $content;
        return '';
}

then in your post

Code:

[member]
This text will be only displayed to registered users.
[/member]


pornpf69 10-16-2009 02:53 PM

can't you simply mark the posts are PRIVATE?

Robocrop 10-17-2009 01:35 AM

Quote:

Originally Posted by Jdoughs (Post 16436065)

Quote:

Originally Posted by fris (Post 16436672)
use a shortcode so you can set it for only the posts you want

add this to your themes functions.php file

Code:

add_shortcode( 'member', 'member_check_shortcode' );

function member_check_shortcode( $atts, $content = null ) {
        if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
                return $content;
        return '';
}

then in your post

Code:

[member]
This text will be only displayed to registered users.
[/member]



Thanks to both of ya :> :thumbsup:thumbsup:thumbsup


All times are GMT -7. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123