vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   User Defined Date & Time Format Display (https://vborg.vbsupport.ru/showthread.php?t=97469)

eoc_Jason 10-02-2005 10:00 PM

User Defined Date & Time Format Display
 
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

Keyser S?ze 10-03-2005 05:49 PM

very neat hack my man, very nice, i got alot of users in the UK so they will appreciate this one

Sooner95 10-03-2005 06:38 PM

same here... thanks

MGM 10-04-2005 12:30 AM

I used this for 3.0.X, will use this for 3.5. Thanks.

MGM out

Boofo 10-04-2005 08:36 AM

I hate to ask, but a screenshot would be nice on this one. ;)

eoc_Jason 10-04-2005 05:51 PM

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.

csidlernet 10-05-2005 02:57 AM

Thanks lots!
/me install

JulianD 12-06-2005 02:29 PM

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!

eoc_Jason 12-06-2005 11:24 PM

You should be able to override that option too. Just folow the same methodology...

Quote:

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!


JulianD 12-07-2005 04:23 PM

Quote:

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.


All times are GMT. The time now is 02:21 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.03631 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete