![]() |
|
|
Mod Options |
User Defined Date & Time Format Display Details »»
|
|||||||||||
|
User Defined Date & Time Format Display
Developer Last Online: Nov 2011
User Defined Date & Time Format Display
This is a simple add-in that allows your users to select a US / European date and time format. The "vB" way is supposed to be copying the languages and then setting defaults, but I find this as a much easier and cleaner alternative. Date Formats: - US Format - Expanded US Format - European Format - Expanded European Format Time Formats: - 12-Hour Time Format - 24-Hour Time Format Read the text file as you will need to create two additional user fields. The XML file will create the actual plugin, however it will need to be modified to match up with the two "just created" user fields. No further modifications are needed. All date / time displays will then be in whatever format the user chooses via their options. Image attached of UserCP Options. Setting these will globally change any date / time display on the forum (for that user). Changelog v1.0.0 - Initial Release Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
|||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Let users choose their own date and time format | Chen | vBulletin 2.x Full Releases | 31 | 09 Aug 2003 23:32 |
| Comments |
|
#2
|
||||
|
||||
|
very neat hack my man, very nice, i got alot of users in the UK so they will appreciate this one
No members have liked this post.
|
|
#3
|
|||
|
|||
|
same here... thanks
No members have liked this post.
|
|
#4
|
|||
|
|||
|
I used this for 3.0.X, will use this for 3.5. Thanks.
MGM out No members have liked this post.
|
|
#5
|
||||
|
||||
|
I hate to ask, but a screenshot would be nice on this one.
![]() No members have liked this post.
|
|
#6
|
||||
|
||||
|
Okay, posted a screenshot in the UserCP... Like I said before, all it does is change how the date / time is formatted on all the pages for the user.
__________________
My Site: EXTREME Overclocking Do not PM me with your iTrader problems or asking for the code. I will just delete your PM without reading it. No members have liked this post.
|
|
#7
|
|||
|
|||
|
Thanks lots!
/me install No members have liked this post.
|
|
#8
|
||||
|
||||
|
Would be nice to have an option for the user to select the Yesterday/Today mode or the detailed mode (1 minute ago, 1 hour ago, 1 day ago.. and so on).
Great hack!
__________________
Julian D. Muñoz No members have liked this post.
|
|
#9
|
||||
|
||||
|
You should be able to override that option too. Just folow the same methodology...
Originally Posted by JulianD
__________________
My Site: EXTREME Overclocking Do not PM me with your iTrader problems or asking for the code. I will just delete your PM without reading it. No members have liked this post.
|
|
#10
|
||||
|
||||
|
Originally Posted by eoc_Jason
Thanks Jason... Some users on my forums complained about the detailed mode so I wanted to give them the option to override this to another mode... I might take a look at your code later.
__________________
Julian D. Muñoz No members have liked this post.
|
|
#11
|
|||
|
|||
|
Thank You EXACTLY What I Needed....
No members have liked this post.
|
|
#12
|
||||
|
||||
|
Very nice...I've installed this...The only complaint I had was it wasn't doing the bottom portion of the time (All times are in GMT <> The time now is <>).
The reason is becuase that is calcualted BEFORE global_start is executed, so it takes the lang default...I solved this by changing the code a bit and moving it to fetch_userinfo.... No members have liked this post.
|
|
#13
|
||||
|
||||
|
Nice hack, thanks!
FYI, I've just installed it on 3.6.4 without any issues. No members have liked this post.
|
|
#14
|
||||
|
||||
Thanks in advance. Maybe it requires more of an explanation from me.... I installed it in 3.6.4 and it ain't working. Looked pretty straight forward, just want to make sure I'm not missing anything. Any guidance, will be appreciated ![]() No members have liked this post.
Last edited by molieman : 10 Feb 2007 at 23:41. Reason: More explanation needed? |
|
#15
|
||||
|
||||
|
Answered my own question. For those asking the same question....
########## Modify The Plugin Code ########## AdminCP -> Plugin Manager -> Plugin Manager Custom Date & Time Formats -> Edit In the PHP Code look for: // ############ Date Format as Uservalue ################ switch ($vbulletin->userinfo['field12']) { Change the 12 (next to field) to the field number matched to the User Profile Field (Field#) you created for "Date Format" Now look for: // ############ Time Format as Uservalue ################ switch ($vbulletin->userinfo['field13']) { Change the 13 (next to field) to the field number matched to the User Profile Field (Field#) you created for "Time Format" ----------------------------------------- Hope this helps ![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 21:59.






