Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Limited Guest Viewing -- Improve community registration rates Details »»
Limited Guest Viewing -- Improve community registration rates
Version: 1.0.6, by Ted S Ted S is offline
Developer Last Online: Nov 2020 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 11-18-2006 Last Update: 11-14-2008 Installs: 691
Uses Plugins Template Edits
 
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #352  
Old 11-15-2007, 06:57 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changing the title of the groups won't do anything... they're referanced by ID numbers.

You would need to change the line of code you referanced to add an appropriate OR statement for the usergroup you want to check against.
Reply With Quote
  #353  
Old 11-15-2007, 07:40 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me how to restructure this line within Ted's mod with an "OR" statement, so that it will include Usergroup #3 "Users Awaiting Email Confirmation" as well as guests which is Usergroup #1 "Unregistered / Not Logged In"?

In this way, it will extend the use of this fine mod and visitors to our community will end up being blocked until they fully complete the registration process.

Code:
// check if user is a guest and if system is enabled 
if ($show['guest'] AND !$lvgbot AND $vbulletin->options['lgvon'])
Thanks for any help offered ....

Regards,
Badger
Reply With Quote
  #354  
Old 11-15-2007, 10:53 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not in a place where I can test but try

Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon'])
Where X,Y,Z are groups you want to treat like guests (it can be just one group).

If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead.
Reply With Quote
  #355  
Old 11-16-2007, 10:55 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
I'm not in a place where I can test but try

Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon'])
Where X,Y,Z are groups you want to treat like guests (it can be just one group).

If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead.

Thanks Ted....

I tried both approaches....

if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])

if ( ($show['guest'] OR in_array($vbulletin->userinfo['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])

..... but I get an error as follows:

Parse error: syntax error, unexpected '{' in /forums/mysite/showthread.php(345) : eval()'d code(133) : eval()'d code on line 7

Thanks...

Regards,
Badger
Reply With Quote
  #356  
Old 11-17-2007, 09:47 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Missing a closing )

Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3')) AND !$lvgbot AND $vbulletin->options['lgvon'])
Reply With Quote
  #357  
Old 12-15-2007, 02:57 AM
kiFF kiFF is offline
 
Join Date: Apr 2007
Location: US
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My only problem is that when the "Register Take-Over Message" is enabled, my welcome headers only show up on the main page. If I go into a thread no header shows up.
Reply With Quote
  #358  
Old 12-15-2007, 06:18 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kiFF View Post
My only problem is that when the "Register Take-Over Message" is enabled, my welcome headers only show up on the main page. If I go into a thread no header shows up.
Go into your Limited Guest Viewing settings and disable Welcome Header Message Suppression.
Reply With Quote
  #359  
Old 12-15-2007, 01:50 PM
kiFF kiFF is offline
 
Join Date: Apr 2007
Location: US
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
Go into your Limited Guest Viewing settings and disable Welcome Header Message Suppression.
That's not one of the options.
Reply With Quote
  #360  
Old 12-15-2007, 03:38 PM
diviniti diviniti is offline
 
Join Date: Mar 2007
Location: Michigan
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.6.8 and working great. Thanks!
(Clicks Installed)
Reply With Quote
  #361  
Old 12-16-2007, 02:44 PM
Racecar Racecar is offline
 
Join Date: Sep 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.6.8 and it seems to be working great
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05010 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete