![]() |
Code:
if ($bbuserinfo['userid'] == 0 and $forumid != X) Quote:
Usergroup (id:9) are the only members that should have access to these pages, how can I modify this code to enable this feature? Thankyou. |
Ok, after scanning back through all the replies to this thread I finaly sussed it also added something else on ;)
This code stops guests (ID:0) and registered users (ID:2) from accesing the non-vb pages but with let the 'Premium Member' group (ID:9) walk right in. For the users who aren't allwowed in a custom notice will appear telling the user to subscribe to access these areas. https://vborg.vbsupport.ru/showthrea...threadid=93253 Thanks greg and all who replied here. |
awesome, works on 3.07!
|
Works on 3.5.x?
|
thanks a lot
i will try to get this installed when i get home |
great hack!
i have a question as far as spiders go: i have Kanoodle and TargetPoint ads on my board. after installing this hack, the TargetPoint ads (in threads) still show up, but the Kanoodle ads do not (because you now need to be logged in to view threads, etc.). is there something i can add to this line in order to allow the Kanoodle ads in? PHP Code:
|
Quote:
|
I got it to work with 3.5, but it took a couple modifications. The code that you paste in showthread should now be
Code:
if ($vbulletin->userinfo['userid'] == 0 AND !preg_match("#(googlebot|slurp@inktomi|yahoo! slurp|lycos|ask jeeves|scooter|fast-webcrawler|turntinbot|msnbot|webcrawler|Infoseek|W3C_Val|Googlebot)#si", $_SERVER['HTTP_USER_AGENT'])) // ################################################## ##################### // ######################## START MAIN SCRIPT ############################ // ################################################## ##################### |
Quote:
|
and how is this a feature in the system already? The stock system doesn't allow search engine spiders while blocking guests.
|
All times are GMT. The time now is 06:59 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|