The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to allow only ONE MEMBER to START THREADS on ONE of my sub forums?
Hi! (sorry for my poor english as it is not my main language...)
How do I set only ONE MEMBER (coule change in the future) to be able to START THREADS on a forum? I have THREE Sub-forums on one of my many categories and I want to set only ONE MEMBER per EACH of the three sub-forums to be able to start threads... How do I do it? Thank you so very much. :up: :up: |
#2
|
|||
|
|||
I haven't tried it, but I think this will work:
1) In the Usergroup Manager, create 3 new groups "based off of Registered Users", one for each of the forums. You don't need to change any of the permissions. 2) In Usergroups > Forum Permissions, for each forum where you want to control thread creation, click edit next to "Registered Users" and set "Can Post Threads" to No. Also do this for any other usergroups that shoudn't be able to create threads there. 3) Also in Usergroups > Forum Permissions, for each of your 3 forums, click the "Edit" link next to the usergroup you created for that forum, and set "Can Post Threads" to Yes. 4) In Users > Search for Users, find the "thread creating" user for each forum, and add the new usergroup for that forum to the user by clicking the check box in the "Additional Usergroups" section. The result will be that 3 users will each have 1 secondary usergroup that allows them to create threads in one forum. There may be a way to do this using access masks so that you wouldn't need the new usergroups, but I'd have to test that to know if it would work. |
#3
|
||||
|
||||
Thank you so very much for your help kh99!
Unfortunately, I forgot to say that I would not want to create a new usergroup for each user, just as you said: Quote:
There might be a way to do it without creating new user groups? Who has a clue? |
#4
|
|||
|
|||
I don't have time to try it right now, but what I was thinking was just to set "Can Post Threads" to No like i mentioned, then find (in the user manager) the user you want to grant permission to and choose "Edit Forum Permissions (Access Mask)" from the Quick User Links dropdown, and select "Yes" next to the forum where you want that user to be able to create threads. I really don't know if it will work or not. If it doesn't, then you may be stuck with usergroups or else writing a custom plugin.
|
#5
|
||||
|
||||
How many users? if it's only one or two then wrap the "New Thread" code in conditionals like this
find in forumdisplay HTML Code:
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow" class="newcontent_buttons">Start New Thread</a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> HTML Code:
<if condition="in_array($forum['forumid'], array(1,2,3))"> <!-- Show this to forum 1, 2 and 3 --> <if condition="$bbuserinfo['userid'] == 1"> <if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow" class="newcontent_buttons">Start New Thread</a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </if> <else /> <if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow" class="newcontent_buttons">Start New Thread</a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </if> EDIT: Never mind, i should learn to read, code now adjusted for vb3 |
#6
|
||||
|
||||
Wow dear Simon Lloyd! Thank you so very much. Will try it as soon as I get home...
I I want to allow "USER A" inside ONLY "FORUM 1", and then "USER B" ONLY inside "FORUM 2", I must use 2 (two) conditionals (one for each forum?) and probably should not use the array? Hummm... Sorry, (I'm not a good programmer) bu the array will do it for me, in the next 'IF', right? Or should I use another 'IF' to try to make a third conditional (for "USER C")? Thank you! |
#7
|
||||
|
||||
Any programmer out there to give a little help, please?
|
#8
|
||||
|
||||
Just repeat the IF statements for each forumid!
|
#9
|
||||
|
||||
Thank You!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|