The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Trying To Grasp Time/Date Within TimeFrame
I'm working on a mod...and I'm stuck at a probably simple theory.
I have these expiration threads...and some of them are set to expire on certain days. What I essentially want to do is, if today is within 3 days of that expiration date, I want it to change a color. Now I'm not worried about the color change, but just the theory of how to write this code. PHP Code:
I'm stuck there, and I'm probably way off...but if a thread is going to expire within 3 days for example.. I want it to do something. Can anyone somewhat help me out here? The $thread['thread_expiry'] is already a defined variable and has the timestamp of the expiration |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|