Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
Anniversary Awards Details »»
Anniversary Awards
Version: 1.00, by MrNase MrNase is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

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.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-23-2005, 06:29 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 02-24-2005, 01:11 AM
shadiguy1 shadiguy1 is offline
 
Join Date: Jul 2004
Location: Delco,Pa
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so then just change the dates. i did mine to 3 months then 6 months then 1 year then 2 years then 3 years.
Reply With Quote
  #14  
Old 09-28-2005, 03:44 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #15  
Old 11-04-2005, 07:26 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to make this work with 3.5?
Reply With Quote
  #16  
Old 11-05-2005, 09:26 AM
Overlord Overlord is offline
 
Join Date: May 2002
Location: Australia
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was searching around for the very same thing.. the $jointime variable was obviously changed in 3.5
Reply With Quote
  #17  
Old 11-05-2005, 01:43 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Overlord
I was searching around for the very same thing.. the $jointime variable was obviously changed in 3.5
Yep, thats what I am trying to figure out now. Uggggh, help!
Reply With Quote
  #18  
Old 11-07-2005, 12:19 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dano
Yep, thats what I am trying to figure out now. Uggggh, help!
Anyone?
Reply With Quote
  #19  
Old 02-19-2006, 06:36 AM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone for 3.5
Reply With Quote
  #20  
Old 08-11-2006, 07:18 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just make a new plugin for 'postbit_display_start' with the following:
Code:
$jointime = (TIMENOW - $this->post['joindate']) / 86400;
Reply With Quote
  #21  
Old 09-20-2006, 12:39 AM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acidburn0520
Just make a new plugin for 'postbit_display_start' with the following:
Code:
$jointime = (TIMENOW - $this->post['joindate']) / 86400;
Thank you!!!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05149 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete