Forums

Join
bbPress Support ForumsPimp your PressLimit page views for guests

Info

Tags

Limit page views for guests

  1. 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?

  2. 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.

  3. Thanks Olaf, gonna try both today.

  4. 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.

  5. Yeah, but how?

  6. 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...

  7. You must log in to post.