![]() |
a postbit mod
Hi,
I would like to implement a postbit mod, which reads posters custom field which has a date and calculates the number of years that has elapsed since the date. Then uses this year number to add a specific image to postbit_legacy template (e.g. if number of years is 3, the image is image_3.png). I found out how to add an image which uses custom field to the template, but don't know how to do the "number of years" calculations and what would be proper way to implement this. Can anyone point me to right direction? Thanks, Jarkko |
Most dates are stored in unixdate format. vbulletin has a variable NOW() which is the current date/time. So, just subtract the two and then convert (look up vbdate in the API maybe?).
|
All times are GMT. The time now is 07:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|