vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Limited Guest Viewing -- Improve community registration rates (https://vborg.vbsupport.ru/showthread.php?t=131985)

Ted S 11-18-2006 10:00 PM

Limited Guest Viewing -- Improve community registration rates
 
Note: This addon works with the 3.6.x series only. Click Here for the 3.7.0 version of this addon.

With vBulletin, forum guests are able to view endless amounts of content without being directly asked or forced to register no matter how many times they come back. The purpose of the Limited Guest Viewing System is to drive in registrations by limiting the number of threads guests are able to view without interruption.

This plugin offers two options which can be used to drive in more registrations. The first option allows you to show a reminder message or advertisement after a guest has viewed a certain number of threads. The second option puts up a roadblock stopping guests from viewing threads altogether after reaching a certain number of views. Both options work together to encourage and ultimately force anonymous visitors to either register or login but can also be used separately based on your individual needs.

Because this plugin uses cookies, few if any bots will be impacted when it comes to spidering your site.

Modifications/ Instructions:
Template edits: 1
Plugins: 1 (adds 1 template and several settings)

This template hack should take under 5 minutes to implement and customize.

Customizing the content / messages
To customize which messages appear or what they say, go to vBulletin options, select the ?Limited Guest Viewing System? group and configure the options as desired. Each phase can be modified by adding translation text.

Through the ACP you can enable or disable each option, specify the number of threads that can be viewed before the option is enabled and input any forums you wish to exclude from being blocked.

About spiders/bots
This plugin works by setting a cookie to track the number of visits from a particular user. As bots do not tend to accept cookies, they should not be blocked. To further insure there is no spider accessibility issues, there script identifies major bots (google, yahoo, msn, aol) and explicitly lets them through -- you can easily add to this list by editing the plugin code should you so desire, however, unless a bot starts taking cookies this should not be necessary.


Welcome headers compatibility
The Limited Guest Viewing is designed to work with the Welcome Headers system without any conflict. To insure that welcome header messages do not show up at the same time as the limited guest viewing message, please be sure you are running welcome headers version 4.1.3 or greater (released 11/19).

Updates
5/9/2008 - Released update to prevent installs on 3.7 boards.
2/18/2007 - Minor update to fix register link. Updates optional.
11/20/2006 - Minor update released to fix error with links in some messaging. Updates recommended.

foulplay 11-19-2006 07:08 PM

Thanks I'll check it out!

abramelin 11-19-2006 07:09 PM

1-Does this realy checks these spiders. If it doesnt limit the spider then i am going to install this lovely mod
2-Doesnt this conflict with the welcome header mod?

Ted S 11-19-2006 07:21 PM

Quote:

Originally Posted by abramelin (Post 1120981)
1-Does this realy checks these spiders. If it doesnt limit the spider then i am going to install this lovely mod

It checks for the bots I've listed (google, aol, msn, yahoo). Any other bot will be blocked unless you add it to the plugin manually.

Quote:

Originally Posted by abramelin (Post 1120981)
2-Doesnt this conflict with the welcome header mod?

No, they both work together. I will be releasing an update of the welcome headers in a few minutes to insure they never appear at the same time.

Shazz 11-19-2006 07:29 PM

What if your you usergroup options are set to block everything from guests view... Set to private..

projectego 11-19-2006 07:40 PM

Awesome hack! Thank you. ;)

Ntfu2 11-19-2006 07:44 PM

YES! I've been waiting for something like this forever.


Definetly checking it out tonight.


Few questions: How does it detect how many page views? Cookie or IP based or both :D

How easily is it circumventable? If i simply clear my cookies, will i be able to start viewing all over again?


I'd like to open a registration required area up on my site for a short while but limit it in this way to require a registration to get all the goods!

Ted S 11-19-2006 07:53 PM

Quote:

Originally Posted by Shazz (Post 1120993)
What if your you usergroup options are set to block everything from guests view... Set to private..

Then this wouldn't do anything for you.

Ted S 11-19-2006 07:58 PM

Quote:

Originally Posted by Ntfu2 (Post 1121006)
Few questions: How does it detect how many page views? Cookie or IP based or both :D

Just cookies. Tracking IPs would mean a lot of database calls which I wanted to avoid.

Quote:

