Page 1 of 1

change date format

Posted: Sun Oct 30, 2005 3:44 pm
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!

Re: change date format

Posted: Sun Oct 30, 2005 4:15 pm
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 :)

Date Reconfiguration

Posted: Thu Dec 08, 2005 11:07 pm
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! :?

Posted: Fri Dec 09, 2005 2:12 am
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

Posted: Fri Dec 09, 2005 3:48 am
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.

Thanks for the assistance!

Posted: Fri Dec 09, 2005 11:42 pm
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)

Posted: Sat Dec 10, 2005 5:02 pm
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.