Log in

View Full Version : messing around with permissions


auto
05-25-2001, 12:45 AM
This is not really a hack, so I won't put it in the requests forum.

My site has been eating up a lot of bandwidth as it keeps growing. Right now its over 20 gigs per month and site is not even 6 months old :)
I have no problem with my members eating up bandwidth, but Guests... um NO :D
So here's my idea:

Allow Guests to view
Forum home- http://64.21.152.50/vbulletin/index.php ,
the forum structure- e.g. http://64.21.152.50/vbulletin/forumdisplay.php?s=&forumid=714 ,
and thread titles- e.g. http://64.21.152.50/vbulletin/forumdisplay.php?s=&forumid=666 ,
BUT not the threads themselves- e.g. http://64.21.152.50/vbulletin/showthread.php?s=&threadid=2591

How can this be accomplished?

thanks,

The Snake
05-25-2001, 06:34 AM
just set guest permissions in Control Panel

auto
05-25-2001, 01:02 PM
Um.... nope :)
That would block out the whole message board, not just the actual threads.

The Snake
05-25-2001, 04:20 PM
Go to Usergroups and Permissions - Modify and look for the following:

Viewing Permissions
Can view board Yes No
Can view members info (including other's profiles and members list) Yes No
Can view others' threads Yes No

now if you set the first to Yes and the 3rd to No, and also don't allow them to post threads let them view the whole forum, except the content of the thread.

auto
05-25-2001, 07:28 PM
I've already tried that, and if you do that, it says "No posts in the last 1000 days," instead I want it to say that you have to login to view the posts.

The Snake
05-26-2001, 06:02 AM
I give up then, sorry :rolleyes:

JamesUS
05-26-2001, 06:56 AM
In showthread.php, find this line:

require("global.php");

Underneath it, put this:

if (!$bbuserinfo[userid]) {
error_nopermission();
}


Not tested but should be fine :)

auto
05-26-2001, 03:55 PM
James, when I did that, when I was logged in nothing changed, but when I logged out and tried viewing a thread it gave me this error:

Fatal error: Call to undefined function: error_nopermission() in /home/bokkie/public_html/vbulletin/showthread.php on line 12

So something is wrong :(

auto
05-27-2001, 03:47 PM
anybody?:(