Originally Posted by Ntfu2 (Post 1121006)
How easily is it circumventable? If i simply clear my cookies, will i be able to start viewing all over again?

Getting around this would not be impossible or even very difficult but it should stop most guests who don't know a thing about tracking visits in cookies.

StuntFactoryX 11-19-2006 08:12 PM

installed and tested, awesome hack, its not all or nothing anymore. and if people wanna deleate their cookies just to get another 5 views out of my site, im sure they will just register, that would be less hassle imo.

FleaBag 11-19-2006 08:58 PM

I have a fear if Google realised your page was using this it could really damage your ranking.

rex_b 11-19-2006 09:04 PM

Wow Ted. Great hack!

Josh1 11-19-2006 09:40 PM

Excellent. :).

redlabour 11-19-2006 09:52 PM

Attention :

s. Screenshot - this is happening after Installation of this Hack.

Most Yahoo IP´s are blocked.

Ted S 11-19-2006 09:55 PM

Quote:

Originally Posted by FleaBag (Post 1121077)
I have a fear if Google realised your page was using this it could really damage your ranking.

That's certainly possible. However, many sites (i.e. webmaser world, new york times, barons, wsj, etc...) do just this... and do it with Google's knowledge. In fact, Google has a product that logs in to protected sites and from what I've been told, will be rolling this out to more sites in the future.

Keep in mind that you are not showing different content to a user any more than Amazon shows people who have logged in different content than those that have not. Most dynamic sites these days show different content to different groups -- the welcome message on your forumhome template, showing birthdays or announcements to one group, or ads to another. In this case, all you are doing is limiting the number of times a guest may view pages. I can't tell you what this will or won't do for the SERPs, I can tell you why it makes sense and what others are doing that's similar.

Ted S 11-19-2006 09:58 PM

Quote:

Originally Posted by redlabour (Post 1121107)
Attention :

s. Screenshot - this is happening after Installation of this Hack.

Most Yahoo IP?s are blocked.

It looks like Yahoo's agent was a little different than what my filter had. Try updating the plugin file and let me know if you see any issues.

redlabour 11-19-2006 10:07 PM

Quote:

Originally Posted by Ted S (Post 1121112)
That's certainly possible. However, many major news (i.e. new york times, barons, wsj, etc...) sites do just this... and do it with Google's knowledge. In fact, Google has a product that logs in to protected sites and from what I've been told, will be rolling this out to more sites in the future.

Keep in mind that you are not showing different content to a user any more than Amazon shows people who have logged in different content than those that have not. Most dynamic sites these days show different content to different groups -- the welcome message on your forumhome template, showing birthdays or announcements to one group, or ads to another. In this case, all you are doing is limiting the number of times a guest may view pages. I can't tell you what this will or won't do for the SERPs, I can tell you why it makes sense and what others are doing that's similar.

Sorry, Ted after your other Answer about Google i have to uninstall this. If Google uses Login Agents it will only do it at Major Sites and that are not the most Sites. ;)

Nice Idea - but Crawling is more important for me than force Guest to register. ;)

hotwheels 11-19-2006 11:20 PM

awesome mod ted s.......works perfectly

hotwheels 11-19-2006 11:34 PM

Ted, quick question on bot's?

If you want certian bot's to come to your site, say Yahoo! Slurp Spider or FeedFetcher-Google Spiders.........where do you add these? I see
PHP Code:

// check if user is a bot
            
$lvgbot = ($vbulletin->superglobal_size['_COOKIE'] == AND preg_match("#(google|msnbot|zoints|aol|yahoo|slurp)#si"$_SERVER['HTTP_USER_AGENT'])); 

Would it be something like
PHP Code:

// check if user is a bot
            
