Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limit page views for guests

  • @chandersbs

    Member

    Is there a plugin or a way to code this? This was a feature that helped me increase the number of registered users back then when I was using SMF.

    How can this be achieved with bbPress?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @finalwebsites

    Participant

    Limit page views for guests

    there is no plugin, but it’s easy to create (this is just an example not a full working snippet)

    If your visitors are from the same network you might have problems with this.

    session_start();
    $ipkey = $_SERVER['REMOTE_ADDR'];
    $_SESSION[$ipkey]++;
    if ($_SESSION[$ipkey] >= 10) {
    header("Location: /register.php");
    exit;
    }

    check also the function on my own forum.

    @chandersbs

    Member

    Thanks Olaf, gonna try both today.

    @johnhiler

    Member

    You could have the browser drop a cookie and then track pageviews through that… then when the user hits a pre-set number of pageviews, a registration page could appear.

    @chandersbs

    Member

    Yeah, but how?

    @johnhiler

    Member

    If you’re looking for a point and click plugin that does this, it doesn’t exist AFAIK. You’d to commission someone to program it…

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar