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 |
#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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|