$lvgbot = ($vbulletin->superglobal_size['_COOKIE'] == AND preg_match("#(google|msnbot|zoints|aol|yahoo|slurp|FeedFetcher-Google|Yahoo! Slurp)#si"$_SERVER['HTTP_USER_AGENT']));[/ 


hotwheels 11-19-2006 11:55 PM

K, i have to disable this for now.......redlabour is right, it is kickin off the bot's for those that need to have them on.

I will keep checking back on this post tho, this is a great idea.

hotwheels 11-20-2006 01:08 AM

Well, this is what i have so far:
PHP Code:

// check if user is a bot
            
$lvgbot = ($vbulletin->superglobal_size['_COOKIE'] == AND preg_match("#(google|msnbot|zoints|aol|yahoo|slurp|FeedFetcher-Google|FeedBurner|WorldIndexer|Yahoo! Slurp|Majestics MJ12bot|Voyager|Technorati|Googlebot-Image|BlogPulse|blogsearch|Feedster|SBIder|ColdFusion
|FeedValidator|Google AdSense|Moreover|Norbert|Scooter|T-H-U-N-D-E-R-S-T-O-N-E|Teoma/Ask Jeeves|TurnitinBot|WorldIndexer|YahooFeedSeeker|vBSEO|Yahoo! Slurp Spider|Google Spider|FeedFetcher-Google Spiders|FeedBurner Spiders|BDFetch|SBIder.|Blogslive|Exabot|Feedfetcher-Google|GSiteCrawler|Google-Sitemaps|Gigabot|Java|MSTPC|MetaTagRobot|Moozilla|Mozilla|Python-urllib|Shim-Crawler|Site-Scan|Snapbot|Genome Machine|Windows-Media-Player|Yahoo-MMCrawler|findlinks|ichiro|libwww-perl|mozilla Java|sproose|up.b)#si"
$_SERVER['HTTP_USER_AGENT'])); 

It seems once you install this, that it write's to phpmyadmin, so you have to continue forward with it....Uninstalling it didn't change the bot's being denied access......

I also installed the Member Bots 1.0 per the instruction's......

I will let ya'll know how this works out....

XanTrax 11-20-2006 02:04 AM

Couldnt a user/guest just delete their cookie and start it all over again? Considering firefox has a quick thing to delete cookies.

Ted S 11-20-2006 03:38 AM

Quote:

Originally Posted by hotwheels (Post 1121221)
Well, this is what i have so far:
PHP Code:

// check if user is a bot
            
$lvgbot = ($vbulletin->superglobal_size['_COOKIE'] == AND preg_match("#(google|msnbot|zoints|aol|yahoo|slurp|FeedFetcher-Google|FeedBurner|WorldIndexer|Yahoo! Slurp|Majestics MJ12bot|Voyager|Technorati|Googlebot-Image|BlogPulse|blogsearch|Feedster|SBIder|ColdFusion
|FeedValidator|Google AdSense|Moreover|Norbert|Scooter|T-H-U-N-D-E-R-S-T-O-N-E|Teoma/Ask Jeeves|TurnitinBot|WorldIndexer|YahooFeedSeeker|vBSEO|Yahoo! Slurp Spider|Google Spider|FeedFetcher-Google Spiders|FeedBurner Spiders|BDFetch|SBIder.|Blogslive|Exabot|Feedfetcher-Google|GSiteCrawler|Google-Sitemaps|Gigabot|Java|MSTPC|MetaTagRobot|Moozilla|Mozilla|Python-urllib|Shim-Crawler|Site-Scan|Snapbot|Genome Machine|Windows-Media-Player|Yahoo-MMCrawler|findlinks|ichiro|libwww-perl|mozilla Java|sproose|up.b)#si"
$_SERVER['HTTP_USER_AGENT'])); 

It seems once you install this, that it write's to phpmyadmin, so you have to continue forward with it....Uninstalling it didn't change the bot's being denied access......

I also installed the Member Bots 1.0 per the instruction's......

I will let ya'll know how this works out....


This plugin does not modify any data in your database so when you remove it, it is removed. If the bots were denied access when you removed this, there's another reason... and this plugin isn't it.

Ted S 11-20-2006 03:38 AM

Quote:

Originally Posted by XanTrax (Post 1121255)
Couldnt a user/guest just delete their cookie and start it all over again? Considering firefox has a quick thing to delete cookies.

Yes. The goal here isn't to make it impossible to view threads, it's to make it harder and thus encourage registration. If you're looking to shut guests out, stick to the registration system.

Ted S 11-20-2006 03:39 AM

Quote:

Originally Posted by hotwheels (Post 1121173)
Ted, quick question on bot's?

If you want certian bot's to come to your site, say Yahoo! Slurp Spider or FeedFetcher-Google Spiders.........where do you add these? I see [php]// check if user is a bot


