• Resolved sharris203

    (@sharris203)


    Is it possible to show 1 link/button to all guests,
    then after they login, that link/button becomes hidden,
    then they see the member-only link/button??

Viewing 11 replies - 1 through 11 (of 11 total)
  • This is a Hidepost’s feature, you may want to take a look at it.

    Thread Starter sharris203

    (@sharris203)

    I already know 1/2 of it: How to hide a link from Guests, and show to Users after they login (pretty obvious).

    I’m trying to do the reverse as well: Use hidepost to SHOW to a Guest, & then hide to a logged in user?

    For example, show a “Buy” link to guests, but show a “Download” link to logged in Users.

    Use the option page, there’s a option to change the text that shown to guest, change it to your “buy” link

    Thread Starter sharris203

    (@sharris203)

    Thanks, that put me in the right direction. But trial and error has led me to this: I don’t think it’s possible for what I’m trying to do, b/c each of my blog posts has a different item and buy link. The hidepost feature sets all of the buy links to the SAME link.

    Thread Starter sharris203

    (@sharris203)

    Well, I may have figured it out… I set the Protect link to my “Buy” image, and it’s still letting me click on the hidden link beneath it.

    Thread Starter sharris203

    (@sharris203)

    …maybe not. Forget the last post.

    So you want a different link for each post, right ?
    It’s possible, but it requires some works around

    Thread Starter sharris203

    (@sharris203)

    Yep, I wanted different links for each post. I decided to go with a different setup for the site, so this is no longer an issue for me.

    Thread Starter sharris203

    (@sharris203)

    I actually ended up using a different method for this. The dirty way. Didn’t use HidePost at all. Here’s an example:

    <?php global $current_user; get_currentuserinfo(); if ( $current_user->user_level < 1 )
    { echo ' /*Code guests see*/ '; }
    else { echo ' /*Code members see*/ '; } ?>

    This plugin will be even better if it incorporates grouping users into, say Group A, B and C. Then probably use [hidepost group_a] [/hidepost group_a] for instance to hide a selection portion of a post/page for Group A.

    hrisio

    (@hrisio)

    Hi sharris203
    Can you write me how to hide a link from Guests, and show to Users after they login? thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: HidePost] Show 1 link to guests, then a different link after login?’ is closed to new replies.