forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: skateboarduk.com on April 25, 2004, 06:04:32 pm

Title: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 06:04:32 pm
Hi, just a quick question: my gallery is up, here http://www.sk8uk.co.uk/gallery  but I need to add an image at the top of the page to replace the Text title.

Any ideas on which file to edit to do this?

Cheers!
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 06:31:31 pm
hope this is the right forum... ???
Title: Re: Add Logo at top of gallery page
Post by: Casper on April 25, 2004, 07:19:08 pm
Right forum.
See this in the faq, http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader.
You can also use html to add it in, in the themes/yourtheme/template.html.
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 09:48:32 pm
I have added the code to template .html, but the image won't display for some reason, its the right path and the image works fine but for some reason it wont show up. I've gone over and over the code and there aren't any errors...I really dont understand this!
Title: Re: Add Logo at top of gallery page
Post by: aem on April 25, 2004, 10:14:47 pm
Post the section code of where you insert the image and lets have a look?
Title: Re: Add Logo at top of gallery page
Post by: Casper on April 25, 2004, 10:26:59 pm
If you put the image in themes/yourtheme/images folder, you need to give the path 'themes/yourtheme/images/picname'.
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 11:03:48 pm
The image is in that folder and I've tried using other folders, but it didn t work. heres the code:


Code: [Select]
         <a href="http://www.sk8uk.co.uk/gallery/"><img scr="themes/water_drop/images/hgallery.gif" ALT="Skateboard UK" width="691" height="98"></a>
Title: Re: Add Logo at top of gallery page
Post by: Joachim Müller on April 25, 2004, 11:10:15 pm
Try the full url:
Code: [Select]
<a href="http://www.sk8uk.co.uk/gallery/">
<img scr="http://www.sk8uk.co.uk/gallery/themes/water_drop/images/hgallery.gif" alt="Skateboard UK" width="691" height="98" />
</a>

GauGau
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 11:13:50 pm
Just updated the code, still aint workin  :'(
Title: Re: Add Logo at top of gallery page
Post by: Casper on April 25, 2004, 11:17:25 pm
Try uploading the image again, this time into the gallery/images folder, and change the link to

Code: [Select]
<img scr="http://www.sk8uk.co.uk/gallery/images/hgallery.gif" alt="Skateboard UK" width="691" height="98" />
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 11:41:56 pm
Still no luck, dunno whats goin on...
Title: Re: Add Logo at top of gallery page
Post by: Casper on April 25, 2004, 11:48:19 pm
Then I'm stumped.  I've checked and the image is in both those images folders and not corrupted. (this for other supporters, I'm sure you checked)

Please post all the code for that table/div.
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 25, 2004, 11:51:11 pm
Thanks for the help so far Casper.

Heres the majority of the code, incase it reveals the problem...

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
<title>Skateboard UK Photo Gallery - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Pragma" content="no-cache" />

<link rel="stylesheet" href="themes/water_drop/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
$Id: template.html,v 1.5 2004/03/21 22:21:14 gaugau Exp $
-->
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="20" cellspacing="20">
<tr>
        <td valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid #ccd7e0; background-color: #fff;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                                <td width="100%" align="center">
                                        <a href="http://www.sk8uk.co.uk/gallery/">
<img scr="http://www.sk8uk.co.uk/gallery/images/hgallery.gif" alt="Skateboard UK" width="691" height="98" />
</a>                                        <h3>Skateboarding photos.</h3><br />
                                                        <span class="topmenu">
<!-- BEGIN album_list -->
                        <a href="index.php" title="Go to the album list">Album list</a>
                        <img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="index.php?cat=10001" title="Go to my personal gallery">My gallery</a>
                        <img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />
<!-- END my_gallery -->
Title: Re: Add Logo at top of gallery page
Post by: Joachim Müller on April 25, 2004, 11:55:00 pm
@skateboarduk: You're using cpg1.3.0, aren't you? Haven't you heard/read, that cpg1.3.0 doesn't come with support yet, as it's still beta?

@Casper: I knew it was a good idea to have those CVS ID tags, although I wouldn't have thought they'd be used for this purpose... ;)

GauGau

Title: Re: Add Logo at top of gallery page
Post by: Casper on April 26, 2004, 12:02:00 am
Yes, but I'm still intrigued as to why this pic refuses to show. 
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 26, 2004, 12:46:05 am
I know its 1.3, but Its not really a bug, or at least I didnt think it was when I first made the post, which is why i posted it here.

I still need to work out whats wrong with it, if anyone has any ideas, post them up.

Cheers.
Title: Re: Add Logo at top of gallery page
Post by: aem on April 26, 2004, 01:31:29 pm
I got the pic to show up using the "background" option, but i've yet to figure out how to have it as linkage.

<td width="100%" background="http://www.sk8uk.co.uk/gallery/images/hgallery.gif" width="691" height="98">

Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 26, 2004, 01:57:01 pm
cool, at least you've got somewhere. If I could resize the table to the same size as the image then it wouldnt repeat itself, but I still have the problem of text overlapping the picture as you can see on the site.
Title: Re: Add Logo at top of gallery page
Post by: aem on April 26, 2004, 02:33:55 pm
All the themes have different layouts, mine doesn't even show up on water_drop but shows up perfectly in rainy_days.

If you want to fix the overlap words, i think you need to do some recoding...
Title: Re: Add Logo at top of gallery page
Post by: Joachim Müller on April 26, 2004, 04:45:47 pm
well, to avoid repetition, you have css attributes:
background-repeat can be


To make table cells have a certain width or height, you usually use the blind gif method ("illegal" usage of height attribute in <td>-tags is not recommended, will not work in all browsers.

GauGau
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 26, 2004, 09:56:32 pm
So I would have to edit the style.css? I'm not sure where to code the no-repeat thing.
Title: Re: Add Logo at top of gallery page
Post by: Casper on April 26, 2004, 10:30:25 pm
Try this;
Move it from the cell it's in now, and place it in its own table immediately after the <body> tag;

<table><tr><td><a href="http://www.sk8uk.co.uk/gallery/">
<img scr="http://www.sk8uk.co.uk/gallery/images/hgallery.gif" alt="Skateboard UK" width="691" height="98" />
</a>  </td></tr></table>
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on April 27, 2004, 12:16:53 pm
its not overlapping with the text anymore, but the image still wont show its funky ass >:( :'(
Title: Re: Add Logo at top of gallery page
Post by: skateboarduk.com on May 02, 2004, 04:57:44 pm
  ??? This is a pain in the ass, I've tried more stuff to get it working, but it just wont show, PLEASE someone helP!
Title: Re: Add Logo at top of gallery page
Post by: Casper on May 02, 2004, 07:23:46 pm
As it showed when used as a background, have you tried making the cell it's in now an absolute size, with this image as the background.