Page 1 of 1

authors line at top of entries?

Posted: Mon Aug 01, 2005 6:38 pm
by kevin v
My appologies if this has been covered, but I have searched the forums and haven't seen it. (First, I am using s9y for a multi-author science policy and politics site at http://www.nosenada.org/cblog)

I would like to alter the "Posted by ..." line to appear at the beginning of entries, not at the end. (So that it appears as it does on the other blog I contribute to here: http://sciencepolicy.colorado.edu/prometheus/)

Before I get into the php and do it myself, I wonder if there is already an event plug-in or a style sheet that does this, and I just haven't found it yet?

Re: authors line at top of entries?

Posted: Mon Aug 01, 2005 6:40 pm
by garvinhicking
If you're using Serendipity 0.8 or above, you can move that info piece around by editing your template's "entries.tpl" file. There is HTML info which you can just put at the top of the block.

HTH,
Garvin

Posted: Tue Aug 02, 2005 3:55 am
by kevin v
danke, garvin. i assume you're talking about the templates_c/s9y_bluegrey^%%41^412^412BD33E%%entries.tpl.php

file that in versions before 0.8 was in the main install directory as 'entries.tpl' ?

Posted: Tue Aug 02, 2005 4:32 am
by kevin v
nevermind, found it in default/entries.tpl

out of curiosity, where is the "Posted by" tag picked up? I mean the actual text "Posted by." When I grep for it in any directory, I can't find it

thanks for your help and your hard work on this project. 3250 posts?? geez

Posted: Tue Aug 02, 2005 4:51 am
by gwilsonmail
you should edit in templates/ NOT templatec_c/

Posted: Wed Aug 03, 2005 4:49 pm
by garvinhicking
Kevin, the text is fetched via language constants, because we have abstracted the language functions to be multilingual.

The constans are within the files inside lang/serendipity_lang_en.inc.php. The constant you'Re searching for is called "POSTED_BY", and that one shows up in the templates/.../entries.tpl file :)

HTH,
Garvin :)