How to show time?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

How to show time?

Post by holysjit »

I know, it's a very stupid question. How can I show the time to my entries?

Thx
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to show time?

Post by garvinhicking »

Hi!

Using {$entry.timestamp} inside your entries.tpl template file. That contains the timestamp, if you format it, you would use something like {$entry.timestamp|@formatTime:'%H:%M'}.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I changed it, but it's not what I want. So, I changed it again to the old situation, but it won't go away. My old title-setting was:
10 March POSTTITLE(for example)

But now it is:
TIME POSTTITLE

It looks like the entries.tpl file won't update or something. I tried also to overwrite the .tpl file on my ftp server with the original file, but I don;t work. How to fix?

P.S. When I delete everything in the entries.tpl file, I upload an blank emtpy file to my ftp, everything is the same. It doesn't refresh? My Site: www.thejokers.nl
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What exactly do you change where from what to which text in what file of which directory? You need to be precise for us to be able to help you. :-)

My guess is you're simply editing a wrong file. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Didn't we go down this path once before?

http://board.s9y.org/viewtopic.php?t=9626&highlight=

You might need to delete all files (except .empty - not sure about that one) located in serendipity/templates_c/. There might be an older tpl file "cached" there which MIGHT explain why you are not seeing your revisions.
=Don=
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I deleted all the files in that folder, exept the .empty. Now I don't see my entries anymore. It's blank. I have a backup from the templates_c folder. How to solve?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What'S your URL?

Check to make sure that templates_c is writable for your PHP (i.e. 777)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I solved it completely. I just overwrited a couple of files, and then deleted alles files in het templates_c folder, exept for the .empty file. But now I have to delete the trackbacks again, but I asked that before.

Thanks Garvin!

Oh, I have now one last problem: When I open the extended version of an entrie, the sidebar is moved to the footer of the page. Its gone.

Ok, its NOT the andreas08 folder, because I completely overwrited that folder.
Post Reply