Log in

View Full Version : Donators been regonised


Lighting90
03-07-2007, 07:34 PM
Excuse my spelling mistakes... just in case their is any, but here goes...

We use to have a tech guy who did a modification where when some one donated, they received a gold star in the post bit just under their avatar, so everyone knew they had donated...

Unluckily for us, our tech guy no longer has the time to help us and we lost the mod when the forum was upgraded to the latest version of vB.

Is their anyone out there who could assist with the code required to do this for us...

No doubt it is very simple, just looking for the donate user group and then showing a star, or what ever picture of your choice... others may find it useful too...

manofphat
03-07-2007, 08:25 PM
Here's what I have setup in my forum. I hope you find it useful:

In your postbit template find

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

Below this, add:

<if condition="is_member_of($post, USERGROUPID)">
<a href="/forum/payments.php"><img src="YOUR IMAGE PATH" alt="Contributor" style="border-style:none" /></a>
</if>

Be sure that you replace USERGROUPID and YOUR IMAGE PATH.

Good luck!

Lighting90
03-07-2007, 09:08 PM
Many thanks, will give it a try...

Is there any restriction in size of the image in this area... (currently created an image of 25 x25 pixels... )

manofphat
03-07-2007, 09:49 PM
Is there any restriction in size of the image in this area... x25 pixels... )

No man. But keep them small or it makes your forum look bad ;)