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
-
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!
-
hope this is the right forum... ???
-
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.
-
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!
-
Post the section code of where you insert the image and lets have a look?
-
If you put the image in themes/yourtheme/images folder, you need to give the path 'themes/yourtheme/images/picname'.
-
The image is in that folder and I've tried using other folders, but it didn t work. heres the code:
<a href="http://www.sk8uk.co.uk/gallery/"><img scr="themes/water_drop/images/hgallery.gif" ALT="Skateboard UK" width="691" height="98"></a>
-
Try the full url:
<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
-
Just updated the code, still aint workin :'(
-
Try uploading the image again, this time into the gallery/images folder, and change the link to
<img scr="http://www.sk8uk.co.uk/gallery/images/hgallery.gif" alt="Skateboard UK" width="691" height="98" />
-
Still no luck, dunno whats goin on...
-
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.
-
Thanks for the help so far Casper.
Heres the majority of the code, incase it reveals the problem...
<!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 -->
-
@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
-
Yes, but I'm still intrigued as to why this pic refuses to show.
-
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.
-
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">
-
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.
-
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...
-
well, to avoid repetition, you have css attributes:
background-repeat can be
- repeat (default)
- repeat-x
- repeat-y
- no-repeat
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
-
So I would have to edit the style.css? I'm not sure where to code the no-repeat thing.
-
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>
-
its not overlapping with the text anymore, but the image still wont show its funky ass >:( :'(
-
??? This is a pain in the ass, I've tried more stuff to get it working, but it just wont show, PLEASE someone helP!
-
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.