PDA

View Full Version : [How to] Guests can see the first message of a thread but not answers


cclaerhout
19 Dec 2005, 22:48
For each thread opened, i don't want guests and some usergroups be able to see replies.

Result : i'm a guest looking a forum
I can see the first message of each thread, but i can't see any answer to it.

Is it possible to do that ; easily would be great :D

First edit :
On Vb.com, there is a little trick to do it with templates, but it would be better with a plugin system :D

http://www.vbulletin.com/forum/showpost.php?p=827751&postcount=4



Second edit :
P.S : the automerge function is not very convenient...


Here the solution i've found, but only with playing with conditionals in postbit template :



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



Now i only have to do the same thing with printthreadbit template to avoid user bypass this protection but unfortunately i have difficulties ; the post[postcount] variable doesn't work in this template.

If someones has a solution for this or a new option with hook system for what i've done above, i'm still interested :D