Quote:
Originally Posted by Adam21
In your postbit at the place you wish
Code:
<div>
$vbphrase[vbimghost_myphotos]: (<a href="vbimghost.php?do=viewimages&id=$post[userid]">$post[vbimghost]</a>)
</div>
|
Hi Adam21,
Thanks for trying to help me out.
The code you've provided is already available as an extra with this Add-on and it works just fine.
However it also shows the text 'My photo: (0)' when a user doesn't got any (public) photos at all!
I know my user and they wil complain and they would be right since this does not add anything at all, if you don't publish the photo's.
So, the issue is:
I want this specific text/code only shown/executed when this variabel ($post[vbimghost]) is actually more then zero!
I'm just having troubles writing a decent <if>-statement with this variable...consider me a semi-noob
Thanks so far...
--edit--
Nevermind:
<if condition="$post[vbimghost] > 0 "> did the trick....thanks...
PS: maybe this should be default in the add-on..