Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Defined Date & Time Format Display Details »»
User Defined Date & Time Format Display
Version: 1.0.0, by eoc_Jason eoc_Jason is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-02-2005 Last Update: Never Installs: 40
Uses Plugins
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-10-2006, 03:11 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You EXACTLY What I Needed....
Reply With Quote
  #13  
Old 04-13-2006, 10:59 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #14  
Old 01-07-2007, 10:55 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, thanks!

FYI, I've just installed it on 3.6.4 without any issues.
Reply With Quote
  #15  
Old 02-10-2007, 08:09 PM
molieman's Avatar
molieman molieman is offline
 
Join Date: Oct 2006
Location: Ocala, FL
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply With Quote
  #16  
Old 02-11-2007, 02:47 PM
molieman's Avatar
molieman molieman is offline
 
Join Date: Oct 2006
Location: Ocala, FL
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 02-17-2007, 10:38 PM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

delete
Reply With Quote
  #18  
Old 02-19-2008, 02:42 PM
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking for this for 3.6.8 and 3.7.x or a confirmation that it's working in 3.6.8
Reply With Quote
  #19  
Old 06-29-2008, 08:46 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #20  
Old 10-30-2008, 07:45 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Quote:
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
  #21  
Old 05-03-2009, 06:46 AM
visitangeles visitangeles is offline
 
Join Date: Feb 2009
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply


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

Forum Jump


All times are GMT. The time now is 09:50 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
  • Page Generation 0.08339 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete