Version: 1.00, by MrNase
Developer Last Online: Sep 2010
Version: Unknown
Rating:
Released: 10-15-2004
Last Update: Never
Installs: 19
No support by the author.
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.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
This seems to work but everyone seems to be getting 5 stars in the messaging system. When I am reading a PM from someone, everyone has 5 stars under their name regardless of join date. Any suggestions? Thank in advance.
It's because the Plugin Code I supplied above is being used under 'postbit_display_start', which means the code is only being executed in the postbits.
You could try creating another hook with the same code using a location such as 'global_start' or 'private_showpm_start'.
It's because the Plugin Code I supplied above is being used under 'postbit_display_start', which means the code is only being executed in the postbits.
You could try creating another hook with the same code using a location such as 'global_start' or 'private_showpm_start'.
1st thanks for the post bit info, that worked like a charm
But neither of the above worked for fixing the PM's showing all stars available
If you still want the awards to show in Private Messages; it's possible that the problem is in the "jointime" variable -- $this->post['joindate'] -- $this->post should be corrected for use with Private Messages.
Ok above worked to atleast remove the stars from PM's, would rather none show then all lol ~ so thank you
Quote:
Originally Posted by acidburn0520
If you still want the awards to show in Private Messages; it's possible that the problem is in the "jointime" variable -- $this->post['joindate'] -- $this->post should be corrected for use with Private Messages.
Not sure if above will work or not, as I may just not know what to change it to
I tried $this->pm & $this->private as a plugin under "private_showpm_start" & no change - still showed all stars available in PM's.