The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can i do this code ?
I want to show my adv. in my forum. I want to this code but I want different one.
<if condition="$post[postcount] == 21"> I want to show my adv. in 21. , 31. ,41., 51..... but there is a lot of if cause. I want to 1 code to show a adv in *1, Thanks |
#2
|
||||
|
||||
did u try
<if condition="$post[postcount] == 21,31,41,51"> ?? |
#3
|
|||
|
|||
Parse error: syntax error, unexpected ',' in /home/abc/public_html/includes/adminfunctions_template.php(3596) : eval()'d code on line 150
|
#4
|
||||
|
||||
You cannot do that.
Try <if condition="$post[postcount] % 10 == 1"> |
#5
|
|||
|
|||
Thanks, really thanks
|
#6
|
||||
|
||||
Quote:
Just for my knowledge, can you please tell me how is the % interpreted in vBulletin code. I recently had another example % 2 . Does % means "after" X posts ? Thanks. Val. |
#7
|
|||
|
|||
worked ?
|
#8
|
|||
|
|||
[QUOTE=valdet;1407179]
Just for my knowledge, can you please tell me how is the % interpreted in vBulletin code./QUOTE] Its PHP not vBulletin Code. Arithmetic Operators |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|