![]() |
great job,
Install |
I read a few pages of this topic and I don't see my question answered.
It might be in the other pages but anyway here it is: Is there a way to let my guests see the News forum topics and not be able to open the others? |
installed
|
I've been playing around with this hack and MAY have come up with a forumula to allow spiders to still view threads while denying permission to guest. I am not a coder by trade so please check this code out and see if it works for you. I've been running it about 3-4 hours and it seems spider friendly on my site.
There are three files to change and one file to upload. archive/index.php includes/functions.php showthread.php Upload this file and place in your forum root directory and the archive directory. spiders.txt Open archive/index.php and find: Code:
$title .= ' - ' . $foruminfo['title']; Code:
if (restrict_guest($bbuserinfo['userid'])) Code:
globalize($_REQUEST, array('perpage' => INT, 'pagenumber', 'highlight' Code:
if (restrict_guest($bbuserinfo['userid'])) Code:
if ($bbuserinfo['userid'] == 0 or $bbuserinfo['usergroupid'] == 3) Code:
if ($bbuserinfo['userid'] == 0 or $bbuserinfo['usergroupid'] == 3 and Code:
if (!($forumperms & CANVIEWOTHERS) AND ($thread['postuserid'] != Code:
if (!($forumperms & CANVIEWOTHERS) AND ($thread['postuserid'] != Code:
?> Code:
function restrict_guest($user_id) |
Thanks Gary.
|
Yea I needed this, I was waiting for this!!
|
Quote:
I have installed this hack with gr8 results... my only problem is that i have a links partner section on the main forum itself... now what is happening is that when these link partners try to periodically locate their links in the forum they get the access denied message and they remove my links from their website. :( Just as we did with archive section... Can we also exclude a selected forum from being affected by this hack. i mean that single particular forum should available as usual to anyone and everyone without any restriction. Please guide me otherwise i am left with no option but to compromise on this hack. Regards |
before i install this, does it work with vb 3.0.3?
|
Quote:
Works on mine! See here, for a protected forum: http://www.allbowling.com/forum/forumdisplay.php?f=11 |
Quote:
I am just about to install this and just wanted to check what you were doing. |
All times are GMT. The time now is 12:24 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:
|