• `How do i make links that only registrated users can use but when they visit ass a guest they can see the links but dont use them unles they make a user

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What kind of links are we talking about? If you want in-line content, I think there’s a plugin or two for that. If you want it to be a part of your theme, you can use PHP and check ‘if user is logged in, then show links. Else ask why they aren’t a user yet?’

    Thread Starter squnken

    (@squnken)

    hey thx 4 answer i am talking abaut links in my blogrool

    to use this you said

    use PHP and check ‘if user is logged in, then show links. Else ask why they aren’t a user yet?’

    i dont know how to do that but it sounds great i would like that

    the plugin what is it called you talked abaut

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well there’s the PHP EXEC widget plugin – http://wordpress.org/extend/plugins/php-code-widget/

    You can use that for the simple user check:

    <?php global $user_ID, $user_identity, $user_level ?>
              <?php if ( $user_ID ) : ?>
                   <p>Links!</p>
                   <?php wp_list_bookmarks( $args ); ?>
              <?php else : ?>
                   <p>Why don't you sign up?</p>
              <?php endif; ?>

    This is theoretical, mind. I use the if userID to see if people are logged in, but I don’t use wp_list_bookmarks.

    Check out http://codex.wordpress.org/Template_Tags/wp_list_bookmarks for more on that

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

The topic ‘how to “’ is closed to new replies.