PDA

View Full Version : Show threads but disallow reading posts


bart
21 Apr 2001, 23:33
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
22 Apr 2001, 09:59
Great Idea! Would love to see this hack :D

bart
24 Apr 2001, 08:59
Think I came up with a solution myself.

In forumdisplay.php search for:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Just below it add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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