The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin If Tag?
on a page, how do I add an if for example
I want members to see a image saying staff only. but staff seeing a page with lets say a movie. |
#2
|
|||
|
|||
If you're writing a php script, you can use something like:
Code:
if (!is_member_of($vbulletin->userinfo, 1, 2, 3) { // display no permission } else { // display movie } If you're using a template you can do something like: Code:
<vb:if condition="!is_memebr_of($bbuserinfo, 1, 2, 3)"> Members only. <vb:else /> Movie </vb:if> |
#3
|
|||
|
|||
neither are working on Logicians WebTemplates :/
--------------- Added [DATE]1375557503[/DATE] at [TIME]1375557503[/TIME] --------------- bump |
#4
|
|||
|
|||
Sorry, I don't know what Logicians WebTemplates is. The second thing I posted will only work in a vbulletin template.
The first is php code so it will work if you're writing your own php script. Does WebTemplates allow you to insert php code? Then something like the above might work if you're including the vbulletin files (like global.php). Of course you'd have to change the 1, 2, 3 in my examples to the actual usergroups you want. |
#5
|
|||
|
|||
anyway of HTML ?
|
#6
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=289090" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=289090</a>
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|