Back to vBulletin 3.0 Template Modifications

Anniversary Awards
Mod Version: 1.00, by MrNase

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 19
Released: 16 Oct 2004 Last Update: Never Downloads: 0
Not Supported  

This mod is based on something Smoker did for his community at http://www.smokers-board.de

To see what it does you should read this http://www.vbulletin.org/forum/showthread.php?p=562842 at vbulletin.org

This hack will add +1 star for every year a user is registered. If you have users which are registered for 1 year they will have 1 star next to their username.. Users who are registered for 4 years will have 4 stars and so on.

Here are the instructions and Iam sorry I can't post them as a *.txt but I need this thread to explain how everything works.

Edit your template „postbit“ and find:

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

Now add under that:
<if condition="$jointime > 1825"><img src="$stylevar[imgdir_misc]/star.gif" /></if>
<if condition="$jointime > 1460"><img src="$stylevar[imgdir_misc]/star.gif" /></if>
<if condition="$jointime > 1095"><img src="$stylevar[imgdir_misc]/star.gif" /></if>
<if condition="$jointime > 730"><img src="$stylevar[imgdir_misc]/star.gif" /></if>
<if condition="$jointime > 365"><img src="$stylevar[imgdir_misc]/star.gif" /></if>

Save it.
Now you just have to upload the attached image to images/misc and you should be fine.

Explanation:
$jointime holds the days a user is registered. A simple example for a user who registered for more than a year (in this case 377 days):
<if condition="377 > 365"><img src="$stylevar[imgdir_misc]/star.gif"></if>

This condition is true (377 is larger than 365) and he gets one star
Same if he is registered for more than 3 years (let's say 1099 days):
<if condition="1099 > 1095"><img src="$stylevar[imgdir_misc]/star.gif"></if>
<if condition="1099 > 730"><img src="$stylevar[imgdir_misc]/star.gif"></if>
<if condition="1099 > 365"><img src="$stylevar[imgdir_misc]/star.gif"></if>

In that case all three conditions are true and he gets 3 stars Simple isn't it?

You may even use different images like a blue star for the third year, a red one for the second year and so on.

Have fun and don't forget -> Smoker did most of the work

Download

No files for download.

Screenshots

Similar Mods

*Post Awards* Simple Postbit and Memberinfo awards manually given thru User Options vBulletin 3.5 Template Modifications
Add-On for Awards/Medals/Cards Hack: Add bigger image for awards vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024