[Solved]: Help with Custom Header [Solved]: Help with Custom Header
 

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

[Solved]: Help with Custom Header

Started by rkayw, July 04, 2008, 12:20:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rkayw

Hi,

Just a couple of little things that I am hoping someone will help me with, please. We are hoping to go live with the site this weekend if I can get this fixed.

I have read the doc here http://forum.coppermine-gallery.net/index.php?action=activate;u=57127;code=24ab060628
and have tried to implement a custom footer & image map header.

Header:  my image map is showing up and working great, but I can not get the lavender area above the rounder corner top to not show up behind my header. I need that to be gone.

Footer: custom footer not showing up at all.

obviously I am doing something wrong with getting the *custom* footer to work. The footer I am trying to insert image is the same one as on the homepage.

can anyone help me, please, with code tweaks to fix these two little cosmetic issues?

http://uniquescrapart.com/gallery


Nibbler

Not sure what you mean by custom header and footer. You don't have anything set for 'Path to custom header include' or 'Path to custom footer include' in config. Also, you should make your own theme and not modify the classic theme.

Before you do anything else, update your gallery.

Also, you pasted the wrong link in your post.

rkayw

update my gallery?

I'm not sure how to write a path.
I have the custom-footer.php in my gallery root. is that where it is suppose to be?



rkayw

please be patient, I am not that great with php etc., bit of a newbie at this.

I am more concerned with the lavendar at the top of my page & getting that cosmetic fixed.

my bg color is extending above my header image.

if I can get help with that one thing corrected, I would be so grateful.


Nibbler

Ok then, what you have now is this:


  <table width="950px" border="0" cellpadding="0" cellspacing="20" valign="center">

    <tr>
      <td valign="top" style="border: 0px solid #666666; background-color:#babada;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
             <img src="http://uniquescrapart.com/images/header_usa.gif" usemap="#header_usa" alt="" style="border-style:none" />

<map id="header_usa" name="header_usa">

<area shape="rect" alt="" coords="496,113,563,137" href="http://uniquescrapart.com/shop/" title="" />
<area shape="rect" alt="" coords="567,115,637,138" href="http://uniquescrapart.com/forum/" title="" />

<area shape="rect" alt="" coords="645,114,717,139" href="http://uniquescrapart.com/gallery/" title="" />
<area shape="rect" alt="" coords="722,113,791,139" href="http://uniquescrapart.com/staff/" title="" />
<area shape="rect" alt="" coords="798,114,867,139" href="http://uniquescrapart.com/shop/index.php?main_page=index&cPath=38" title="" />
<area shape="rect" alt="" coords="873,115,943,139" href="http://uniquescrapart.com/shop/index.php?main_page=page_4" title="" />
<area shape="rect" alt="" coords="88,29,456,123" href="http://uniquescrapart.com/" title="" />
<area shape="default" href="http://uniquescrapart.com/" alt="" />
</map>
            </td></tr></table>


You should move that image up and out of the blue background area and change your table's cellspacing, like this:


  <table valign="center" border="0" cellpadding="0" cellspacing="0" width="950">
   <tbody>
    <tr>
     <td>
      <img src="http://uniquescrapart.com/images/header_usa.gif" usemap="#header_usa" alt="" style="border-style: none;">
     </td>
    </tr>
    <tr>
      <td valign="top" style="border: 0px solid #666666; background-color:#babada;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
<map id="header_usa" name="header_usa">

<area shape="rect" alt="" coords="496,113,563,137" href="http://uniquescrapart.com/shop/" title="" />
<area shape="rect" alt="" coords="567,115,637,138" href="http://uniquescrapart.com/forum/" title="" />

<area shape="rect" alt="" coords="645,114,717,139" href="http://uniquescrapart.com/gallery/" title="" />
<area shape="rect" alt="" coords="722,113,791,139" href="http://uniquescrapart.com/staff/" title="" />
<area shape="rect" alt="" coords="798,114,867,139" href="http://uniquescrapart.com/shop/index.php?main_page=index&cPath=38" title="" />
<area shape="rect" alt="" coords="873,115,943,139" href="http://uniquescrapart.com/shop/index.php?main_page=page_4" title="" />
<area shape="rect" alt="" coords="88,29,456,123" href="http://uniquescrapart.com/" title="" />
<area shape="default" href="http://uniquescrapart.com/" alt="" />
</map>
            </td></tr></table>


That's based on your page output, part of that code is in your template.html and part is in your custom header.

You are using 1.4.16 and the latest is 1.4.18.

rkayw

now my page won't refresh. what in my source file on my host server is not what's in the view source on my screen.
I've cleared my cache, rebooted, everything I know to do.  why is it not showing what is uploaded to my host?  ???
It should be the code you told me to put, and that's what's in the file on my host server.   




Nibbler

You need to delete the template.html that's in your root Coppermine directory (http://uniquescrapart.com/gallery/template.html)

rkayw

thank you thank you! two sets of eyes are a blessing!

it looks fabulous other then I need a little more space at the top, to match the spacing of the rest of the site.

thank you so much for your help.

so far we love the coppermine gallery!

Nibbler

Great. You still need to update your gallery though; 1.4.16 has a security problem.

rkayw