coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Nicolaj on June 01, 2006, 10:15:57 AM

Title: individual background image in some albums
Post by: Nicolaj on June 01, 2006, 10:15:57 AM
Hi, I have just started playing with Coppermine, and am wondering...

Is it possible to have a background image in some albums (and subsequent 'childs')?

Hope you can help me

Nicolaj
Title: Re: individual background image in some albums
Post by: Dr Preacox on June 01, 2006, 12:36:33 PM
Hmmm im not sure about having it only for selected albums and categories, but you can add this into your themes css file for an overall background image

Edit: gallery/themes/YOURTHEME/styles.css

Search for "body"

and add inside the { and } the following;


background-image:
url('IMAGENAME.jpg')


you can can also add this if you want the image to stay fixed, so when you scroll it wont move

background-attachment: fixed;


and you may want to set if the image repeats itself by adding

background-repeat: repeat;

Or if you dont want it to repeat

background-repeat: no-repeat;


Sam~
Title: Re: individual background image in some albums
Post by: Nicolaj on June 01, 2006, 01:15:46 PM
thx Dr Preacox,

but my problem is how to do it for JUST some albums...

guess I will just have to wait a bit longer and hope... :)

Nicolaj
Title: Re: individual background image in some albums
Post by: Dr Preacox on June 01, 2006, 02:16:15 PM
Im sure a Dev will be able to help you, in the meantime try searching google, and the forum http://forum.coppermine-gallery.net/index.php?action=search (http://forum.coppermine-gallery.net/index.php?action=search)
Title: Re: individual background image in some albums
Post by: Tranz on June 01, 2006, 03:19:01 PM
This mod will let you have different themes for different categories: http://forum.coppermine-gallery.net/index.php?topic=25471.0
Title: Re: individual background image in some albums
Post by: Dr Preacox on June 01, 2006, 03:23:00 PM
Why didn't I think of that  :P
Title: Re: individual background image in some albums
Post by: Tranz on June 01, 2006, 03:25:57 PM
Quote from: Dr Preacox on June 01, 2006, 03:23:00 PM
Why didn't I think of that  :P
It's okay... I wouldn't have thought of it either except that someone just replied to one of my posts with reference to the mod. ;)
Title: Re: individual background image in some albums
Post by: Dr Preacox on June 01, 2006, 03:30:51 PM
hahaha  :D okay then, well I'll be off .... *woosh*
Title: Re: individual background image in some albums
Post by: Nicolaj on June 01, 2006, 03:55:08 PM
Thx TranzNDance

thought I had done a rather extensive search, but I didnt think of using different themes...

This should do the trick if I can get it to work on an album basis instead of category...

Nicolaj