The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Limited Guest Viewing -- Motivate Guests to Register Details »» | |||||||||||||||||||||||||||
Limited Guest Viewing -- Motivate Guests to Register
Developer Last Online: Nov 2020
Version 2.0 of this addon which allows for IP tracking using a mySQL database has been released. This is an optional feature which is disabled by default.
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. Modifications/ Instructions: Template edits: 1 Plugins: 1 (adds 1 template and several settings) SQL Queries: 2 [1 insert/update] (optional) 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. Search Engine Bots (Spiders): This plugin is intended to use cookies as a result few if any bots will be impacted when it comes to spidering your site [bots do not generally use cookies]. Users with IP logging enabled face more potential impact from spiders. For a full explanation of the impact on bots please read the install file. Questions about this issue should be asked after the install file will be read otherwise responses will direct you to read the file. IP/ Database Logging: As of version 2.0 this addon now allows for IP logging via mySQL instead of just using cookies. IP logging tracks visitors by IP address stopping issues associated with cookie clearing making the system more secure. This is optional and is turned off by default. There are 3 possible downsides of this option you should be aware of.
The Limited Guest Viewing is designed to work with the Welcome Headers System version 3.6 without any conflict. If you are using the notices system in 3.7 there is the possibility of duplicating messages. Updates - 12/10/2008 - Bug update to fix issue #2-01 -10/30/2008 - Release of version 2.0 beta -05/04/2008 - Release of 3.7.0 version Show Your Support
|
Comments |
#312
|
|||
|
|||
Arrggg so sorry if I am stupid, Maybe something easy is that I can give you access to my forum to fix all this quickly, just tell me ok.
Or tell me exactly waht I have to do and I will do it, but I don?t know SQL instructions , so you have to give me the exactly SQL instructions to do this. |
#313
|
|||
|
|||
Quote:
Before I can help with your SQL queries I need to know if any tables with the name lgv exit in your database. |
#314
|
|||
|
|||
The stop message is run through a template which you can modify. Just search your styles and change as desired.
|
#315
|
|||
|
|||
Hi Ted,
No I don´t have any table with the name lgv in my DB. So that is the problem, the mod didn´t install(create) the table in my DB, right ? |
#316
|
|||
|
|||
That's correct. The installer was unable to create the table.
If you comment out the line $db->reporterror = 0; by adding a // before it and reinstall you will be told what the error is. Alternatively you can opt not to use the database logging tool and all these issues with not be a factor. |
#317
|
|||
|
|||
Hi again Ted,
Tell me exactly what I have to do, I have to edit the product file ?? and then reinstall it ?? Is not more easy add the table manually ?? |
#318
|
|||
|
|||
Or no problem tell me where and what I have to do and I will do it to see the problem and to have your mod working like a charm.
|
#319
|
|||
|
|||
Ted,
I checked the prodict file, and the part that you told me to add a // alrady have it in the file that I downloaded here, check it: Code:
// check if mod is already installed $db->reporterror = 0; $lgvtbl = $db->query_first("SELECT COUNT(id) as lgv FROM ". TABLE_PREFIX ." lgv"); if (!$lgvtbl['cnt']){ // create the table $db->query_write("CREATE TABLE ". TABLE_PREFIX ." lgv ( id smallint(5) unsigned NOT NULL auto_increment, ipaddress VARCHAR(25) NOT NULL default '0.0.0.0', firstaccess INT UNSIGNED NOT NULL DEFAULT '0', views INT(4) NOT NULL DEFAULT '0', lastactivity INT UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (id), KEY indexs (ipaddress,views,lastactivity) ) TYPE=MyISAM "); // insert the first record $db->query_write(" INSERT INTO " . TABLE_PREFIX . "lgv SET ipaddress = '123.456.789.012', firstaccess = ". TIMENOW .", views = 1, lastactivity = ". TIMENOW ." "); echo "<font size=\"1\">Added mySQL Tables</font><br /><br />"; } else { echo "mySQL table already exists."; } |
#320
|
|||
|
|||
That is not an error.
|
#321
|
|||
|
|||
What error? this one?
Code:
Database error in vBulletin 3.7.6: Invalid SQL: SELECT id,views FROM vblgv AS lgv WHERE lgv.ipaddress = '75.107.208.5'; MySQL Error : Table 'allreef_inicio.vblgv' doesn't exist Error Number : 1146 Request Date : Sunday, April 19th 2009 @ 12:41:49 AM Error Date : Sunday, April 19th 2009 @ 12:41:49 AM Script : http://www.all-reefs.com/inicio/showthread.php?t=6157 Referrer : http://www.reefcentral.com/forums/showthread.php?s=&threadid=1622230 IP Address : 75.107.208.5 Username : No Registrado Classname : vB_Database MySQL Version : Code:
If you comment out the line $db->reporterror = 0; by adding a // before it and reinstall you will be told what the error is. Thanx Ted!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|