Just change the line google|msnbot|zoints|aol|yahoo|slurp to include any other bots you like with a pipe (|) between each name.

JimmyN 11-20-2006 04:28 AM

so this hack still allows all search engine bots to view?

But limits normal guests?

thanks

Ntfu2 11-20-2006 05:14 AM

How about adding a timer to where the cookie expires after x amount of hours :D


And then in the phrase maybe something like

"Thank you for viewing our content, you've viewed all the content allowed by guests, you can view more unrestricted content in X amount of hours blah blah...:"

scottreeve 11-20-2006 05:25 AM

Good hack.

I've installed, and only problem is with the 'custom message' edit.
Quote:

(To edit the phrase for this message error, click here (enter your custom text in the translation box).)
It comes up with a SQL database error...

Any ideas?

Thanks,
Scott

Ntfu2 11-20-2006 06:33 AM

Quote:

Originally Posted by scottreeve (Post 1121339)
Good hack.

I've installed, and only problem is with the 'custom message' edit.
It comes up with a SQL database error...

Any ideas?

Thanks,
Scott


Try to reimport the product XML and overwrite the old one.

JimmyN 11-20-2006 07:06 AM

Quote:

Originally Posted by Ntfu2 (Post 1121335)
How about adding a timer to where the cookie expires after x amount of hours :D


And then in the phrase maybe something like

"Thank you for viewing our content, you've viewed all the content allowed by guests, you can view more unrestricted content in X amount of hours blah blah...:"

i think this would be a great idea, but just have it that the guest can return to the board after 24hours say and then view a thead again, and if they click another thread then they get the msg.
But just have the existing msgs, not the X hours left, becuse then they might just not bother registering or they may come back to view latter without thinking to reg.

Maybe this can all be set in the admincp for this. So it can be cusomised to suite your own forum.

Just some ideas though,

So far its a great hack though, thanks heaps :) working great on my board

Bad Bunny 11-20-2006 07:26 AM

So, I have tested this a bit, and it seems really useful. What exactly is the problem from the spider perspective? Is it blocking them or is it not? Also, wouldn't using only the message bypass any problems with the cookies anyway?

Distance 11-20-2006 07:34 AM

Thanks!! I love your hacks

Ahhh this is a good point!! Does it block spiders!!

redlabour 11-20-2006 07:53 AM

Quote:

Originally Posted by JimmyN (Post 1121321)
so this hack still allows all search engine bots to view?

But limits normal guests?

thanks

No it does not - read the Thread. It only works at the most important but not at all. And sometimes it can block the important Ones if they change their Crawlers.

Quote:

Originally Posted by Distance (Post 1121366)
Thanks!! I love your hacks


Ahhh this is a good point!! Does it block spiders!!


Is anybody reading before installing ? *omg*

scottreeve 11-20-2006 08:51 AM

Quote:

Originally Posted by Ntfu2 (Post 1121350)
Try to reimport the product XML and overwrite the old one.

Thanks for your help.

I've reimported, and still the same problem :(

Distance 11-20-2006 09:58 AM

Bots dont work then.... great shame

*uninstalls* :(

InTeNsE-HuMoR 11-20-2006 10:05 AM

This hack is great but it looks like everyone overlooked this simple mistake:

On the "Register block page" the create a new account links are invalid and thus a guest is unable to sign up for an account through that page. Other than that, great hack.:D

sensimilla 11-20-2006 10:42 AM

Its a great hack I was in need of,
thanks

puertoblack2003 11-20-2006 11:16 AM

i like this very much and by far a good hack..thanks **INSTALLED**

Robru 11-20-2006 12:03 PM

Marvelous hack, thanX :)

hotwheels 11-20-2006 12:18 PM

It let's the bot's on your site........After 12am when my site stat's reset, here is what i show currently for my bot's: Yahoo! Slurp(11) , WorldIndexer , Google and Yahoo! Slurp Spiders (283), Majestics MJ12bot Spiders (1), Technorati Spiders (1), WiseNut Spiders (1), MSNBot Spiders (1), WorldIndexer Spiders (2), FeedBurner Spiders (2), Voyager Spiders (1), Google Spiders (1), FeedFetcher-Google Spiders (1)........

Hotwheels


All times are GMT. The time now is 05:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01797 seconds
  • Memory Usage 1,854KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete