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]   Go Down

Author Topic: [Solved]: footer  (Read 6188 times)

0 Members and 1 Guest are viewing this topic.

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
[Solved]: footer
« on: April 30, 2004, 12:01:13 am »

Dear Admin  :)
"I have already read all the post regarding the footer"

I have a problem placing the footer and fix the size to 100%,
I placed the footer in html in the template.html, when
i refresh the page sometimes is ok, but when i enter the category
it wraps and it remains wrapped if i click other pages
and then it fix by itself returning 100%.

my gallery is here:
http://www.supermotard.com/gallery/index.php

this is the code of template.html:

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Pragma" content="no-cache" />
<style type="text/css">
<!--
.menuupGrigio {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: bold;
text-decoration: none;
color: #CCCCCC;
}
.menuupGrigio:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: bold;
text-decoration: none;
color: #FB9B05;
}
-->
</style>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
{META}
<link rel="stylesheet" href="themes/mac_ox_x/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>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
<body>
<div id="Menu1" style="position:absolute; width:800px; height:30px; z-index:1; left: 25px; top: 269px; visibility: hidden;">
  <span class="topmenu">
  <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td>
                                        {MAIN_MENU1}&nbsp;
                                        {LANGUAGE_SELECT_FLAGS}&nbsp;
                                        {LANGUAGE_SELECT_LIST}
                                        </td>
                                </tr>
                        </table>
                </span>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="top_panel">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#405D84">
          <td width="215"><img src="../images/logo.gif" width="215" height="60"></td>
          <td width="545" align="right" nowrap> <table width="476" border="0" cellspacing="0" cellpadding="1" class="menuup">
              <tr valign="bottom">
                <td class="menuup" valign="middle" nowrap height="30" align="right">&nbsp;&nbsp;<img src="../images/freccia_arancio.gif" width="16" height="16" align="absmiddle">&nbsp;
                  &nbsp;&nbsp;<span class="menuupGrigio"><a href="../pages/meteo.htm" class="menuupGrigio">Meteo&nbsp;</a>&nbsp;<img src="../images/puntini_blu.gif" width="2" height="18" align="absmiddle">&nbsp;&nbsp;<a href="../pages/convenzionati.htm" class="menuupGrigio">Convenzionati</a>&nbsp;&nbsp;<img src="../images/puntini_blu.gif" width="2" height="18" align="absmiddle">&nbsp;&nbsp;<a href="../pages/assistenza.htm" class="menuupGrigio">Assistenza</a>
                  &nbsp;<img src="../images/puntini_blu.gif" width="2" height="18" align="absmiddle">&nbsp;&nbsp;<a href="../pages/sicurezza.htm" class="menuupGrigio">Sicurezza</a>&nbsp;&nbsp;<img src="../images/puntini_blu.gif" width="2" height="18" align="absmiddle">&nbsp;&nbsp;<a href="../pages/contatti.htm" class="menuupGrigio">Contatti</a>&nbsp;&nbsp;<img src="../images/puntini_blu.gif" width="2" height="18" align="absmiddle">&nbsp;&nbsp;<a href="javascript:addbookmark();" class="menuupGrigio"><font color="#FB9B05">Aggiungi
                  ai preferiti</font></a></span></td>
              </tr>
            </table>
            <font
      face=Verdana size=-1><b>
            <script language="">
function addbookmark(){if (document.all){window.external.AddFavorite("http://www.supermotard.com/","SUPERMOTARD.COM - SUPERGALLERY MOTO - Vendita Abbigliamento")}
}
</script>
            </b></font></td>
          <td align="right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/home/sfonfo_moto_menu.gif">
        <tr>
          <td background="../images/home/sfonfo_moto_menu.gif"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="64">
              <param name="movie" value="../moto_menu.swf">
              <param name="quality" value="high">
              <embed src="../moto_menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="64"></embed></object></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#405D84" height="17"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="45">
              <param name="movie" value="../monitor.swf">
              <param name="quality" value="high">
              <embed src="../monitor.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="45"></embed></object>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#405D84" height="17">&nbsp; </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="../images/grigio.gif" height="17">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td width="23" align="center" background="themes/mac_ox_x/images/top_panel_r2_c1b.gif">&nbsp;
          <!-- <td><img name="top_panel_r2_c1" src="themes/mac_ox_x/images/top_panel_r2_c1.gif" width="30" height="35" border="0" id="top_panel_r2_c1" alt="" /></td> -->
          <td align="left" background="themes/mac_ox_x/images/top_panel_r2_c1b.gif"> <table cellpadding="0" cellspacing="0" border="0" class="top_menu_bttn">
       
        <tr> {MAIN_MENU2} </tr>
      </table>
          </td>
         <!-- <td width="100%" background="themes/mac_ox_x/images/top_panel_r2_c1b.gif">&nbsp;</td> -->
        </tr>
      </table></td>
  </tr>
