Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by markrt (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-15-2001 Last Update: Never Installs: 0
 
No support by the author.

Hi

Is it possible to have the date format displayed differently for users in other country's.

I need the users to be able to pick what format they want displayed, something like US format or the UK format to be checked in the "User settings"

Thanks
Mark

Show Your Support

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

Comments
  #2  
Old 09-15-2001, 06:22 AM
Prolex Prolex is offline
 
Join Date: Oct 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This feature is already implemented in vbulletin 2.0.3.

under USERCP > Edit Options
Reply With Quote
  #3  
Old 09-15-2001, 07:11 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I think he wants different date formats for each user, so a user from Israel could have day-month-year (like we use here).
Reply With Quote
  #4  
Old 09-15-2001, 11:45 AM
markrt
Guest
 
Posts: n/a
Default

Hi

As FireFly said:
I need different date formats for each user, so a user from the UK can have have "DD-MM-YY" and a user from the US can have "MM-DD-YY"

If there isn’t a hack for this perhaps I can make different styles for each Country? But where do I change the Date $’s.

Thanks
Mark
Reply With Quote
  #5  
Old 09-15-2001, 01:19 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Date and time formats can't be set per-style.
You can only change them in the contorl panel.

But this is a great idea, I'm sure someone will make it (not too hard at all).
Reply With Quote
  #6  
Old 09-15-2001, 02:06 PM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have a use for this hack, but if i get bored, im sure ill hack around for you

Good luck!
Reply With Quote
  #7  
Old 09-15-2001, 05:29 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, this is very very very easy to do.

Please give me a full list of date formats, and if you want also time formats to use.
I'll get it done in no time.
Reply With Quote
  #8  
Old 09-15-2001, 06:09 PM
ozone2000 ozone2000 is offline
 
Join Date: Nov 2001
Location: Denmark
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

date formats:
*=the 4 lettered word means that it should be shown in full length, that is if its YYYY, its 2001, but if its MMMM, it should be September, the same goes for DDDD, then it should show Saturday... etc, if you know what i mean.
---------------
The Month-Day-Year format:
---------------
MM.DD.YY
MMMM.DD.YY*
MMMM.DDDD.YY*
MMMM.DDDD.YYYY*
MM,DD,YY
MMMM,DD,YY*
MMMM,DDDD,YY*
MMMM,DDDD,YYYY*
MM-DD-YY
MMMM-DD-YY*
MMMM-DDDD-YY*
MMMM-DDDD-YYYY*
MM/DD/YY
MMMM/DD/YY*
MMMM/DDDD/YY*
MMMM/DDDD/YYYY*
MMDDYY
MMMMDDYY*
MMMMDDDDYY*
MMMMDDDDYYYY*
---------------
The Day-Month-Year format:
---------------
DD.MM.YY
DD.MMMM.YY*
DDDD.MMMM.YY*
DDDD.MMMM.YYYY*
DD,MM,YY
DD,MMMM,YY*
DDDD,MMMM,YY*
DDDD,MMMM,YYYY*
DD-MM-YY
DD-MMMM-YY*
DDDD-MMMM-YY*
DDDD-MMMM-YYYY*
DD/MM/YY
DD/MMMM/YY*
DDDD/MMMM/YY*
DDDD/MMMM/YYYY*
DDMMYY
DDMMMMYY*
DDDDMMMMYY*
DDDDMMMMYYYY*
---------------
The Year-Month-Day format:
---------------
YY.MM.DD
YY.MMMM.DD*
YY.MMMM.DDDD*
YYYY.MMMM.DDDD*
YY,MM,DD
YY,MMMM,DD*
YY,MMMM,DDDD*
YYYY,MMMM,DDDD*
YY-MM-DD
YY-MMMM-DD*
YY-MMMM-DDDD*
YYYY-MMMM-DDDD*
YY/MM/DD
YY/MMMM/DD*
YY/MMMM/DDDD*
YYYY/MMMM/DDDD*
MMDDYY
YYMMMMDD*
YYMMMMDDDD*
YYYYMMMMDDDD*
---------------




... i dont know if there is any other date formats, but these are the ones i know!
Reply With Quote
  #9  
Old 09-15-2001, 06:12 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you VERY much!
Reply With Quote
  #10  
Old 09-15-2001, 06:18 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually there are a lot more:
http://www.php.net/manual/en/function.date.php

You can use the day name, month name, etc.
I'll have to research more.
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 12:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04609 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (8)postbit_onlinestatus
  • (10)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete