vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Limit guests to viewing 5 threads max. (https://vborg.vbsupport.ru/showthread.php?t=36857)

Zzed 03-31-2002 10:00 PM

Limit guests to viewing 5 threads max.
 
This hack allows a guest to view 5 threads within the forums. After the 5th
thread, the hack will bring up the error_nopermission_loggedout template
to force them to register with the board.

This hack was requested by frozt and jjj0923.

Templates affected: 0
Files affected: showthread.php and admin/sessions.php
Tables affected: session

How to install this hack:

You need to alter the session table using the following command:

alter table session add visitcount smallint(5) unsigned DEFAULT 0;

The rest of the instructions are in the attached file.

Your comments will be greatly appreciated.

frozt 04-01-2002 09:34 PM

Thnxz man! its works great i think :-)

Zzed 04-01-2002 09:36 PM

You're welcome. :)

E 04-01-2002 09:42 PM

does it re-direct them too register page... im gonna try installing now

Zzed 04-01-2002 09:44 PM

They get sent to the screen that tells them they need to log in or register. :)

jjj0923 04-01-2002 11:06 PM

thank you - this is great.

- jeff

Remi 04-02-2002 12:00 AM

Can't he/she just clear the session and continue browsing!!

Zzed 04-02-2002 12:04 AM

Quote:

Originally posted by Remi
Can't he/she just clear the session and continue browsing!!
Yes, but I am sure it will get very annoying after a while. :)

Admin 04-02-2002 04:54 AM

Remi is right, it's only for the current session. :)

Zzed 04-02-2002 05:49 AM

Unless your cookie times out, or you kill your browser, you won't be able to read another thread.


All times are GMT. The time now is 01:37 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.00973 seconds
  • Memory Usage 1,727KB
  • 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_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
  • (10)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