PDA

View Full Version : Show threads but disallow reading posts


bart
04-21-2001, 10:33 PM
I would like to encourage guests to register, by showing them the threadslisting (the forumdiplay), but disallowing them to actually read the posts.

I hacked it for DCForum (which I currently use), and I would like to have it for vB, because it definetely works.

It would require a hack in the forumdisplay-file I think. All the threads would be displayed, but when someone clicks the thread or tries to post, he gets the 'no-permission-error' (this already happens).

DeathLoad
04-22-2001, 08:59 AM
Great Idea! Would love to see this hack :D

bart
04-24-2001, 07:59 AM
Think I came up with a solution myself.

In forumdisplay.php search for:


$limitothers="";


Just below it add:


$getperms[canviewothers] = "1";


Seems to work fine.

The access-masks are 'on', and I have the following usergroup-settings for the forum:
- can-view-board = yes
- can-view-others-threads = no