A few questions

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

A few questions

Post 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
Rod
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post 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
Image
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Cool thanks.

I meant to improve the admin interface so I didn't have to enter all the code manually everytime :)
Rod
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Mmm Exactly why I love Serendipity! Everything I want, magically appears in the form of a plugin!
Rod
Zirbelholz
Regular
Posts: 200
Joined: Sun Oct 07, 2007 2:19 pm

Post 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
Zirbelholz
Regular
Posts: 200
Joined: Sun Oct 07, 2007 2:19 pm

Post by Zirbelholz »

Question withdrawn - it does work after all.

Margaret
Post Reply