PDA

View Full Version : Postbit - Adding Image/Awares to specific Users


Fulla
06-27-2009, 02:39 PM
I'm attempting to add an Award Image for a User who won a contest on my forum.
I've played around with postbit a little in the past & read quite a few tuts, so have a basic grasp of how it works.

Here's the current code I came up with, hoping I can get some help to complete it.
Is $username correct? Is this best way to insert an image?
<if condition="$username['Maledict Dominus']">
<div>
<a href="(Link to Contest Thread)"> <img src="(Link to Image)" border="0"/ ></a>
</div>
</if>

Here is an example, the dice image is an award icon, you can click on it, to be directed to the contest itself:
https://vborg.vbsupport.ru/external/2009/06/11.jpg

Thx for any help.

DragonBlade
06-27-2009, 02:57 PM
<if condition="$username['Maledict Dominus']"> Should be <if condition="$post['username'] == 'Maledict Dominus'"> if its in the postbit. :3

--------------- Added 1246118368 at 1246118368 ---------------

Oh, also...
<img src="(Link to Image)" border="0"/ >Switch the spacing at the end around a bit...<img src="(Link to Image)" border="0" />Not really sure if that will AFFECT anything, but I hate seeing it the former way. I will hurt you if you don't change it.

--------------- Added 1246118519 at 1246118519 ---------------

One MORE thing... You're probably well aware of this one, though, if you're adept at HTML. Add a title="(This Text Will Appear when Hovering Over The Award)" in the Image bit to get a bit more fancy. :3

Fulla
06-27-2009, 03:24 PM
Thx alot for help. I tried the following, but nothing happened at all!?!


<if condition="$post['username'] == 'Maledict Dominus'">
<div>
<a href="http://gamingcraft.net/forum/showthread.php?t=205"> <img src="http://www.gamingcraft.net/awards/diablo.jpg" border="0" /></a>
</div>
</if>


EDIT: Woops spelt name incorrectly, works fine now.

How do I add that title in sorry?

DragonBlade
06-27-2009, 03:27 PM
<img src="http://www.gamingcraft.net/awards/diablo.jpg" border="0" title="Whatever you want to put in the title" />

And great. :3