Add Logo at top of gallery page Add Logo at top of gallery page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Add Logo at top of gallery page

Started by skateboarduk.com, April 25, 2004, 06:04:32 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

skateboarduk.com

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!

skateboarduk.com


Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skateboarduk.com

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!

aem

Post the section code of where you insert the image and lets have a look?

Casper

If you put the image in themes/yourtheme/images folder, you need to give the path 'themes/yourtheme/images/picname'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skateboarduk.com

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>

Joachim Müller

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

skateboarduk.com

Just updated the code, still aint workin  :'(

Casper

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" />
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skateboarduk.com

Still no luck, dunno whats goin on...

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skateboarduk.com

#12
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 -->


Joachim Müller

@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


Casper

Yes, but I'm still intrigued as to why this pic refuses to show. 
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skateboarduk.com

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.

aem

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">


skateboarduk.com

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.

aem

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...

Joachim Müller

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