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 |
#122
|
||||
|
||||
There is still a problem if your vB is closed for guest and a user registers at the forum without click on the activation eMail, he can still read threads in the forum!
I found the solution for one usergroupID in the thread. PHP Code:
PHP Code:
|
#123
|
|||
|
|||
Is there a link explaining how to how to do this via a template?
Quote:
|
#124
|
|||
|
|||
I've gotten all turned around in this thread, I'm wondering if someone can help me please?
I have one forum that I don't want ANYONE to see in any way (through searches, archives, nothing) unless they have special permission (admin or access masking). One forum that I want registered members to have access to, and guests at least be able to see that there ARE threads in there, just not be able to view the actual threads. And one forum that I want guests to be able to participate in. So basically, I want the "can't view at all" AND the "open" options... pain in the rear, aren't I? |
#125
|
|||
|
|||
Quote:
|
#126
|
||||
|
||||
Quote:
Of course i did not change the permissions for unregistered guests, i assumed they should see the posts automatically after applying this hack. But since i had not given them rights to view the forum topics, i could not get this to work at all. But now that i changed the forum rights settings they are allowed to see the topics, i get the right number of posts for them as well. (But they still cant read the threads, only view them, as it was meant too). |
#127
|
|||
|
|||
Nice hack and all, but I just did it this way:
PHP Code:
|
#128
|
||||
|
||||
Is there any way to tie in the $vboptions[spiderstrings] array into the spider-list - ???
|
#129
|
|||
|
|||
nice hack thanx =]
|
#130
|
|||
|
|||
I'm using this to keep out some determined fools on my site. For the benefit of anyone else who may be doing this, make sure you follow similar instructions as described in post #1 of this thread and apply the change to the following files in the same place:
As a result, all pages that I changed had a longer line added to them to cover all the appropriate usergroups: Code:
if (($bbuserinfo['userid'] == 0 or $bbuserinfo['usergroupid'] == 1 or $bbuserinfo['usergroupid'] == 3 or $bbuserinfo['usergroupid'] == 4) AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT'])) { print_no_permission(); } Of course, this all depends on your motives for keeping people out. Threads in our board are private so this was appropriate for us |
#131
|
|||
|
|||
nice hack can google still index archives?
|
#132
|
|||
|
|||
Anyone knows how get this work with 3.0.1?
(Showthread.php does not containt this code: Code:
globalize($_REQUEST, array('perpage' => INT, 'pagenumber', 'highlight' => STR, 'goto')); |
#133
|
|||
|
|||
Quote:
If anyone can find a fix, please post it!!! Thanks in advance. This is a very useful hack. I don't know why this feature is not default in vB3. Plain s2pid!!!!!!!!! |
#134
|
|||
|
|||
Google for some reason has stop indexing my site after I blocked the archives from being viewed by non members. The purpose of the archive is has nothing to do with archiving but instead it's work around to make vb3 search-engine-friendly. So the solution would be to uninstall the hack from archive and remove the archive link in the footer?
|
#135
|
||||
|
||||
Quote:
Code:
$grouparray = array ( 3,4); if (in_array($bbuserinfo['usergroupid'],$grouparray) OR $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'])) { echo "<center><font face=verdana, arial, helvetica size=3>You are not allowed to show our archive.<br><br>Your have to <a href=\"$vboptions[bburl]/register.php?\">register</a> first at $vboptions[bbtitle] to show threads in our forums.<br><br>If you are registered at our forum it could be that you are not logged in our your account must first be checked and enabled from an Administrator.</font></center>\n<hr />\n"; print_no_permission(); } For my Board Google is idexing all threads in archive and it works great |
#136
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|