The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can someone help me with this if condition
Quote:
This one I`am using right now, and it`s working almost perfect. But there is one fault. When I am posting a new reaction with the quick reply box. The first time it`s using the settings of 'showpost' (a smaller width what I`am using for private messages). But I need the settings of showthread when I am posting a quick reply. But when I refresh the page, then it`s good. Example: <if condition="in_array(THIS_SCRIPT, array('showthread', 'showpost'))"> <img src="blabla.gif" width="500px"> <else /> <img src="vbulletin.gif" width="300px"> </if>[/code][/quote] the second one with the width of 300px that`s disappear if I post a quick reply. But when I am refresh the page. Then the settings comes back to the 500px. but in a private message it`s working al good. Who can help me, sorry if you don`t understand it. |
#2
|
||||
|
||||
I'm not understanding something. You said it is using the settings for 'showpost' when you want it to use the settings fro 'showthread', yet your conditional statement says to use the same setting for both the 'showpost' and 'showthread' page.
|
#3
|
|||
|
|||
ok so that`s the problem. But that`s not what I want.
I want when you post a quickreply the width of the reply will be 500px and when I refresh the page it will also get a width off 500px. But when you read a pm I wanna a width of 300px. I have tried this: <if condition="in_array(THIS_SCRIPT, array('showthread', 'newreply', 'showpost'))"> but then it will work good on on a topic, also when I post a quick reply. But when I read a pm, it doesnt dissapear. :S |
#4
|
||||
|
||||
<if conditon="(THIS_SCRIPT == showthread) OR (THIS_SCRIPT == newreply) OR (THIS_SCRIPT == showpost)">
|
#5
|
|||
|
|||
have I put <else /> for each "OR".... ?
|
#6
|
||||
|
||||
Code:
<if conditon="(THIS_SCRIPT == showthread) OR (THIS_SCRIPT == newreply) OR (THIS_SCRIPT == showpost)"> this code will display on showthread, newreply and showpost pages <else /> This code will show every where else except those pages </if> |
#7
|
||||
|
||||
FYI, You are missing the single quotes around the script names.
There is nothing wrong with the original method ; HTML Code:
<if condition="in_array(THIS_SCRIPT, array('newreply','showthread', 'showpost'))"> DO SOMETHING <else /> DO SOMETHING ELSE </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|