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 |
#82
|
|||
|
|||
Very easy to install, this hack is a big improvement in showing that the board is indeed active yet keeps the posts locked to unregistered guests. I like it.
BTW, for those that might be interested, I installed this on vB 3.0.0 Gold without any problems. You can check it out at predsff.com/forums |
#83
|
|||
|
|||
I really like this however I'd like to see it work on select forums only... can that be done?
|
#84
|
||||
|
||||
Quote:
PHP Code:
|
#85
|
|||
|
|||
Does work for me.
|
#86
|
|||
|
|||
ok it works now :-\
|
#87
|
||||
|
||||
Quote:
|
#88
|
|||
|
|||
Quote:
PHP Code:
|
#89
|
|||
|
|||
Fantastic!
Clicks Install...... This should`ve been in from scratch |
#90
|
|||
|
|||
Quote:
|
#91
|
||||
|
||||
Quote:
|
#92
|
|||
|
|||
Hmm, for some reason that didn't work... should it be AND $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X OR $forumid == X ???
Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']) AND $forumid == 78 AND $forumid == 111 AND $forumid == 108 AND $forumid == 141 AND $forumid == 110 AND $forumid == 129 AND $forumid == 109 AND $forumid == 112 AND $forumid == 150 AND $forumid == 151 AND $forumid == 152 AND $forumid == 153 AND $forumid == 154 AND $forumid == 155 AND $forumid == 156 AND $forumid == 157) { print_no_permission(); } |
#93
|
|||
|
|||
Yep that was it... I changed the AND to OR and it works now. Thanks!
|
#94
|
||||
|
||||
Quote:
|
#95
|
||||
|
||||
Quote:
|
#96
|
||||
|
||||
i thought of another question is this/can this be used to just "override the visiable but must be registered to view threads" option or is it all hardcoded?
the reason i ask is because i don't want unactive usergroups viewing the threads either. |
#97
|
|||
|
|||
Well the above worked great to tell a guest they needed to login but when I'm logged in even as an admin I get the error:
you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. |
#98
|
|||
|
|||
Great Hack. Thx
|
#99
|
|||
|
|||
Great Hack Gary,
I have a question. With non apache servers the archive is disabled. What is the implecation with this and spiders. |
#100
|
||||
|
||||
Quote:
|
#101
|
|||
|
|||
Quote:
I probably worded it wrongly. The hack by the way works perfectly. It should be the default setup IMHO. Cheers. |
#102
|
|||
|
|||
Quote:
Yes! I have just noticed this too and thought it was just a problem with Vbulletin itself until I cam across your discovery and after testing your right. Is there any chance of this getting fixed or a work around? |
#103
|
|||
|
|||
Is there a simple way to just make it show a ? or - when the postcount is zero?
|
#104
|
|||
|
|||
Awesome! Thx!
|
#105
|
|||
|
|||
Hi. When i browse into archive/index.php i get a blank white page.
If i understood correctly, i insert right after this code: $title .= ' - ' . $foruminfo['title']; } else { $do = 'index'; } This code: if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT'])) { print_no_permission(); } What might have gone wrong? :ermm: |
#106
|
||||
|
||||
Are you logged in?
|
#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:
|