The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto-calculating by days (custom profile fields)
Is there a mod or does anyone know of a way to auto-update numerical values based on the number of days passed?
I'm trying to create two custom profile fields that reflect the age of a user's character, in both months and years, but the in character calendar is not based on real time, so one month would need to auto-updated every, say, 17 days. Any advice? |
#2
|
|||
|
|||
Well, you might be able to do it the same way that birthdays are done. That is, the birth date is stored then age is calculated using the current date and birth date. You don't have to use real dates for the "current" date. In fact if you're working with the same months as in real life you could probably fake the years if you wanted by adding/subtracting some constant before doing the calculations (otherwise the year will have to be between 1970 and 2034 for the date functions to work).
|
#3
|
|||
|
|||
Hmm. Okay, thanks.
Where would I find the code to modify the birthdays? I have absolutely no clue how to do any of that, but my friend does - we just need to know where to find it. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|