</table>
<div align="left">
  <table width="760" border="0" cellspacing="0" cellpadding="15">
    <tr>
      <td align="left">{ADMIN_MENU} {GALLERY} </td>
    </tr>
  </table>
</div>
<div align="left">
  <table width="760" border="0" cellspacing="0" cellpadding="15">
    <tr>
      <td align="left">{THEME_SELECT_LIST}</td>
    </tr>
  </table>
<p>&nbsp;</p></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="50">
  <tr bgcolor="#405D84">
    <td height="10" colspan="2" valign="top" nowrap><img src="../images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
  <tr bgcolor="#405D84">
    <td width="122" height="2" align="center" valign="middle" bgcolor="#405D84"><img src="../images/guarantee-ssl-5.gif" width="113" height="104"></td>
    <td width="1005" height="2" valign="middle" bgcolor="#405D84" class="testopiccolo"><span class="testopiccolo"><font color="#FFFFFF"><img src="../images/home/bottom_scritte.gif" alt="www.supermotard.com" width="368" height="47" border="0" usemap="#Map8"></font></span></td>
  </tr>
  <tr bgcolor="#405D84">
    <td height="5" colspan="2" valign="middle" nowrap> <img src="../images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
</table>
</body>
</html>





this is the code of the pagefooter function in theme.php
the footer.php is an empty file:

Code: [Select]
// Function for writing a pagefooter
function pagefooter()
{
    global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
    global $USER, $ALBUM_SET, $CONFIG, $time_start, $query_stats;
    global $template_footer;

    if(empty($custom_footer)){
      include('footer.php');
    }

    echo $template_footer;
}

i hope you will save from destroying the monitor with my head
thank you so much for your human understanding
« Last Edit: May 03, 2004, 07:50:22 am by GauGau »
Logged

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #1 on: April 30, 2004, 01:00:26 am »

P.S. i have the entire italian translation of the new version if you are interested in...  ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: footer
« Reply #2 on: April 30, 2004, 08:48:57 am »

I don't understand where the problem lies, your gallery page is being displayed perfectly ok for me (nice theming :D), except for for the fact that there are no pics in the gallery yet ;)
Please describe your problem with more details, or post a screenshot of the area that doesn't work.

GauGau

P.S. Translations are welcome, please post on http://forum.coppermine-gallery.net/index.php?topic=4623.0  ;)
Logged

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #3 on: April 30, 2004, 08:35:49 pm »

ok then let me finish the translation of the faq and i'll send it to you... where do i send it?
I have also to fix some typing errors... ;D

Thank you for congratulations, actually i should congratulate with you for you excellent programming work
and for the resources you give us for "free"... :o

Do you think to steal my theme also?  :-[ 

well i'll post the screenshot, i'm getting mad fixing that weird stuff  :'(

talk to you later

bye  :)
Logged

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #4 on: April 30, 2004, 08:38:05 pm »

ah ok for the translation i follow that link...  ;D
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: footer
« Reply #5 on: April 30, 2004, 09:03:43 pm »

I also have no problem viewing your site, and the footer displayed correctly every page.
I also like your layout, BUT

Do you think to steal my theme also?  :-[  


I hope this was a joke.  >:(  Where did this enter your head.  
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

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #6 on: April 30, 2004, 11:13:52 pm »

yeah it was an italian joke.. don't worry i'm not giving you of the robber...  :D

when i'm on the home page the footer looks like the first image.
when i enter a category for example motogallery it wraps like in the second screenshot here attached
then i click for example on "più viste" (most viewed) and it's still wrapped
then i click on "mie preferite" (my favourites) and it gets back to 100% with no white margins...

 ??? ??? ???

[attachment deleted by admin]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: footer
« Reply #7 on: May 01, 2004, 01:12:19 pm »

ak ok, I guess you should have a look at the nesting of your tables - this can be a pain, I know. You could try using a tool that checks for improper nesting, e.g. the html validator of w3c.

GauGau
Logged

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #8 on: May 03, 2004, 02:08:28 am »

it is a pain...

no clue.. well i'll try to download that software...
let's see... i can't spend a week on that stuff  :-\
Logged

ashram78

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: footer
« Reply #9 on: May 03, 2004, 03:09:25 am »

WOW!!!

I DID IT
THANK YOU EVERYBODY FOR YOUR SUPPORT
THAK YOU GAU GAU

 :)
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 22 queries.