authors line at top of entries?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
kevin v

authors line at top of entries?

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: authors line at top of entries?

Post 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
# 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/
kevin v

Post 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' ?
kevin v

Post 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
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

you should edit in templates/ NOT templatec_c/
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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 :)
# 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/
Post Reply