The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If condition for specific userid in postbit
I want to alter the postbit for specific userid's. For example for userid 1 i don't want to show number of posts. Not very good at the coding part even if i have an idea WHAT to do i don't know exactly HOW
|
#2
|
||||
|
||||
Code:
<if condition="$post[userid] != 1"> Stuff that should only be sown for User with Userid not 1 here </if> |
#3
|
|||
|
|||
great.. it worked... now this i can use to show stuff for specific user id... perfect...
what if i want something more like <if condition="$post[userid] = 1"> $vbphrase[posts] : Unlimited ELSE $vbphrase[posts] : $post[posts] </if> what's the statement for the else part? oh and.. what language are the templates written in? |
#4
|
||||
|
||||
Code:
<if condition="$post[userid] == 1"> Stuff to show for Userid 1 <else /> Stuff to show for other Userids </if> |
#5
|
|||
|
|||
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_STRING in /home/virtual/site29/fst/var/www/html/includes/adminfunctions_template.php(3098) : eval()'d code on line 71 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. and this is what caused the message Code:
<if condition="$post[userid] == 1> Posts Unlimited (line 71) <else /> Posts Some </if> |
#6
|
||||
|
||||
You missed the closing "
|
#7
|
|||
|
|||
GRRRRRRRRRRRRRRRRRRRRrrrrrrrrrreat Learned a lot tonight.... now let's kick some ass and use it purrfect 10x a million Kirby
if i want to put a specific usergroup i go like usergroupid .. what if i want to put multiple userid's? separate by comma's? something like Code:
<if condition="$post[userid] == 1,2,3> |
#8
|
||||
|
||||
Great help what would be the code to show only the postbit in a particular forum ?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|