The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Anniversary Awards Details »» | |||||||||||||||||||||||||
This mod is based on something Smoker did for his community at www.smokers-board.de
To see what it does you should read this thread 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 Show Your Support
|
Comments |
#12
|
||||
|
||||
I seen something like this on a board I visit but they do it differently, on the 6 month they give a light colored star then on a year a bright colors star. Year and a half a bright one and a light one...
Would it be hard to make this do that? |
#13
|
|||
|
|||
so then just change the dates. i did mine to 3 months then 6 months then 1 year then 2 years then 3 years.
|
#14
|
||||
|
||||
nice little mod... :banana:
i would like to know though i have this below and would like to know how i can automatically turn the 3 month star into the 6 month star then the 6th into the annual and after the annual it just ads the stars like to original code is desisgned for? Code:
<if condition="$jointime > 1825"><img src="$stylevar[imgdir_misc]/star.gif" alt="Anniversary Star"/></if> <if condition="$jointime > 1460"><img src="$stylevar[imgdir_misc]/star.gif" alt="Anniversary Star"/></if> <if condition="$jointime > 1095"><img src="$stylevar[imgdir_misc]/star.gif"alt="Anniversary Star" /></if> <if condition="$jointime > 730"><img src="$stylevar[imgdir_misc]/star.gif" alt="Anniversary Star"/></if> <if condition="$jointime > 365"><img src="$stylevar[imgdir_misc]/star.gif" alt="Anniversary Star"/></if> <if condition="$jointime > 183"><img src="$stylevar[imgdir_misc]/star2.gif" alt="6 Months Star"/></if> <if condition="$jointime > 92"><img src="$stylevar[imgdir_misc]/star3.gif"alt="3 Months Star"/></if> |
#15
|
|||
|
|||
Anyone know how to make this work with 3.5?
|
#16
|
|||
|
|||
I was searching around for the very same thing.. the $jointime variable was obviously changed in 3.5
|
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
Quote:
|
#19
|
||||
|
||||
anyone for 3.5
|
#20
|
||||
|
||||
Just make a new plugin for 'postbit_display_start' with the following:
Code:
$jointime = (TIMENOW - $this->post['joindate']) / 86400; |
#21
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|