add logo

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
toto12

add logo

Post by toto12 » Thu Jan 05, 2006 3:06 pm

how can I do to add a logo on the top of the blog ?

thk

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: add logo

Post by garvinhicking » Thu Jan 05, 2006 5:22 pm

Either by editing your style.css CSS stylesheet and insertit, or edityour index.tpl file andinsertit.

Regards,
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/

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert » Thu Jan 05, 2006 8:03 pm

Say, Garvin, I was thinking of adding this capability to the plugin that currently handles Joshua and Kubrick images. If I do, would it be worth committing?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu Jan 05, 2006 9:06 pm

You mean a third choice for the "default"template? Sure, I would commit that!

Regards,
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/

toto12

Post by toto12 » Fri Jan 06, 2006 9:24 am

I want the logo (a picture) on the right top of the blog

Can you tell me where can I add the ref in the .css ?

thk

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Fri Jan 06, 2006 9:59 am

Toto12: In your case I tghink it'seasier to edit your index.tpl template. Look for the "serendipity_banner" and then insert your HTML code to show the image...

Bestregards,
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/

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert » Fri Jan 06, 2006 2:27 pm

If you really want to do it with CSS, find your #serendipity_banner and add these properties:

Code: Select all

    background-image: url(http://domain.com/complete/path/image.gif);
   background-repeat: no-repeat;
   background-position: top right;

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Default Template Logo Plugin!

Post by judebert » Sat Jan 07, 2006 3:39 am

I am proud to announce that I have updated the kubrickheader plugin to switch the background image of the default template.

You can easily define a logo with most templates.

The kubrickheader plugin is now known as "Template Header / Logo Image" in Spartacus. It still allows you to switch the header image for Kubrick and Joshua templates. It now allows you to add an image to any template based on the default template.

The image can be placed within the banner at any of the corners, sides, or dead-center. The banner will not expand to accomodate large images. The image goes underneath the homepage links, if they overlap. Many templates are based on Default; basically anything where the banner is named "serendipity_banner" can use this plugin to replace the banner image.

If that wasn't enough, I also added .gif support. Choose a directory of images, and a .gif, .jpg, .jpeg, or .png will be chosen at random each time the page loads.

So where's the downside? Well, the header does not expand to contain the logo. The homepage links are not image-replaced, even optionally. And, if your banner already has a background image, it will be replaced.

I took the liberty of committing it to CVS myself (after all, Garvin, you gave me access to the additional_plugins directory so I could save you some work, right?). It should show up in Spartacus as "Template Header / Logo Image" version 1.3 within 24 hours. The impatient can obtain it immediately from http://judebert.com/wasted_youth/media/s9y/plugins/serendipity_event_kubrickheader.zip.

Here's wishing you Serendipity when you blog!
Judebert

Post Reply