vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Profile Mod Request: Badge for join date over 1/yr (https://vborg.vbsupport.ru/showthread.php?t=93474)

TrickyD 08-02-2005 06:29 PM

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?

Andreas 08-02-2005 07:04 PM

If you don't want to touch Usergroups:

Code:

<if condition="$post['joindate'] + 31536000 < TIMENOW">
Put your stuff here
</if>


kall 08-02-2005 08:02 PM

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.

Andreas 08-02-2005 08:05 PM

It does? ;)

akanevsky 08-02-2005 08:10 PM

Quick fix:

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

Rather than:

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

;)

Andreas 08-02-2005 08:12 PM

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

If this 1 second is that important ;)

akanevsky 08-02-2005 08:15 PM

Quote:

If this 1 second is that important
It is! One second per year for 60 years and you save a whole minute ;)

TrickyD 08-02-2005 08:45 PM

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?

Andreas 08-02-2005 09:05 PM

1 Attachment(s)
Naargh, joindate is formatted at that point :D
OK ... use the attached Plugin and

Code:

<if condition="$post['jd_dateline'] + 31536000 <= TIMENOW">
Put your stuff here
</if>


TrickyD 08-03-2005 12:09 AM

Quote:

Originally Posted by KirbyDE
Naargh, joindate is formatted at that point :D
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?


All times are GMT. The time now is 03: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.01032 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete