PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

[bug?]Zoom overwritting hardcoded in template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [bug?]Zoom overwritting hardcoded in template

    I am using the CGI version of Zoom and just customized my template to try and get the search results to look like the reset of my site but it seams that Zoom is overwridding some of the template code. In my code I have a few lines before the tag to customize the look

    Code:
    <td class="bordercenter" width="650px"><table border="0" width="100%">
    <tr>
    <td class="submenuinfo">
    When I plcae the to make the code look like this:

    Code:
    <td class="bordercenter" width="650px"><table border="0" width="100%">
    <tr>
    <td class="submenuinfo">
    My <tr> and <td> tags are removed by zoom. If I please the tag on it's own line after the <td> then everything works. So I am thinking there is some odd bug in the CGI version.

  • #2
    I had to put some td and table tags around the results on my page.

    Here's a snippet.

    Code:
    <td width="100%" valign="top">
    <table border="0" cellpadding="0" cellspacing="0">
       <p class="bodytext">
       Enter one or more keywords to search the website.
    
       Note that '*' and '?' wildcards are supported.
       </p>
       
    </table>
    </td>

    Comment


    • #3
      Originally posted by broman
      I had to put some td and table tags around the results on my page.

      Here's a snippet.

      Code:
      <td width="100%" valign="top">
      <table border="0" cellpadding="0" cellspacing="0">
         <p class="bodytext">
         Enter one or more keywords to search the website.
      
         Note that '*' and '?' wildcards are supported.
         </p>
         
      </table>
      </td>
      I do not understand what that has to do with my issue. I already have the <td> tages in place. If I add more it would break the xHTML complincy of the page.

      Comment


      • #4
        If you could post the entire code from your search_template.html (not the view source from the browser) or point us to the search engine on your site (if public) that would be a great deal of help.

        Comment


        • #5
          Here is the hardcode from the template beforeward, my coding style usaly gives people headaces when they try to read it.
          Code:
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html>
          <head>
          <title>Search Final Fantasy Info.com</title>
          <meta name="publisher" content="Matt Verstraete" />
          <meta name="copyright" content="2003-2005 Matthew Verstraete and Final Fantasy Info.com" />
          <meta http-equiv="Expires" content="-1" />
          <meta http-equiv="pragma" content="no-cache" />
          <meta http-equiv="cache-control" content="no-cache" />
          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
          <meta name="keywords" content="Final Fantasy, I, II, III, IV, V, VI, VII, VIII, IX, X, X-2, XI, XII, Mystic Quest, Tactics, Tactics Advanced, Legend, Chocobo, Racing, Ehrgeiz, Kingdom Hearts, Disney, 2, Adventure, I/II, Dawn of Souls, Chain of Memories, Hataraku, Dice, Anthology, Chronicles, Collection, Origins, Dungeon, Stallion, Spirits Within, Legend of the Crystals, Unlimited, Advent Children, Itadaki, Images, Wallpaper, Fan Art, Fan Fic, FanFic, Fan Fiction, Skins, Icons, Avatars, Theme, Program, Walkthough, Video, Review, Lyric, Song, Music, Square Soft, Square-Enix, Square, Wonderswan, Game Boy, Game Boy Advance, Game Cube, NES, SNES, Super NES, Playstation, PS, PS2, PSX, PSone, PSP, PC, Computer, DVD, VHS, Movie, Anime, RPG, Role Playing, Crystal, FF, Game, Before Crisis, Crisis Core, Dirge of Cerberus, " />
          <meta name="description" content="Search Final Fantasy Info.com" />
          <link rel="stylesheet" type="text/css" href="../css/general-layout.css" />
          <link rel="stylesheet" type="text/css" href="../css/navagation.css" />
          <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
          <script type="text/javascript" language="javascript" src="../javascript/navigation.js"></script>
          <script type="text/javascript" language="javascript" src="../javascript/status.js"></script>
          <script type="text/javascript" language="javascript" src="../javascript/highlight.js"></script>
          <style type="text/css"><!--
          .highlight {background: #ffff40}
          .searchheading {font-size: 130%; font-weight: bold}
          .summary {font-size: 80%; font-style: italic} 
          .results {font-size: 100%}
          .category {color: #999999}
          .description {font-size: 100%; color: #008000}
          .context {font-size: 100%}
          .infoline {font-size: 80%; font-style: normal; color: #808080}
          .sorting {text-align: right}
          .result_title {font-size: 100%}
          .zoom_searchform {font-size: 100%; text-align: center}
          .zoom_options {font-size: 80%}
          input.zoom_button {}
          input.zoom_searchbox {}
          --></style>    
          </head>
          <body onload="highlight()">
          <p class="center" style="margin-bottom: 1px">[img]../images/misc/sitebanner.jpg[/img]</p>
          <p class="center" style="margin-top: 0px; margin-bottom: 0px">
          <span style="padding-left: 5px; padding-right: 5px" id="sitestuffmain" class="mainmenu" onmouseover="show('sitestuff'); leftpos('sitestuff')" onmouseout="hide('sitestuff')">Site Stuff</span>
          <span style="padding-left: 5px; padding-right: 5px" id="nesmain" class="mainmenu" onmouseover="show('nes'); leftpos('nes')" onmouseout="hide('nes')">NES/SNES</span>
          <span style="padding-left: 5px; padding-right: 5px" id="gbmain" class="mainmenu" onmouseover="show('gb'); leftpos('gb')" onmouseout="hide('gb')">Portable Devices</span>
          <span style="padding-left: 5px; padding-right: 5px" id="psmain" class="mainmenu" onmouseover="show('ps'); leftpos('ps')" onmouseout="hide('ps')">PS</span>
          <span style="padding-left: 5px; padding-right: 5px" id="ps2main" class="mainmenu" onmouseover="show('ps2'); leftpos('ps2')" onmouseout="hide('ps2')">PS2</span>
          <span style="padding-left: 5px; padding-right: 5px" id="pcmain" class="mainmenu" onmouseover="show('pc'); leftpos('pc')" onmouseout="hide('pc')">PC</span>
          <span style="padding-left: 5px; padding-right: 5px" id="gamecubemain" class="mainmenu" onmouseover="show('gamecube'); leftpos('gamecube')" onmouseout="hide('gamecube')">Game Cube</span>
          <span style="padding-left: 5px; padding-right: 5px" id="moviesmain" class="mainmenu" onmouseover="show('movies'); leftpos('movies')" onmouseout="hide('movies')">TV Series/Movies</span>
          <span style="padding-left: 5px; padding-right: 5px" id="multimediamain" class="mainmenu" onmouseover="show('multimedia'); leftpos('multimedia')" onmouseout="hide('multimedia')">Multimedia/Fan Stuff</span></p>
          <div style="left: 0px" id="sitestuff" class="hidden" onmouseover="show('sitestuff')" onmouseout="hide('sitestuff')">About This Site
           
          Coming Soon
           
          </td>
          </tr>
          </table>
          <table width="100%" border="0" class="center">
          <tr>
          <td class="submenuinfo" style="text-align: center">
           
          <script type="text/javascript"><!--
          google_ad_client = "pub-9691318285256745";
          google_ad_width = 125;
          google_ad_height = 125;
          google_ad_format = "125x125_as";
          google_ad_channel ="";
          google_color_border = "6699CC";
          google_color_bg = "5B0729";
          google_color_link = "FFFFFF";
          google_color_url = "C0C0C0";
          google_color_text = "FFFFFF";
          //--></script>
          <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p></td>
          </tr>
          </table></td>
          <td class="bordercenter" width="650px"><table border="0" width="100%">
          <tr>
          <td class="submenuinfo">
          <p class="center"><script type="text/javascript"><!--
          google_ad_client = "pub-9691318285256745";
          google_ad_width = 468;
          google_ad_height = 60;
          google_ad_format = "468x60_as";
          google_ad_channel ="";
          google_color_border = "0F1535";
          google_color_bg = "5B0729";
          google_color_link = "FFFFFF";
          google_color_url = "C0C0C0";
          google_color_text = "FFFFFF";
          //--></script>
          <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
          </td>
          </tr>
          </table></td>
          </tr>
          <tr>
          <td colspan="2">
          <p class="copywrite">Site Design &amp; Original Content Copyright &copy; 2003-2005 Matthew Verstraete and Final Fantasy Info.com All Rights Reserved
          [URL="http://http://validator.w3.org/check?uri=referer"][IMG]http://www.finalfantasyinfo.com/images/misc/valid-xhtml10.png[/IMG][/URL]
          [URL="http://http://jigsaw.w3.org/css-validator/check/referer/"][IMG]http://www.finalfantasyinfo.com/images/misc/vcss.png[/IMG][/URL]
           
          &copy;2001-2003 SQUARE ENIX CO., LTD. All Rights Reserved.
           
          FINAL FANTASY &amp; Vana'diel are registered trademarks of Square Enix Co,. Ltd.
           
          The SQUARE ENIX logo &amp; PlayOnline logo are trademarks of Square Enix Co,. Ltd.
           
          This site is best viewed at 800 * 600 using the latest version of FireFox, Netscape Navigator, Opera, or Internet Explorer with JavaScript Enabled
           
          Get the latest versions of FireFox, Netscape Navigator, Opera, Internet Explorer</p></td>
          </tr>
          </table>
          </body>
          </html>

          URL:

          If I move to it's own line in the code it fixes this problem.

          Comment


          • #6
            Yes, that is required. The default "search_template.html" file specifically states that the comment needs to be on a line of its own.

            Code:
            <!-- 
            The ZOOMSEARCH tag below marks the place where your search form and search results will be inserted when you run the search script. By default, you do not need to place a search form here, the search script will generate one and display it before the search results. Also note that the ZOOMSEARCH tag should be on a seperate line of its own.
            -->
            --Ray
            Wrensoft Web Software
            Sydney, Australia
            Zoom Search Engine

            Comment


            • #7
              How odd, there was no comments in my first search_template file. O well.

              Comment


              • #8
                The comment is in the default search template, unless it was modified (eg. loaded into a HTML editor which has "strip comments" options enabled). Or of course, you may have removed it yourself unknowingly. We realize it's pretty easy for people to ignore HTML comments, so we'll make some more prominent mention of this in the Users Guide for a future update.
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment


                • #9
                  Originally posted by Ray
                  The comment is in the default search template, unless it was modified (eg. loaded into a HTML editor which has "strip comments" options enabled). Or of course, you may have removed it yourself unknowingly. We realize it's pretty easy for people to ignore HTML comments, so we'll make some more prominent mention of this in the Users Guide for a future update.
                  That might be a good idea, I have a bad tendincy of striping all code from templates before moding them to match my site so I could have missed it to.

                  Comment

                  Working...
                  X