PDA

View Full Version : Postbit IF Code



adamFTW
02-11-2007, 01:49 AM
I have this in my postbit, so if the user decides to add his/her username in the UK field, a UK flag will appear under their rep and will link to www.habbo.co.uk/home/the_username_he_she_specified (http://www.habbo.co.uk/home/the_username_he_she_specified) - But, it doesnt seem to be working, the images wont show up, nor do I think the link works correctly. Could anyone correct it for me?

+rep



<if condition="$post[field7]"><a href="www.habbo.com/home/$post[field7]"><img src="images/flags/US.gif"></a></if>

<if condition="$post[field8]"><a href="www.habbo.ca/home/$post[field8]"><img src="images/flags/CA.gif"></a></if>

<if condition="$post[field9]"><a href="www.habbo.co.uk/home/$post[field9]"><img src="images/flags/UK.gif"></a></if>

<if condition="$post[field10]"><a href="www.habbo.com.au/home/$post[field10]"><img src="images/flags/AU.gif"></a></if>

<if condition="$post[field11]"><a href="www.habbo.com.sg/home/$post[field11]"><img src="images/flags/SG.gif"></a></if>

Nli.
02-11-2007, 01:04 PM
remove condition? :S

:job2
02-11-2007, 03:48 PM
Have you linked it with the profile information? As in like are you sure it knows where to get the habbo name from

adamFTW
02-11-2007, 08:04 PM
Dont worry, I fixed it.

the wombats
02-11-2007, 08:06 PM
Well I looked straight at it and saw that you needed to add "http://" to the links.

Want to hide these adverts? Register an account for free!