The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, as the title basically says it all.
I want to setup quick reply to be used for only certain usergroups, and others won't even see the box there so they won't have to worry about complaining that they can't use it. I bet it'd be just a simple addition of some code, but after looking, there's alot of areas it could be in. Also, maybe not sure if I'd have to make quick reply where you don't have to click one of the quick reply links or vise versa??? So any help would be appreciated. Thank you. |
#2
|
||||
|
||||
![]()
well, this is very easy via using template conditions:
in showthread template: search for: PHP Code:
PHP Code:
Thanks Xenon for guiding me this. It's really useful, isn't it ? |
#3
|
|||
|
|||
![]()
Thanks for the reply. I'm still a little novice with coding so I'm sure I needed something else than I added.
I just seperated usergroups with commas, but that didn't work. Still all users were able to use quick reply. Here is the code I used: <if condition="is_member_of($post, 5,6,7,9)">$quickreply</if> |
#4
|
||||
|
||||
![]()
Unless you use the hack that merk made for mutiple ids in that code, it has to be 1 id per instamce. So you should have:
HTML Code:
<if condition="is_member_of($post, 5) OR is_member_of($post, 6) OR is_member_of($post, 7) OR is_member_of($post, 9)">$quickreply</if> |
#5
|
||||
|
||||
![]()
I'm newbie too. Template conditions are really funny. I'm sure you can't miss them dude.
Thanks Boofo for that, I haven't tried with multi usergroup. |
#6
|
|||
|
|||
![]()
Alright, went with that code and no change either.
Sorry for being such a pain this early in the morning. I have the code directly below $quickreply It needs to be BEFORE quickreply. ![]() |
#7
|
||||
|
||||
![]() Quote:
![]() <if condition="in_array(is_member_of($bbuserinfo, array(5,6,7,9)))">$quickreply</if> And note that post only works in the postbit, thus why we use bbuserinfo |
#8
|
||||
|
||||
![]()
what happened may I know ?
|
#9
|
||||
|
||||
![]()
No problem. Glad I could help.
![]() Check out merk's addition to this that makes it so you can use commas to separate the ids in 1 varaiable, like the above example: HTML Code:
<if condition="is_member_of($post, 5,6,7,9)">$quickreply</if> ![]() |
#10
|
||||
|
||||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|