Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Defined Date & Time Format Display Details »»
User Defined Date & Time Format Display
Mod Version: 1.0.0, by eoc_Jason (Member) eoc_Jason is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (5 votes - 4.80 average) Installs: 40
Released: 03 Oct 2005 Last Update: Never Downloads: 150
Not Supported Uses Plugins  

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

Click image for larger version

Name:	Date_Time.gif
Views:	462
Size:	50.3 KB
ID:	35228

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
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  
Old 03 Oct 2005, 18:49
Keyser Söze's Avatar
Keyser Söze Keyser Söze is offline
 
Join Date: Apr 2002
very neat hack my man, very nice, i got alot of users in the UK so they will appreciate this one
Reply With Quote
  #3  
Old 03 Oct 2005, 19:38
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
same here... thanks
Reply With Quote
  #4  
Old 04 Oct 2005, 01:30
MGM MGM is offline
 
Join Date: Jan 2003
Real name: Bara
I used this for 3.0.X, will use this for 3.5. Thanks.

MGM out
Reply With Quote
  #5  
Old 04 Oct 2005, 09:36
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I hate to ask, but a screenshot would be nice on this one.
Reply With Quote
  #6  
Old 04 Oct 2005, 18:51
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
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.
Reply With Quote
  #7  
Old 05 Oct 2005, 03:57
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Real name: chad
Thanks lots!
/me install
Reply With Quote
  #8  
Old 06 Dec 2005, 15:29
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Real name: Julian Muñoz
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
Reply With Quote
  #9  
Old 07 Dec 2005, 00:24
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
You should be able to override that option too. Just folow the same methodology...

Originally Posted by JulianD
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!
__________________
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.
Reply With Quote
  #10  
Old 07 Dec 2005, 17:23
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Real name: Julian Muñoz
Originally Posted by eoc_Jason
You should be able to override that option too. Just folow the same methodology...
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
Reply With Quote
  #11  
Old 10 Apr 2006, 16:11
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Real name: Vex or Shadow Will do
Thank You EXACTLY What I Needed....
Reply With Quote
  #12  
Old 13 Apr 2006, 23:59
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Real name: Bhuwan
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....
Reply With Quote
  #13  
Old 07 Jan 2007, 11:55
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Real name: Tom
Nice hack, thanks!

FYI, I've just installed it on 3.6.4 without any issues.
Reply With Quote
  #14  
Old 10 Feb 2007, 21:09
molieman's Avatar
molieman molieman is offline
 
Join Date: Oct 2006
however it will need to be modified to match up with the two "just created" user fields.
Hi, could you be a bit more specific on what I need to do, regarding modified to match....

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
__________________
Matt Olieman
www.mycockpit.org

Last edited by molieman : 10 Feb 2007 at 23:41. Reason: More explanation needed?
Reply With Quote
  #15  
Old 11 Feb 2007, 15:47
molieman's Avatar
molieman molieman is offline
 
Join Date: Oct 2006
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
__________________
Matt Olieman
www.mycockpit.org
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:09.

Layout Options | Width: Wide Color: