Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Add Logo at top of gallery page  (Read 7906 times)

0 Members and 1 Guest are viewing this topic.

skateboarduk.com

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Add Logo at top of gallery page
« 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!

skateboarduk.com

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #1 on: April 25, 2004, 06:31:31 pm »

hope this is the right forum... ???

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Add Logo at top of gallery page
« Reply #2 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #3 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!

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Add Logo at top of gallery page
« Reply #4 on: April 25, 2004, 10:14:47 pm »

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Add Logo at top of gallery page
« Reply #5 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'.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #6 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>

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add Logo at top of gallery page
« Reply #7 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
Logged

skateboarduk.com

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #8 on: April 25, 2004, 11:13:50 pm »

Just updated the code, still aint workin  :'(

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Add Logo at top of gallery page
« Reply #9 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" />
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #10 on: April 25, 2004, 11:41:56 pm »

Still no luck, dunno whats goin on...

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Add Logo at top of gallery page
« Reply #11 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #12 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 -->
« Last Edit: April 26, 2004, 12:05:36 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add Logo at top of gallery page
« Reply #13 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

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Add Logo at top of gallery page
« Reply #14 on: April 26, 2004, 12:02:00 am »

Yes, but I'm still intrigued as to why this pic refuses to show. 
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #15 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.

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Add Logo at top of gallery page
« Reply #16 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">

Logged

skateboarduk.com

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://www.sk8uk.co.uk
Re: Add Logo at top of gallery page
« Reply #17 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.

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Add Logo at top of gallery page
« Reply #18 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...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Add Logo at top of gallery page
« Reply #19 on: April 26, 2004, 04:45:47 pm »

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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.033 seconds with 18 queries.