Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2005, 06:29 PM
TrickyD TrickyD is offline
 
Join Date: Oct 2003
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Profile Mod Request: Badge for join date over 1/yr

I'd like to add a simple badge image with something simple like "Vet" for all members of my forum who have been a member 365 days or longer.

I assume this is something that isn't all that complicated, but since I'm definitely no coder I am hoping you guys can help.

Could I use a simple If statement inside the Postbit that would say...

If user X join date is greater than days Y then display image Z

What variables would I be looking for here?

Unfortunatley the promotions system isn't an option for me on this because I'm already using it for something else.

Possible?

Actually I see that the search tool might have been my friend on this one...

https://vborg.vbsupport.ru/showthrea...mage+join+date

Is the if statement in that thread still valid for 3.5?
Reply With Quote
  #2  
Old 08-02-2005, 07:04 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't want to touch Usergroups:

Code:
<if condition="$post['joindate'] + 31536000 < TIMENOW">
Put your stuff here
</if>
Reply With Quote
  #3  
Old 08-02-2005, 08:02 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm...that will display the stars depending on who is viewing them dude.

*edit* And it doesn't seem to work for me. I get all users with the stars. Not just the ones with joindates over a year old.
Reply With Quote
  #4  
Old 08-02-2005, 08:05 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does?
Reply With Quote
  #5  
Old 08-02-2005, 08:10 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick fix:

<if condition="$post['joindate'] + 31536000 <= TIMENOW">

Rather than:

<if condition="$post['joindate'] + 31536000 < TIMENOW">

Reply With Quote
  #6  
Old 08-02-2005, 08:12 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh, yes - my Code doesn't comply with the request.

If this 1 second is that important
Reply With Quote
  #7  
Old 08-02-2005, 08:15 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
If this 1 second is that important
It is! One second per year for 60 years and you save a whole minute
Reply With Quote
  #8  
Old 08-02-2005, 08:45 PM
TrickyD TrickyD is offline
 
Join Date: Oct 2003
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Umm...that will display the stars depending on who is viewing them dude.

*edit* And it doesn't seem to work for me. I get all users with the stars. Not just the ones with joindates over a year old.
Same problem here. Any ideas guys?
Reply With Quote
  #9  
Old 08-02-2005, 09:05 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Naargh, joindate is formatted at that point
OK ... use the attached Plugin and

Code:
<if condition="$post['jd_dateline'] + 31536000 <= TIMENOW">
Put your stuff here
</if>
Attached Files
File Type: xml postbit_jddateline.xml (298 Bytes, 11 views)
Reply With Quote
  #10  
Old 08-03-2005, 12:09 AM
TrickyD TrickyD is offline
 
Join Date: Oct 2003
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Naargh, joindate is formatted at that point
OK ... use the attached Plugin and

Code:
<if condition="$post['jd_dateline'] + 31536000 <= TIMENOW">
Put your stuff here
</if>
Thanks again for the help on this thus far! I want to do one last thing with this, can anyone offer anymore help?

I want to also display a specific Icon for users who average more than X number of posts per day.

I tried

Code:
<if condition="$post['x_posts_per_day'] > 10">
<img border="0" src="http://www.utopiafootball.com/images/pridestickers/post+++++_2.gif" alt="Post +++++" vspace="1">&nbsp;&nbsp;
</if>
But that wasn't right.

Any ideas?
Reply With Quote
Reply


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 05:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05810 seconds
  • Memory Usage 2,274KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete