vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Limited Guest Viewing -- Motivate Guests to Register (https://vborg.vbsupport.ru/showthread.php?t=201563)

Ted S 01-11-2009 10:00 PM

Limited Guest Viewing -- Motivate Guests to Register
 
1 Attachment(s)
vB4 Users Find the vB4 Version Here.

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, with database setting used)

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 (adds a read-and insert/update query).

There are 3 possible downsides of this option you should be aware of.
  1. The system adds an additional query and update every time a guest views a thread which adds to your server load.
  2. Some users on ISPs like AOL share IPs and could be forced to register without being able to access any threads.
  3. While spiders often change IPs and are specifically excluded (by hostmask) from the addon this is not absolute and it is possible they could be blocked. See the install file for more on this.
Welcome headers compatibility:
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.

Lee Roberts 01-13-2009 12:10 AM

Marked as Installed !
Marked for Nomination !

obmob 01-14-2009 12:52 AM

Oh, i used this before, i'll test again, thanks!

Rene Kriest 01-14-2009 01:29 AM

Any changes for 3.8?

Danial_Faster 01-14-2009 03:56 AM

Please update to 3.8 Stable.

redlabour 01-14-2009 03:03 PM

All i miss is a Function to let them only read X Words with a automatic inserted Link in Post to register to read further.

Sea Shepherd 01-14-2009 03:12 PM

Thanks!

jammiedodger546 01-14-2009 03:43 PM

Sorry for being noobish, but what do you mean by:
Quote:

From your Admin Control Panel go to Styles & Templates --> Style Manager and select Edit Templates from the drop down list. Double click the Navigation/ Breadcrumb Templates option and then double click the navbar template. At the very end of the template add the code: $lgvmessage
Save the template and repeat the process for each top level style you have.

MrNase 01-14-2009 04:07 PM

Edit the template called 'navbar'.

Copy '$lgvmessage' (without the ') and add it to the very end of the template and save the template. :)

Sea Shepherd 01-14-2009 04:12 PM

Thanks MrNase, seems i failed to do that.
All good now...

Still doesnt work with DB logging but it seems to be working with it switched off.

Cheers.

Ted S 01-14-2009 05:12 PM

1 Attachment(s)
Quote:

Originally Posted by Sea Shepherd (Post 1712255)
Thanks MrNase, seems i failed to do that.
All good now...

Still doesnt work with DB logging but it seems to be working with it switched off.

Cheers.

Chances are your forum's mysql account doesn't have access to create tables. Please reinstall the plugin using this version which will display any errors and help me diagnose the issue.

Ted S 01-14-2009 05:13 PM

Quote:

Originally Posted by Danial_Faster (Post 1711728)
Please update to 3.8 Stable.

This is in the 3.8 forum flagged for 3.8...

Ted S 01-14-2009 05:14 PM

Quote:

Originally Posted by Rene Kriest (Post 1711612)
Any changes for 3.8?

Nope. IP Logging came out a few weeks ago and is included in this version as well. While vB 3.8 adds some features to vB it doesn't have many core code changes so the addon is the same as it was for 3.7. However if I don't repost it people get very, very confused. :D

doraj 01-16-2009 04:57 PM

Hello Ted, congratulations

How is the effect of this Mod with Spider, Search Engines..?

For spider are there limitations?

Example..If a Google Spider with a xxxxx IP, read many threads on forum..it will have limitations to read other topics or not?

Thanks!

Ted S 01-16-2009 08:01 PM

Quote:

Originally Posted by doraj (Post 1714896)
Hello Ted, congratulations

How is the effect of this Mod with Spider, Search Engines..?

For spider are there limitations?

Example..If a Google Spider with a xxxxx IP, read many threads on forum..it will have limitations to read other topics or not?

Thanks!

Please read the main description and install file which explain exactly this.

Sunka 01-18-2009 04:12 AM

Installed....Thanks

ViViD 01-18-2009 10:52 AM

Hello ,
Is it possible to do this like (deviantart.com) optionally so every 10 page the user surfs a page appears showing a message or an adv. then asks the user to continue surfing the site by clicking the link ... ?

Ted S 01-18-2009 04:46 PM

ViVid,

That's not exactly how the addon works out of the box but modifying the functionality to do that wouldn't be terribly difficult. Basically you would use the takeover function to show the ad and then create a link to a new function which does not currently exist that when clicked would reset the cookie and ip records to 0 allowing the user to continue on. If you wanted this to happen for all users and not just guests you would have to make a few more tweaks to the code.

TheArve 01-21-2009 10:30 PM

Thanks for this,, really appreciate ur time taken,

CHeers

thearve

Megatr0n 01-24-2009 01:25 PM

Hi Ted,

Still having the same issues with this hack.

Ted S 01-24-2009 05:36 PM

Quote:

Originally Posted by Megatr0n (Post 1723271)
Hi Ted,

Still having the same issues with this hack.

Keep using the files you had from 3.7.... there were no changes to the 3.8 upgrade. I need to release an update with the fixes we found for you.

Megatr0n 01-24-2009 06:27 PM

Quote:

Originally Posted by Ted S (Post 1723508)
Keep using the files you had from 3.7.... there were no changes to the 3.8 upgrade. I need to release an update with the fixes we found for you.

Can you please attach the file again?

Btw, I tried to send you a donation and it didn't work.

JackRock 01-24-2009 09:16 PM

Works BEAUTIFULLY! Thanks for this one!

digitaldome 01-25-2009 02:06 AM

thanks for the addon,i just installed and working fine with vb 3.8

Ted S 01-25-2009 09:20 PM

Quote:

Originally Posted by Megatr0n (Post 1723543)
Can you please attach the file again?

Btw, I tried to send you a donation and it didn't work.

You'll find the file in the 3.7 thread near the last page. I don't keep the versions I post up but will be releasing an update for both 3.7 and 3.8 soon.

As for the donation, I appreciate the gesture. I don't control the links to the donation system myself (that's part of the vbulletin.org site) but if you click it again things should work.

