change date format

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
hannelore
Regular
Posts: 11
Joined: Tue Oct 18, 2005 3:16 pm
Location: Kissimmee, Florida
Contact:

change date format

Post by hannelore »

Hi,

I changed the style.css from an existing template to adjust it to my needs.

Now I want to change the date format of the entries, getting rid of the weekday. In what file do I have to do this?

Then, where do I find the smarty templates? I am not familiar with smarty, but I have read a little and will read more.

As I understood, there are more custom fields in the vers. 0.9. But what could I possibly do with them? Can you give me examples how you are using them?

And if I want to change the style in a plugin, I have to add the corresponding class to my custom template style.css - right?
Like the font-size of .serendipityAuthorProfile.

Thanks, and a late "Happy Birthday" to Garvin!
REALITY.SYS corrupt. Reboot Universe? (y/n)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change date format

Post by garvinhicking »

Please look at your language file in lang/serendipity_lang_de.inc.php, look at the DATE_FORMAT constant :)

Smarty templates are in the templates/.../ subdirectories. Read the docs on www.s9y.org (Styles) for more info about templating.

An example for custom fields are "My Mood" kind of things. So that you can write in what mood you are in for each entry.
And if I want to change the style in a plugin, I have to add the corresponding class to my custom template style.css - right?
Like the font-size of .serendipityAuthorProfile.
Perfectly right! :)

Thanks a lot for your birthday wishes,
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/
Robin_Schone

Date Reconfiguration

Post by Robin_Schone »

My webmaster recently replaced an older blog board on my website with a Serendipity blog board. I wanted a place so that I could easily download pictures, etc., and Serendipity is wonderful for those needs. But I use the blog as a simple news board to post winners of contests, latest publishing news, that kind of thing. To my readers the topic is much more important than the date, yet the date is boldly posted above the topic of each entry.

Is it possible for my webmaster to alter the template so that the date will be posted in small print at the bottom of an entry? Otherwise I absolutely love the Newspaper template that I am currently using.

Any help would be greatly appreciated. I am posting for assistance because my webmaster is really busy right now, and I am hoping to expedite matters. Thank you! :?
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

u just need to know the smarty format for all the diferent ways to write date
http://smarty.php.net/manual/en/languag ... format.php
Image
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

You could install one of the themes that think the title is more important than the date. From your admin panel, go to "Manage Styles" and try codeschmiede. Kubrick and leaf place titles before dates, too. Try a few. You can even copy one and make your own.
Robin_Schone

Thanks for the assistance!

Post by Robin_Schone »

Thank you for the assistance, MySchizoBuddy and Judebert. Judebert, I did try all the different "Manage Styles." The one I am currently using fits best with my web design, hence the reason I wondered if there was any way to modify it. 8)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Maybe I'm reading the question wrong. In the default template (and many others), the date has an <H3> tag, while the title has a less-important <H4> tag. If you want to change their importance (or otherwise mess with the tags, such as removing the data altogether), you'll have to go into the entries.tpl file and make the appropriate changes. In this case, just change the <H3> to <H4> and vice-versa. If you also want to move the date below the title, just move everything between the {if} and the {/if} to wherever you want it.
Post Reply