Info
- 6 posts
- 3 voices
- Started 2 years ago by chandersbs
- Latest reply from johnhiler
Limit page views for guests
-
- Posted 2 years ago #
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?
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
Thanks Olaf, gonna try both today.
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
Yeah, but how?
-
- Posted 2 years ago #
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...
-
You must log in to post.