The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change to date display
Hello,
Using the date display option through PHP of "dMy" I am getting 17Nov10 on my site. I would like to change this to display as 17NOV10 instead. On a previous forum I used, I made slight changes to a line similar to this: $txt['months_short'] = array(1 => 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); instead $txt['months_short'] = array(1 => 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', etc, etc This caused the forum to display the date with all capitalized 3 letter month. Any ideas on how I might go about this? I have been searching through vB4 files for a while now and have not found anything that includes these. Thank you much, James |
#2
|
||||
|
||||
vBulletin uses the php 'date' function to format the dates. Take a look at the options in vboptions > date & time settings.
http://us.php.net/manual/en/function.date.php |
#3
|
|||
|
|||
Hi Lynne, and thank you.
More information: My old forum also uses the php 'date' function, but it has a .php file that defines how the date (and other variables) are actually displayed on the page. The forum uses php date to pull "Nov" and then I changed the file to display it as "NOV" on the page. Essentially, I could write in the file and tell it how to display any of the months from what it got with php date. If I wanted it to display "Nov" as "The Eleventh Month of the Year" then I could write that in and it would. What I'm looking for is if a similar language definition exists within the vB4 build? Something like: 1 = January 2 = February ... that can be changed to 1 = JAN 2 = FEB Hope this makes sense! Thanks again, James |
#4
|
||||
|
||||
I took a quick look through the files and found several arrays defining "January", "February", etc. Use the find function in your text editor to search the upload directory and you should find them. I don't know, however, if changing them is what will do what you want.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|