Advanced search  

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

Pages: [1]   Go Down

Author Topic: Main Menu  (Read 3476 times)

0 Members and 1 Guest are viewing this topic.

Saskia

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Main Menu
« on: May 21, 2005, 08:25:16 pm »

I have a problem. http://membres.lycos.fr/tomachivasaskia/coppermine/index.php {MAIN_MENU} won't show the menu. It is text. What is wrong?
« Last Edit: May 22, 2005, 03:30:55 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Main Menu
« Reply #1 on: May 21, 2005, 08:41:58 pm »

Seems to be an issue with your custom theme. It works fine with classic:
http://membres.lycos.fr/tomachivasaskia/coppermine/?theme=classic
Logged

Saskia

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Main Menu
« Reply #2 on: May 21, 2005, 11:05:57 pm »

How can I fix it? Is anything wrong with my template.html?
Code: [Select]
<script language="javascript">

myreg=new RegExp("lycos\.fr","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}

if(window == window.top) {
        var address=window.location;
        var s='<html><head><title>'+'</title></head>'+
        '<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
        '<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.multimania.lycos.fr/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame"  marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
        '</frameset>'+
        '</html>';

        document.write(s);     
}
</script>
 <!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={CHARSET}"

/>
 <meta http-equiv="Pragma" content="no-cache" />
 {META}
 <link rel="stylesheet" href="themes/testy/style.css" />
 <script type="text/javascript" src="scripts.js"></script>
 <!--
 $Id: template.html,v 1.4 2004/07/24 15:04:23 gaugau Exp $
 -->
 </head>
 <body bgcolor="#CCCCCC">
 <center><table width="75%" height="200" border="0">
         <td valign="image" style="border: 5px solid #FFFFFF;" height="200"><a href="index.php"><img src="themes/classic/images/site_logo.png" alt="" border="0" /></a></td></table>


<table width="75%" height="50" width="200" border="0">
         <td valign="top" style="border: 5px solid #FFFFFF;" width=100%>{MAIN_MENU}</td></table>                             
<table width="75%" height="50" width="200" border="0">
         <td valign="top" style="border: 5px solid #FFFFFF;" width=100%>{LANGUAGE_SELECT_FLAGS}<br>{LANGUAGE_SELECT_LIST}&nbsp;
                                         {THEME_SELECT_LIST}
</td></table>

  <table width="75%" height="61" border="0">
         <td valign="top" style="border: 5px solid #FFFFFF;" width=100%>

                                         {ADMIN_MENU}</td></table>
                                         <table width="75%" height="61" border="0">
         <td valign="top" style="border: 5px solid #FFFFFF;" width=100%>{GALLERY}
                                 </td>
                         </tr>
                 </table>
         </td>
 </tr>
 </table>
 </body>
 </html>

</pre></xmp></noscript><script language="javascript" src="http://ads.multimania.lycos.fr/ad/test_frame_size.js"></script>

<script language="javascript">
if (!AD_clientWindowSize()) {
        document.write("<NOSC"+"RIPT>");
}
</script>

<script type="text/javascript">
        function setCookie(name, value, expires, path, domain, secure) {
           var curCookie = name + "=" + escape(value) +
             ((expires) ? "; expires=" + expires.toGMTString() : "") +
             ((path) ? "; path=" + path : "") +
             ((domain) ? "; domain=" + domain : "") +
             ((secure) ? "; secure" : "");
           document.cookie = curCookie;
        }

        var ad_url = "http://ads.multimania.lycos.fr/ad/google/frame.php?_url="+escape(self.location)+"&gg_bg=&gg_template=&mkw=&cat=noref";
        var ref=window.document.referrer;

        if(parent.LycosAdFrame) {
                if(parent.memberPage && parent.memberPage.document.title ) {
                        parent.document.title=parent.memberPage.document.title;
                }

                if(parent.LycosAdFrame && parent.LycosAdFrame.location && (ref != "" && (ref+"?" != window.location) && (ref.substr(ref.length-1,1) != "/")) ) {
parent.LycosAdFrame.location.replace(ad_url);
                }
                setCookie("adFrameForcePHP",0,0," ");
parent.document.body.cols = "*,140";
        }
        else if(top.LycosAdFrame && top.LycosAdFrame.location) {
                if ((ref != "" && (ref+"?" != top.window.location) && (ref.substr(ref.length-1,1) != "?"))) {
top.LycosAdFrame.location.replace(ad_url);
                }
                setCookie("adFrameForcePHP",0,0," ");
top.document.body.cols = "*,140";
        }
        else {
                if (!window.opener) {
                        setCookie("adFrameForcePHP",1,0," ");
                }
                else {
                        setCookie("adFrameForcePHP",0,0," ");
                }
        }

if (window.top.location.href.indexOf("http://membres.lycos.fr")!=-1) {
ad_frame = 1 ;
window.top.document.body.cols="*,140" ;
}

function resizeGoogleAdFrame() {
window.top.document.body.cols = "*,140";
}


if (ad_frame == 1 && AD_clientWindowSize()) {
setInterval("resizeGoogleAdFrame()", 30);
}

</script>

<script language="javascript" src="http://ads.multimania.lycos.fr/ad/popunder_lycos_update.php?CC=fr"></script>

<script type="text/javascript" src="http://ads.multimania.lycos.fr/ad/ad.php?cat=noref&mkw=&CC=fr&ord=896c92f5&adpref="></script>

<!-- START RedSheriff Measurement V5.01 -->
<!-- COPYRIGHT 2002 RedSheriff Limited -->

<script language="JavaScript" type="text/javascript"><!--
  var _rsCI='lycos-fr';
  var _rsCG='noref';
  var _rsDT=1;
  var _rsSI=escape(window.location);
  var _rsLP=location.protocol.indexOf('https')>-1?'https:':'http:';
  var _rsRP=escape(document.referrer);
  var _rsND=_rsLP+'//secure-uk.imrworldwide.com/';

  if (parseInt(navigator.appVersion)>=4) {
    var _rsRD=(new Date()).getTime();
    var _rsSE=0;
    var _rsSV='';
    var _rsSM=0;
    _rsCL='<scr'+'ipt language="JavaScript" type="text/javascript" src="'+_rsND+'v5.js"><\/scr'+'ipt>';
  } else {
    _rsCL='<img src="'+_rsND+'cgi-bin/m?ci='+_rsCI+'&cg='+_rsCG+'&si='+_rsSI+'&rp='+_rsRP+'">';
  }
  document.write(_rsCL);
//--></script>
<noscript>
<img src="//secure-uk.imrworldwide.com/cgi-bin/m?ci=lycos-fr&amp;cg=noref" alt="">
</noscript>
<!-- END RedSheriff Measurement V5 -->
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Main Menu
« Reply #3 on: May 22, 2005, 12:08:42 am »

Well, you aren't following HTML coding standards.  Nothing before <!DOCTYPE> and nothing after </html>.

There could also be problems in your theme.php file.  You should compare how the classic template.html and theme.php files are laid out to your versions.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Saskia

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Main Menu
« Reply #4 on: May 22, 2005, 03:09:57 am »

Thank you a lot kegobeer!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.