The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Thread Starter Conditional?
I want to make it so that only thread starters and admins can see a thread in a particular forum. Not sure of the correct conditional usage for this though.
Can anyone assist me on this one? |
#2
|
||||
|
||||
It's a built in vbulletin setting. No need to use conditionals.
|
#3
|
|||
|
|||
Maybe i've missed the setting you're referring to - i've set forum permissions so that all regular users cannot "view others' threads" or "reply to others' threads" and this stops people viewing the actual thread content. However, i can still see the full list of threads in forumdisplay.
Is there a way to only let a user see the threads they have started in forumdisplay ($threadbits) and no others? I originally tried it using: Code:
<if condition="$foruminfo[forumid] == 'x'"> <if condition="$threadinfo['postuserid'] == $bbuserinfo['userid'] && $threadinfo['firstpostid'] = $bbuserinfo['userid']"> $threadbits </if> <else /> $threadbits </if> |
#4
|
|||
|
|||
wouldn't you be able to get the if's off the postbit and copy them to the threadbit?
|
#5
|
|||
|
|||
Like what amykhar said, what you're trying to achieve can be done without any template/conditionals editing. I already have set a forum on my forum where members can only see/reply to their own threads without being able to see other threads by other memebrs on the same forum.
To do this, you need to edit the desired usergroup (mostly registered users) permissions. Follow the steps: AdminCP -> Forums & Moderators -> Forum Permissions. Locate the forum you want to edit permissions for, then click on [Edit] next to the appropriate usergroup. Then modify the forum permissions as follows: Forum Viewing Permissions Can View Forum: Yes Can View Thread Content: Yes Can View Others' Threads: No Post / Thread Permissions Can Post Threads: Yes Can Reply to Own Threads: Yes Can Reply to Others' Threads: No All the other values wouldn't affect the principal goal, so you're free to edit them as you like. |
#6
|
|||
|
|||
Thanks guys - turned out to be my error. I'd got all the permissions set up, but forgotten that the "registered user" i was using for testing had an overriding access mask on that particular sub-forum, thus making all my testing useless. Works fine now of course.
I'd still be interested in that conditional though, just out of curiosity. EDIT: Code:
<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] = $bbuserinfo['userid']"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|