The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
This mod available? [Post restrictions user/forum ID]
I've used the search but could not find anything. Is this mod available: setting post restriction for a specific user ID and specific forum IDs so he can only post in one specific forum for example.
Ty |
#2
|
||||
|
||||
Just use if conditions in the header template
HTML Code:
<if condition="$vbulletin->userinfo['userid'] == x AND !in_array($forum['forumid'], array(1,2,3,4))"> IF I AM USER X AND I AM VIEWING A FORUM [B]NOT[/B] SHOWN IN THE ARRAY I CAN SEE THIS </if> |
#3
|
|||
|
|||
Thanks, I want them to still be able to read but not post.
I know this can probably be done with usergroups and forum permissions but that would be too much of a hassle in our case, so I was wondering if a simple mod for this exists. |
#4
|
||||
|
||||
You started out by saying "A user" but now you are talking about usergroups, search for CYB forum permissions, but to be honest you'd be better off going the permissions route with vb
|
#5
|
||||
|
||||
You could try writing in a plugin for that:
Product : vbulletin Hook Location: newreply_post_start Title : vijay's great plugin Execution Order: 5 should be ok Plugin PHP Code: PHP Code:
replace 1,2,3,4 with the members id and xx with the forum id. |
Благодарность от: | ||
dutchbb |
#6
|
|||
|
|||
Quote:
So there is no mod like this made? I'' try the above. Thanks vijayninel Hm tried it but does not work unfortunately. |
#7
|
||||
|
||||
@Vijay - Nice Title
--------------- Added [DATE]1343330965[/DATE] at [TIME]1343330965[/TIME] --------------- In which way doesn't it work? post the code exactly as you have used it. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|