WordPress.org

Forums

Fist time visit post with "hide this" option ? (6 posts)

  1. ayanev
    Member
    Posted 9 years ago #

    Is there plugin or way to create this:
    when user log in for first time to my wp blog a sticky message appears with few lines of text, with button "hide" on the bottom of this message. When the user click this button and revisit the page it sets that he dont want to view this message again and the message doesnt appear. I think this could be done using IP logging+cookies...

  2. maerk
    Member
    Posted 9 years ago #

    Actually you could do it with just cookies, no need to log the IP.

    Are you familiar with PHP?

  3. ayanev
    Member
    Posted 9 years ago #

    Yes, i was just looking for something already build, dont have time right now to spend huge amount of time reinventing something already invented ;)

    My idea is to force my first time visitors to read my TOS (not commercial use or something!) :)
    If i dont find the solution I'll write this code :)

    edit
    typo mystake in the title, shoud be "FIRST" instead of "FIST" ;)

  4. maerk
    Member
    Posted 9 years ago #

    Try this, this is what I use to change the way my archive page acts:

    http://beingmrkenny.co.uk/wordpress/hacks/custom-theme-cookies/

  5. ayanev
    Member
    Posted 9 years ago #

    Thanks maerk, that is exactly what I needed :)
    Thanks again :)

  6. maerk
    Member
    Posted 9 years ago #

    Hooray! Glad to help :D

Topic Closed

This topic has been closed to new replies.

About this Topic