Page 1 of 1
A few questions
Posted: Fri Oct 07, 2005 10:51 pm
by DortoH
Got a few questions about customizing the admin side of Serendipity.
I'd like all entry images to have a 1px border. I understand this should be done with CSS and not the border= tag but I am unsure where/what CSS needs to be added/modified to make this happen.
Secondly, I'd like all new entries to have a snippet of code automatically inserted at the end (google ads or some other ads) but again don't know what needs to be edited to make this happen.
TIA
Rod
Posted: Sat Oct 08, 2005 12:33 am
by MySchizoBuddy
the snippet of code can be done using HTML nuggets plugins. It allows u to position any code at the footer, or end of article etc.
as for the 1px border u have to just use
.serendipity_entry img {
border:1px solid #000;
}
should work
what do u mean at admin side of serendipity :S
Posted: Sat Oct 08, 2005 1:08 am
by DortoH
Cool thanks.
I meant to improve the admin interface so I didn't have to enter all the code manually everytime

Posted: Sun Oct 09, 2005 11:00 pm
by garvinhicking
DortoH, for your adsense blocks you have two opportunities.
First is to edit your entries.tpl template. Search the {$entry.body} location and after that, just add your HTML code for every entry.
The second opportunity is more flexible, but more complex. For this you can use so called "static blocks" for your entries. Use and install the "serendipity_event_includeentry" plugin, which will give you a new admin link item ("Static Blocks" or "Blocks") where you can add (multiple) Adsense blocks. Then when inserting an entry, in the "advanced properties" section you'll be able to append those blocks to your entries. The configuration of the plugin even allows you to insert random blocks every second or third article, it's really flexible to use. Some of its use is documented in a blog entry on blog.s9y.org:
http://blog.s9y.org/archives/62-Static- ... vised.html
HTH,
Garvin
Posted: Sun Oct 09, 2005 11:42 pm
by DortoH
Mmm Exactly why I love Serendipity! Everything I want, magically appears in the form of a plugin!
Posted: Mon Nov 12, 2007 12:53 am
by Zirbelholz
Can I just tag onto this, as it looks like what I'm looking for.
I want to have a number of Google text links across below the header, on every page, not every entry.
Can I do that, or is it easier simply to add it to every entry in entries.tpl the way you described?
Margaret
Posted: Mon Nov 12, 2007 1:01 am
by Zirbelholz
Question withdrawn - it does work after all.
Margaret