The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Disallow guests to view threads, must register first Details »» | |||||||||||||||||||||||||||
Disallow guests to view threads, must register first
Developer Last Online: Jun 2020
Yes I know that there is already a a feature to stop guests from viewing threads, but then this also shows all the posts and threads counters to zero, and under Last Post it will say never (which sucks ). But, with my hack, it just asks guests to either login or register when viewing a thread and still shows all the right numbers
Instructions Open archive/index.php and find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Show Your Support
|
Comments |
#107
|
|||
|
|||
Ooops! I fill silly! :speechless:
Loged in, and its ok. Thanks Gary |
#108
|
|||
|
|||
is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?
|
#109
|
||||
|
||||
Quote:
PHP Code:
|
#110
|
|||
|
|||
For the showthread.php edit, instead of the normal text, my file says:
PHP Code:
Any help is appreciated. Thanks. |
#111
|
|||
|
|||
Hi all!
This seems to still block the MSN spider. I want him to be able to browse my site with his friends. How can I do this? Thank you |
#112
|
|||
|
|||
Nevermind. It works perfect now that I figured it out.
|
#113
|
||||
|
||||
Hi,
makes it sense to expand the spider and bot line to other names like Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|googlebot)#si", $_SERVER['HTTP_USER_AGENT'])) |
#114
|
||||
|
||||
If you are using vbindex just change the following to prevent showing the preview on mouse over threadtitle of lastest threads for unregistered people.
find in Template vbindex_latestthreadbit : PHP Code:
PHP Code:
|
#115
|
||||
|
||||
I am feeling really stupid cos i cant get this hack to work: my postcount remains at 0 at all forums. I am using another (finnish) language at my site here , but that cant be causing it, can it?
Any ideas? Using VB 3.01 |
#116
|
||||
|
||||
Nice hack! I hope this has the intended effect that I desire to have happen, to decrease lurking as unregistered and convert (at least spme of) them to registered users on my small board. Thanks.
|
#117
|
|||
|
|||
BUMP. So where are the smart hackers? I still have not received an answer to my question. How do I make sure MSN has access to my archives as well? And if you want to throw in Jeeves or any other good ones please go ahead!
Thanks! |
#118
|
||||
|
||||
Hi Streetjob,
I use the hack with the line I wrote few postings before Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|googlebot)#si", $_SERVER['HTTP_USER_AGENT'])) |
#119
|
||||
|
||||
Another question to all,
Is it possible to show unregistered guest a message which show that they have to register to read threads when they are in the archive ? At the moment the archive shows a blank screen for the guest. any idea to fix this ? |
#120
|
||||
|
||||
Okay, i fixed it with this change.
find in /archive/index.php: PHP Code:
PHP Code:
|
#121
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|