Welcome, Guest
Please Login or Register.    Lost Password?

Coppermine with Transparent bliss
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Coppermine with Transparent bliss
#1216
Coppermine with Transparent bliss 3 Years, 8 Months ago Karma: 0
First thanks for all the templates :)

I've been playing with various ones and my favorite is Transparent bliss 1.5...
Anyway I'm trying to get Coppermine gallery to have an integrated look, ie transparent background but my CSS is a little rusty, my site looks fine in Firefox with a transparent background but displays white in IE.

Any help would be much appreciated, I'm guesing I need to apply a specific ie PNG fix somewhere
the site is http://jpsw.co.uk

TIA
Shyted

Btw just donated $20 towards your server costs, and for the amazing templates :)
shyted
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/09/12 03:28 By shyted.Reason: uodate
The administrator has disabled public write access.
 
#1217
Re:Coppermine with Transparent bliss 3 Years, 8 Months ago Karma: 41
Hi Shyted,

Thx so much for the donation.

Yes I had a look in IE and FF and I see the white background in IE - just on the coppermine gallery page isn't it?

I did a couple of quick tests and found a few leads for you.

Firstly I would say grab the firefox web developers toolbar if you have not got it already. Google it and you'll have it all installed in 30 secs. Now CTRL-SHIFT-Y together in firefox will let you hover over elements on the page and analyse what styles are affecting them.

I'm using this method and also looking at the css for coppermine:

jpsw.co.uk/gallery/themes/classic/style.css

(with web developer toolbar installed you can CTRL-SHIFT-C and you will get this page with some helpful notes)

I note that various elements that appear transparent in FF but not IE are calling clear.png - I've posted the footer css below as an example - now FireFox does not display missing images at all but IE tends to display a missing image marker - i suspect this is the culprit.

.footer (line 463)

{

font-size: 9px;

background-image: url(clear.png);

background-repeat: repeat-x;

}

From the URL in the css we can see that clear.png should be in the same directory as the style sheet: url(clear.png)

If it was one directory up for example it would like this url(../clear.png)

So lets test that URL and see if the image is present:

CSS URL is:
jpsw.co.uk/gallery/themes/classic/style.css

So png URL will be:
jpsw.co.uk/gallery/themes/classic/clear.png

And yes it comes up... So my first thought is not correct- It's not clear.png that is causing the issues.

So I head on over and look at the page source, I've never used coppermine for Joomla before but the first thing I notice is that the only reference to your gallery in the source code is an <iframe> basically coppermine is loading a separate web page inside your joomla content area - so If i right click in firefox anywhere in the coppermine area I can load the iframe in it's own window:

jpsw.co.uk/gallery/thumbnails.php?album=2

Now were getting somewhere - the background is now white in FireFox as well! interesting.

So it's something to do with the iframe background color.

A quick google for this term and...

The first result looks promising.

It's a forum where someone has asked this very question re: white border for iframe in IE.

I quote the forum post below:

"what i can do to make the transparent background work in BOTH browsers???

You have to include the proprietary allowtransparency property, set to true:

<iframe src="..." allowtransparency="true"></iframe>The background-color property of the iframe element will then default to transparent, but it can still be set to any legal value."




Hope this helps - I'll leave you to test it on your site.

One last thought though is that the funny gray stripes we see at jpsw.co.uk/gallery/thumbnails.php?album=2 are all created I think by layers of the clear.png.

Layers of transparency are going to slow down page rendering time significantly and are probably not needed with Transparent Bliss being what it is. The gallery would look sweet with no clear.png.

I would suggest you backup the coppermine CSS and then do a "find and delete" for all instances of clear.png - remove all the css that relates to it - e.g. the stuff in red below. If you don't want to remove it all at least the clear.png from the body tag below as this is just going to create a third layer of transparency between the template background and the gallery.

body {

background-image: url("clear.png");

background-repeat: repeat-x;


font-family : Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;



color : White;

margin: 0px;

}

Cheers

Big Bear
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
The administrator has disabled public write access.
 
#1273
Re:Coppermine with Transparent bliss 3 Years, 7 Months ago Karma: 0
Many thanks BB
The issue can actually be solved easily by bridging the gallery onto Joomla correctly, rather than using a wrapper, which is what I was doing. This then solves the transparency issue perfectly.

Unfortunately bridging rather than wrapping screws up any extra scripts or plugins that Coppermine uses. Its a bit of a catch 22.

If I find a simple solution I'll post it.
Cheers :)
shyted
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Support
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear