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: Aug 2019 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

  #16  
Old 17 Feb 2007, 23:38
KrisP KrisP is offline
 
Join Date: Jun 2002
delete

Last edited by KrisP; 18 Feb 2007 at 00:27.
Reply With Quote
  #17  
Old 19 Feb 2008, 15:42
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Looking for this for 3.6.8 and 3.7.x or a confirmation that it's working in 3.6.8
__________________

http://www.aelyria.com
Reply With Quote
  #18  
Old 29 Jun 2008, 21:46
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Real name: Tom
It's working for me in 3.7.2 except for one thing, but I'm not sure if this is a new or old issue:

The time at the bottom of the forum index doesn't seem to be affected by this plugin.
Reply With Quote
  #19  
Old 30 Oct 2008, 20:45
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Plugin v. Product

In vB 3.7, I tried to install this as a product, but it will not install, giving a message to install as a plugin.

In the plugin manager, the following are required:

Product

Hook Location

This specifies the location within the vBulletin code of the hook that will fire this plugin function.

Title Enter a title that describes this plugin.

Execution Order

Use this field to enter the order in which code at the same hook will be executed.

Plugin PHP Code

Use this field to enter the PHP code that you would like to be run.
Could we get some instructions on the hook location in the vBulletin product?

Thanks!
Reply With Quote
  #20  
Old 03 May 2009, 07:46
visitangeles visitangeles is offline
 
Join Date: Feb 2009
User defined date and time format for 3.8x

Originally Posted by imported_silkroad View Post
In vB 3.7, I tried to install this as a product, but it will not install, giving a message to install as a plugin.

In the plugin manager, the following are required:



Could we get some instructions on the hook location in the vBulletin product?

Thanks!
has anyone figured out how to install this on 3.8x?
Reply With Quote
  #21  
Old 25 May 2009, 17:23
Dunhamzzz Dunhamzzz is offline
 
Join Date: Jul 2008
Real name: Matthew
I second the above post. Need a 3.8 version!
Reply With Quote
  #22  
Old 08 Sep 2009, 20:21
rsuplido rsuplido is offline
 
Join Date: May 2002
This will work on 3.8. Don't upload the XML. Just add the plugin directly using 'Add New Plugin' at the CP.

Product: vbuletin
Hook Location: global_start
Title: Custom Date & Time Formats
Execution Order: 5 - I don't know if this needs to be changed but 5 works fine on mine.
Plugin PHP Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Note that you still need to create the two user fields specified in the .txt file and change the 'fieldx' fields (I'm using field7 and field8 on mine) on the PHP Code (above) corresponding to the two field id's you have created.

Hope this helps.
Reply With Quote
  #23  
Old 29 Jun 2010, 18:43
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by Bhuwan View Post
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....
I've done this as well. Here is the code you need to use if you want to place the hook at fetch_userinfo:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Remember to change 14 and 15 to whatever your fields are.
Reply With Quote
  #24  
Old 16 Jul 2012, 01:48
Amaury Amaury is offline
 
Join Date: Nov 2011
Real name: Amaury
Is it possible to add more formats or allow users to put in their own custom format via the modification's options in the Admin CP, such as here?

Edit: This would be used on a forum running vBulletin 4.2.0, as seen by my signature, but KH99 said it should work.
__________________
I am a former vBulletin user and am no longer regularly active here.

KH-Flare moved to XenForo on January 1, 2014.

Last edited by Amaury; 16 Jul 2012 at 01:50. Reason: Note
Reply With Quote
  #25  
Old 16 Jul 2012, 02:32
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I guess I'll answer since the author hasn't been around in a while: You could add additional formats, since with this mod you have to manually create the custom profile fields anyway. You would need to add any additional formats to the custom profile field(s) and to the code in the plugin. (And in any case the plugin would probably need to be edited so that it's using the correct custom field numbers).

To allow a user to enter a custom setting you could create another profile field (or two, for date and time) that are text fields, then have each dropdown have an option for using the custom format. Then the plugin would have to check for the dropdown field being "Custom", and if so use the content of the text field as the format, like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #26  
Old 02 Sep 2012, 22:22
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Real name: Paul L
This is a very old MOD, and has never been modified since being posted. Never the less, in vBulletin Version 4.2.0 Patch Level 2 (currently), this 'feature' is lacking and many of our European members have lamented at this lack of what they feel, and I concur with, is an essential user setting.

I followed the instructions and had it setup within just a few minutes.

Marked as Installed, voted as Excellent, and nominated for MOTM.
__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | ZB BLOCK | StopForumSpam
Reply With Quote
  #27  
Old 09 Sep 2012, 00:37
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Real name: Paul L
Originally Posted by kh99 View Post
I guess I'll answer since the author hasn't been around in a while: You could add additional formats, since with this mod you have to manually create the custom profile fields anyway. You would need to add any additional formats to the custom profile field(s) and to the code in the plugin. (And in any case the plugin would probably need to be edited so that it's using the correct custom field numbers).

To allow a user to enter a custom setting you could create another profile field (or two, for date and time) that are text fields, then have each dropdown have an option for using the custom format. Then the plugin would have to check for the dropdown field being "Custom", and if so use the content of the text field as the format, like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This is how we modified the MOD:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | ZB BLOCK | StopForumSpam
Reply With Quote
  #28  
Old 06 May 2013, 14:51
fpgeeks fpgeeks is offline
 
Join Date: Feb 2010
Could someone please explain in simple, step by step instructions how to get this to work in 4.2.0?
Reply With Quote
  #29  
Old 15 Oct 2013, 16:25
fwulfers fwulfers is offline
 
Join Date: Aug 2010
Real name: Frank Wulfers
I used the original mod instructions and the user comments in this thread to write up complete instructions for vB4: http://www.vbulletin.org/forum/showthread.php?t=303431

Thanks to all who contributed in this thread, hope you don't mind.
__________________
Saab World
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:43.

Layout Options | Width: Wide Color: