![]() |
Id appreciate it if anyone could answer this..
ive just added this code in
Code:
<div>Style: <if condition="$post['styleid']==2"><a href="http://www.xample.com/forum/index.php?styleid=2">Blue</a></if></div> Style: in the postbit. i already have the style name and colour in, so i know its not that, can anyone tell me how to get it to recognise the default style? |
use an if as above but leave the end me it blank ie ' '
|
Quote:
Code:
<if condition="$post['styleid']=="><a href="http://www.example.com/forums/index.php?styleid=2">Blue</a></if></div> Code:
The following error occurred when attempting to evaluate this template: |
Code:
<if condition="$post['styleid']==''"><a href="http://www.example.com/forums/index.php?styleid=2">Blue</a></if> |
still no :(
im not missing something really obvious am i? like rebuilding update counters? |
HTML Code:
<div>Style: <if condition="$post['styleid']==2"><a href="http://www.xample.com/forum/index.php?styleid=2">Blue</a><else /><a href="http://www.xample.com/forum/index.php?styleid=1">Default</if></div> HTML Code:
<if condition="$post['styleid']==2"> |
thanks alot man thats working :)
thanks alot for your help, both of ye :) |
of course it is!
it's all about the if structure!!! Fastest form of flow controll in any environment! (I can't substantiate that) |
All times are GMT. The time now is 11:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|