Bisha 01-29-2009 03:41 PM

Quote:

Search Engine Bots
What happen when I log in as google bot profile!

Ted S 01-29-2009 07:11 PM

Quote:

Originally Posted by Bisha (Post 1728227)
What happen when I log in as google bot profile!

Please read the main hack thread.

satlazone 01-30-2009 05:43 AM

I want that this modification will work only on Israeli IPs.
Is there an option to specify israeli IP ranges so it will affect only on them?

For example, I am adding to the list the following IP range: 212.179.*.*
A user is coming to my site and trying to view a thread and his IP address is 212.179.1.1, then he receiving a message telling him to register.
but if an other user that weren't in the list of the IP ranges is coming to my site, he will not receive a notify to register.

Is there an option like what I mentioned on this mod?

Ted S 01-30-2009 04:27 PM

There's no options to look only at certain IPs nor is there any plan to add such a function. That said you could with relative ease modify the code to do this, it's just a matter of defining the IP ranges and comparing them within the main plugin routine.

BlackJacket 01-30-2009 07:35 PM

*Installs*

satlazone 01-31-2009 09:32 AM

Quote:

Originally Posted by Ted S (Post 1729258)
There's no options to look only at certain IPs nor is there any plan to add such a function. That said you could with relative ease modify the code to do this, it's just a matter of defining the IP ranges and comparing them within the main plugin routine.

I don't have any knowledge to code it.
may you help please? :confused:

Ted S 01-31-2009 03:32 PM

I would suggest trying the coding discussion forum if you need help with code. While I'm committed to supporting this addon and will occasionally provide custom code to alter it, I am not able to build custom variations at this time as I have a good deal of work that needs attention. Thank you for your understanding.

benny92000 02-17-2009 12:15 AM

I dont really like the idea of ip logging, but i will install since this is defaulty turned off, thanks though, i have had the old version installed for quite some time, works great. ;)

Ted S 02-17-2009 01:07 AM

Quote:

Originally Posted by benny92000 (Post 1746393)
I dont really like the idea of ip logging, but i will install since this is defaulty turned off, thanks though, i have had the old version installed for quite some time, works great. ;)

It's not for everyone and not suggested for anyone.. hence the option.

desmomax 02-23-2009 07:00 AM

Hy All,
I HAVE installaed this mod versione 2.0.1 and i receive an error by email when the mod do the automatic procedure lgv_cleardb.

the error is this:

PHP Code:

BODY {font-family="Arial"TT {font-family="Courier New"BLOCKQUOTE.CITE {padding-left:0.5emmargin-left:0margin-right:0margin-top:0margin-bottom:0border-left:"solid 2";}
I received lots of email reporting this error:


Database error in vBulletin 3.8.1:

Invalid SQL:

DELETE FROM lgv
WHERE 
(lastactivity + ( * 86400)) < 1235001352;

MySQL Error You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '* 86400)) < 1235001352' at line 2
Error Number 
1064
Request Date 
ThursdayFebruary 19th 2009 12:55:52 AM
Error Date 
ThursdayFebruary 19th 2009 12:55:52 AM
Script 
: [url]http://www.ilbraccoitaliano.net/foru...and=1235001351[/url]
Referrer : [url]http://www.ilbraccoitaliano.net/foru...t=14715&page=2[/url]
IP Address 89.97.102.215
Username 
Non registrato
Classname 
vB_Database
MySQL Version 



How can i fix it?
it's a bug?

thanx

Ted S 02-23-2009 12:41 PM

Set the number of days you want the script to wait before clearing ips.

desmomax 02-23-2009 12:52 PM

You mean:
Clear IP Activity Log ?
i already set to 7 days..

benny92000 02-24-2009 04:09 AM

Quote:

Originally Posted by Ted S (Post 1746430)
It's not for everyone and not suggested for anyone.. hence the option.

Yes, precisely what i meant. I have the option so it makes no difference at all. Top 5 vBulletin mod here. I see it on 90% of vB sites i go to.

desmomax 02-24-2009 06:41 AM

Ted, i still have this error..

Ted S 02-24-2009 12:09 PM

I'll take a look at the code later today and post an update if there's a bug.


All times are GMT. The time now is 10:38 PM.

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.01314 seconds
  • Memory Usage 1,838KB
  • 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
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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