The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
If you don't want to touch Usergroups:
Code:
<if condition="$post['joindate'] + 31536000 < TIMENOW"> Put your stuff here </if> |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
It does?
|
|
#5
|
|||
|
|||
|
Quick fix:
<if condition="$post['joindate'] + 31536000 <= TIMENOW"> Rather than: <if condition="$post['joindate'] + 31536000 < TIMENOW">
|
|
#6
|
||||
|
||||
|
Uh, yes - my Code doesn't comply with the request.
If this 1 second is that important
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
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> |
|
#10
|
|||
|
|||
|
Quote:
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"> </if> Any ideas? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|