You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 54 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - The year is not showing in articles [fixed] [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Fri Feb 27, 2004 2:59 am Reply with quoteBack to top

Hi all,

I noticed that the year is not showing in articles, e.g.: http://www.luchtzak.be/article10.html is dated from 2002 but people might end up confused.. Confused

Does anyone of you know how to change the date-function so the year is also shown ?

all help welcome!

greetz,

Bart

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Fri Feb 27, 2004 3:57 am Reply with quoteBack to top

I've wanted to know to, but was too lazy to look into where $time is defined. I will poke around to see what can be found. Meanwhile, maybe someone more knowledgeable will offer some insight Smile.

The thing is, as this cms lasts more and more years, it will become more and more of an issue Wink.

g
Find all posts by gearView user's profileSend private messageVisit poster's website
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Fri Feb 27, 2004 4:36 am Reply with quoteBack to top

Hopefully we will have the answer soon Wink

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Fri Feb 27, 2004 4:39 am Reply with quoteBack to top

Go look at my site. If you like the date/time format that I use:

In language/lang-english.php:

Find:
Code:

define("_DATESTRING","%A, %B %d @ %T %Z");
define("_DATESTRING2","%A, %B %d");


Change to:
Code:

define("_DATESTRING","%A, %B %d, %Y @ %l:%M %p %Z");
define("_DATESTRING2","%a. %B %d");


This will change the time format from 24-hour (military time) to 12-hour (civilian time), e.g. AM/PM. It will add the year to the date. And, it will also keep the date from wrapping to the next line in your 'Old Articles' block, luchtzak. Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Fri Feb 27, 2004 4:54 am Reply with quoteBack to top

All right! Stunning fix VinDSL!! Thanks very much Wink

greetz,

Bart

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Fri Feb 27, 2004 4:57 am Reply with quoteBack to top

My pleasure! Cool

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
anthonyaykut
Lieutenant
Lieutenant


Joined: Mar 26, 2003
Posts: 182

Location: Europe

PostPosted: Fri Feb 27, 2004 6:20 am Reply with quoteBack to top

Hey VinDSL/Luchtzak,

Maybe you guys can help me with another (similar) problem of mine...
... its in the Stories Archive module, when you select a month/year to display articles from, when the page comes up, it shows up as (for example)...

MYSITE: 2003

...instead of MYSITE: MONTH 2003. Any ideas where/how this can be fixed?

TIA,
Anthony.
Find all posts by anthonyaykutView user's profileSend private messageSend e-mailVisit poster's website
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Fri Feb 27, 2004 7:48 am Reply with quoteBack to top

I'm chopped liver Sad.

In modules/Stories_Archive/index.php in the show_month function around line 63 do you have this:

Code:
title("$sitename: $month_l $year");


Question

g
Find all posts by gearView user's profileSend private messageVisit poster's website
anthonyaykut
Lieutenant
Lieutenant


Joined: Mar 26, 2003
Posts: 182

Location: Europe

PostPosted: Fri Feb 27, 2004 7:55 am Reply with quoteBack to top

YEP!
Find all posts by anthonyaykutView user's profileSend private messageSend e-mailVisit poster's website
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Fri Feb 27, 2004 6:36 pm Reply with quoteBack to top

Well, thanx, I am chopped liver. Sad

I tried right clicking on the page, but for some silly reason that is disabled and I didn't want to waste the time to get the source other ways. My credit cards are maxed, so I was unable to call the psychic hotline, which means we lose out on Miz Chloe's valuable input. But, sure enuff, there is a problem Wink .

g
Find all posts by gearView user's profileSend private messageVisit poster's website
TwoFourSixteen
Nuke Soldier
Nuke Soldier


Joined: Mar 03, 2004
Posts: 15

Location: .:Unknown:.

PostPosted: Fri Mar 05, 2004 1:44 pm Reply with quoteBack to top

VinDSL wrote:
Go look at my site. If you like the date/time format that I use:

In language/lang-english.php:

Find:
Code:

define("_DATESTRING","%A, %B %d @ %T %Z");
define("_DATESTRING2","%A, %B %d");


Change to:
Code:

define("_DATESTRING","%A, %B %d, %Y @ %l:%M %p %Z");
define("_DATESTRING2","%a. %B %d");


This will change the time format from 24-hour (military time) to 12-hour (civilian time), e.g. AM/PM. It will add the year to the date. And, it will also keep the date from wrapping to the next line in your 'Old Articles' block, luchtzak. Wink


I thought this was going to solve my problem, however it only made it a little more obvious.

When articles were posted, the posted-by line was:
Posted by soldiersElite on Friday, March 05 @ Pacific Standard Time (3 reads)

I used your fix on lang-english.php, and now it reads:
Posted by soldiersElite on Friday, March 05, 2004 @ :29 AM Pacific Standard Time (3 reads)

I'll probably be working with things all the time, but you can see how it currently is at any time. http://soldierselite.com

At least the minutes are there now, but still no hour. I'm pretty familiar with how the context of how the PHP date() function can be changed to change the way times/dates are displayed, but I'm not having any luck on this one still. Rolling Eyes

I'll keep tinkering with it, and if I come across something that works, I shall return with my solution. In the meantime, anyone seeing my "obvious" mistake. I've been staring at code for 3 days straight (for all sorts of things) and it's all starting to blur. I could've easily missed something simple. Time to go stare at the sun for a minute, get my eyesight back to "normal." Wink More to come...

_________________
TwoFourSixteen
• Perfect Squares •
Find all posts by TwoFourSixteenView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
TwoFourSixteen
Nuke Soldier
Nuke Soldier


Joined: Mar 03, 2004
Posts: 15

Location: .:Unknown:.

PostPosted: Fri Mar 05, 2004 2:51 pm Reply with quoteBack to top

I was looking through the DATESTRING and it just looks completely out of order to me.
I'm used to setting them in php forums.
I use: l M d, Y g:i A
and get a result like: Friday Mar 05, 2004 1:41 AM

But in the lang-english syntax, it looks as though
Code:
"%A, %B %d, %Y @ %l:%M %p %Z

would display these things
    A = Uppercase Ante meridiem and Post meridiem (AM or PM)
    B = Swatch Internet time (000 through 999) - don't see that anywhere?!?
    d = Day of the month, 2 digits with leading zeros (01 to 31)
    Y = A full numeric representation of a year, 4 digits (2004)
    "@"
    l = A full textual representation of the day of the week (Sunday through Saturday)
    ":"
    M = A short textual representation of a month, three letters (Jan through Dec)
    p = ???? No definition found for this???
    Z = Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. (-43200 through 43200) - don't see that anywhere, either?!?

So... where is it pulling the hours and minutes (and if wanted, seconds) from? And what sorts these things into the correct order. Even with the EXACT code above in place, I am receiving everything except the hours displayed. (see previous post)
So, I guess the real/new question is, where do I set g:i:s ???

Desired Result for Article footer - Friday, March 5, 2004 @ 12:29 AM PST (prefer abreviation, not Pacific Standard Time)
Assumed syntax - "l, F j, Y @ g:i A T"

_________________
TwoFourSixteen
• Perfect Squares •
Find all posts by TwoFourSixteenView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.385 Seconds - 199 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::