The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hide button post thanks
Good, I wish you can help me with the following I'm trying to hide the post thank button postbit_legacy to certain user groups and certain forums using conditional, but can not get it to work, and treated with the following sentence but I disappears the button at all forums.
Code:
<vb:if condition="!is_member_of($bbuserinfo, X,Y)"> {vb:raw template_hook.postbit_controls} //Do not show X, Y <vb:elseif condition="$forum[forumid] != x" /> {vb:raw template_hook.postbit_controls} //Do not show in X forum <vb:else /> {vb:raw template_hook.postbit_controls} //Show all groups and in all other forums </vb:if> Thank you. |
#2
|
||||
|
||||
I think what you want is:
HTML Code:
<vb:if condition="!is_member_of($bbuserinfo, X,Y) AND $forum[forumid] != x"> {vb:raw template_hook.postbit_controls} </vb:if> |
Благодарность от: | ||
4ngeluxpunk |
#3
|
||||
|
||||
Quote:
Thank you very much for the prompt reply, I have also tested this conditional but put me away button post thanks in all categories and/or forums. |
#4
|
||||
|
||||
Okay, try replacing $forum[forumid] with $forum['forumid'].
|
#5
|
||||
|
||||
Similarly post thanks button is not displayed in other categories and/or forums.
|
#6
|
||||
|
||||
You might need to enclose the x in quotes.
Code:
<vb:if condition="is_member_of($bbuserinfo, X,Y) AND $forum['forumid'] != 'x'"> {vb:raw template_hook.postbit_controls} </vb:if> |
#7
|
||||
|
||||
Quote:
And if we take it otherwise, that user groups X, Y button to display the post in all forums thanks least X forum, would it? Code:
<vb:if condition="is_member_of($bbuserinfo, X,Y) AND $forum['forumid'], array(1,2,3)"> {vb:raw template_hook.postbit_controls} </vb:if> |
#8
|
||||
|
||||
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo, X,Y) AND in_array($forum['forumid'], array(1,2,3))"> {vb:raw template_hook.postbit_controls} </vb:if> |
#9
|
||||
|
||||
Nothing with that run, believe it like that I use is the Theme Seamus?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|