Announcement

Collapse
No announcement yet.

Hiding Quick Search

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

    Hiding Quick Search

    Hello,

    I'm trying to stop Quick Search from showing on any of my pages. Although I'm very close, I seem to be missing something.

    The following instruction is given in the Knowledge base.

    Select 'Advanced | Template Manager' and locate the general header layout template 'Act_Header.html'. Locate the variable...

    NETQUOTEVAR:SIMPLESEARCH

    replace it with...

    <!-- NETQUOTEVAR:SIMPLESEARCH -->


    I can't see that this actually does anything! However, I repeated this in the Act_Primary and Quick Search disappears! Great, except that I'm left with the black line that underlined Quick Search.

    As my knowledge of HTML is still very small (Only on Chapter 4!) I'm guessing that the following code creates this black line

    <table width="100" border="0" cellspacing="0" cellpadding="0" align="center">

    I have tried commenting it out as shown below (if that's the right expression) to see what would happen.

    <!--table width="100" border="0" cellspacing="0" cellpadding="0" align="center"-->

    It does remove the line but replaces it at the bottom of the page on the left hand side!

    Can anybody help and tell me what I'm missing or where I'm going wrong?

    Many thanks

    Myles Sinclair
    www.magicalwonders.com

    #2
    Nearly there...

    O.K., I've deleted the code that makes the line and I've managed to stop the line from reappearing at the bottom of page, but I've now got a vertical black line on the right hand side of the page!

    It runs level with the top and bottom of my content box on the page.

    Here's a copy of the code for that part of the page. Can anyone spot where I've gone wrong?

    </td>
    <td valign="top" width="110" bgcolor="#00cdfe"><br>
    <!-- NETQUOTEVAR:SIMPLESEARCH -->
    <td bgcolor="NETQUOTEVAR:FGCOLORCSS">


    Hope someone can help

    Thanks

    Myles
    www.magicalwonders.com

    Comment


      #3
      I guess this is not how you put your headline in bold then!

      Myles
      www.magicalwonders.com

      Comment


        #4
        The <table> tag in HTML produces a table of rows and columns that you can insert content into. It's main purpose is to control the layout of those items.

        Removing a <table> tag without removing the corresponding </table> that closes a particular table can have horrible consequences for the rest of your layout.

        It's hard to debug code from memory so I think you'll have to show us the page you're working on (if it's on a server somewhere) or show us a bit more code to give us a clue. Put the <table> back in and show us all the code that's between the <table> and the </table> tags. The line is probably somewhere in there.

        Mike
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          Hi Mike,

          My site isn't uploaded yet so here is a before and after of my Act_primary. I'm using clean layout No.14 which has sidebars on both sides of the page, and I've managed to include a blue border at the bottom of page.

          The original before I started snipping away is as follows...

          <BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR marginwidth="5" marginheight="5">
          <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#00cdfe">
          <tr>
          <td>NETQUOTEVAR:LOGOIMAGE</td>
          <td align="right">&nbsp;</td>
          </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#00cdfe">
          <tr>
          <td>&nbsp;</td>
          <td align="right">NETQUOTEVAR:FOOTERGUIDE&nbsp;</td>
          </tr>
          </table>

          <table width="100%" border="0" cellspacing="0" cellpadding="5" height="100%">
          <tr>

          <td bgcolor="#00cdfe" valign="top" width="110"> <br>
          NETQUOTEVAR:TOPLEVELSECTIONSTOP </td>
          <td valign="top">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
          <TR>
          <TD VALIGN="MIDDLE" ALIGN="LEFT" >
          NETQUOTEVAR:FORMBEGIN
          <A NAME="top">
          <INPUT TYPE=HIDDEN NAME=RANDOM VALUE="NETQUOTEVAR:RANDOM">
          </A> NETQUOTEVAR:HIDDENFIELDS
          <!-- If customer accounts are in operation following two lines allow displaying -->
          <!-- User name and customer account name on every page -->
          <!-- NETQUOTEVAR:LOGINLINK --><Actinic:NOWSERVING/><Actinic:CURRACCOUNT/><Actinic:LOGOUT_SIMPLE/><br>
          <!-- NETQUOTEVAR:HEADER -->
          <span class="actxsmall">NETQUOTEVAR:HEADERTEXT<br>
          <br>
          </span> NETQUOTEVAR:BULK <br>
          <br>
          <span class="actxsmall">NETQUOTEVAR:FOOTERTEXT</span>
          <!-- NETQUOTEVAR:FOOTER -->
          NETQUOTEVAR:FORMEND<br>
          </TD>
          </TR>
          </TABLE>
          </td>
          <td valign="top" width="110" bgcolor="#00cdfe"><br>
          <!-- NETQUOTEVAR:SIMPLESEARCH --> <br>
          <br>
          <table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
          <td bgcolor="NETQUOTEVAR:FGCOLORCSS">
          <div align="center"> <span class="actxxsmall"> <font color="NETQUOTEVAR:BGCOLORCSS">
          <script language="JavaScript">
          <!--
          document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
          document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
          // -->
          </script>
          </font></span> </div>
          </td>
          </tr>
          </table>

          <!-- coupon entry begins -->
          NETQUOTEDEL:CAPTURECOUPON
          <br>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
          <form method="NETQUOTEVAR:CGIMETHOD" action="NETQUOTEVAR:CGIURL">
          <tr>
          <td colspan="2" valign="top"><strong>NETQUOTEVAR:COUPONTITLE</strong></td>
          </tr>
          <tr>
          <td colspan="2" valign="top">NETQUOTEVAR:COUPONMESSAGE </td>
          </tr>
          <tr>
          <td valign="top"><input type="TEXT" name="COUPONCODE" size="15" maxlength="255" value="NETQUOTEVAR:COUPONCAPTION" onFocus="this.value='';this.style.background='#FFFFFF'"></td>
          <td><input type="SUBMIT" name="ACTION" value="NETQUOTEVAR:COUPONACTION"></td>
          </tr>
          </form>
          </table>
          NETQUOTEDEL:CAPTURECOUPON
          <!-- coupon entry ends -->

          </td>
          </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="5"
          bgcolor="#00cdfe">
          <tr style='height:100px;'>
          <td>
          &nbsp;
          </td>
          </tr>
          </table>

          </BODY>
          </HTML>
          <!-- Primary HTML end -->


          And now it looks like this.....

          <BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR marginwidth="5" marginheight="5">
          <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#00cdfe">
          <tr>
          <td>NETQUOTEVAR:LOGOIMAGE</td>
          <td align="right">&nbsp;</td>
          </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#00cdfe">
          <tr>
          <td>&nbsp;</td>
          <td align="right">NETQUOTEVAR:FOOTERGUIDE&nbsp;</td>
          </tr>
          </table>

          <table width="100%" border="0" cellspacing="0" cellpadding="5" height="100%">
          <tr>

          <td bgcolor="#00cdfe" valign="top" width="110"> <br>
          NETQUOTEVAR:TOPLEVELSECTIONSTOP </td>
          <td valign="top">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
          <TR>
          <TD VALIGN="MIDDLE" ALIGN="LEFT" >
          NETQUOTEVAR:FORMBEGIN
          <A NAME="top">
          <INPUT TYPE=HIDDEN NAME=RANDOM VALUE="NETQUOTEVAR:RANDOM">
          </A> NETQUOTEVAR:HIDDENFIELDS
          <!-- If customer accounts are in operation following two lines allow displaying -->
          <!-- User name and customer account name on every page -->
          <!-- NETQUOTEVAR:LOGINLINK --><Actinic:NOWSERVING/><Actinic:CURRACCOUNT/><Actinic:LOGOUT_SIMPLE/><br>
          <!-- NETQUOTEVAR:HEADER -->
          <span class="actxsmall">NETQUOTEVAR:HEADERTEXT<br>
          <br>
          </span> NETQUOTEVAR:BULK <br>
          <br>
          <span class="actxsmall">NETQUOTEVAR:FOOTERTEXT</span>
          <!-- NETQUOTEVAR:FOOTER -->
          NETQUOTEVAR:FORMEND<br>
          </TD>
          </TR>
          </TABLE>
          </td>
          <td valign="top" width="110" bgcolor="#00cdfe"><br>
          <!-- NETQUOTEVAR:SIMPLESEARCH -->

          <td bgcolor="NETQUOTEVAR:FGCOLORCSS">
          <div align="center"> <span class="actxxsmall"> <font color="NETQUOTEVAR:BGCOLORCSS">
          <script language="JavaScript">
          <!--
          document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
          document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
          // -->
          </script>
          </font></span> </div>
          </td>
          </tr>
          </table>

          <!-- coupon entry begins -->
          NETQUOTEDEL:CAPTURECOUPON
          <br>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
          <form method="NETQUOTEVAR:CGIMETHOD" action="NETQUOTEVAR:CGIURL">
          <tr>
          <td colspan="2" valign="top"><strong>NETQUOTEVAR:COUPONTITLE</strong></td>
          </tr>
          <tr>
          <td colspan="2" valign="top">NETQUOTEVAR:COUPONMESSAGE </td>
          </tr>
          <tr>
          <td valign="top"><input type="TEXT" name="COUPONCODE" size="15" maxlength="255" value="NETQUOTEVAR:COUPONCAPTION" onFocus="this.value='';this.style.background='#FFFFFF'"></td>
          <td><input type="SUBMIT" name="ACTION" value="NETQUOTEVAR:COUPONACTION"></td>
          </tr>
          </form>
          </table>
          NETQUOTEDEL:CAPTURECOUPON
          <!-- coupon entry ends -->

          </td>
          </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="5"
          bgcolor="#00cdfe">
          <tr style='height:100px;'>
          <td>
          &nbsp;
          </td>
          </tr>
          </table>

          </BODY>
          </HTML>
          <!-- Primary HTML end -->


          No doubt you'll be able to spot where I've messed up.

          Many thanks

          Myles
          www.magicalwonders.com

          Comment


            #6
            OK. I've had a quick look and it seems to me that the line is coming from this bit that appears just before the javascript to display the cart contents:

            <td bgcolor="NETQUOTEVAR:FGCOLORCSS">

            I think the line may go away if your remove the bgcolor="NETQUOTEVAR:FGCOLORCSS" bit.

            If that doesn't work you could try the same thing with the TD statement above the simplesearch line.

            I looked at the code in isolation so I can't be sure, but I think the reason you're seeing a line is that the javascript for the cart contents isn't displaying anything and so the coloured box that's set up for them is reduced down to a single line. If you see the cart contents then I'm wrong and you can ignore this paragraph.

            Mike
            -----------------------------------------

            First Tackle - Fly Fishing and Game Angling

            -----------------------------------------

            Comment


              #7
              Hi Mike,

              Thanks for taking the time to look at this.

              To add to my confusion I've been switching back and forth from two different machines and getting what seems to be two different results for the same code!

              Finally I twigged (remembered) that my machine running XP Sp2 automatically blocks certain content. Although this is not a problem when browsing uploaded sites, it is a nuisance when viewing previews locally. It would seem that users have to click "allow blocked content" each time the site is previewed. As this is such a pain, I stopped doing it a couple of weeks ago. (big mistake!)

              Anyway when allowing blocked content, my horizontal black line shows correctly as a black box containing "Items" and "Value" desplayed in white text!

              I've commented out bgcolor="NETQUOTEVAR:FGCOLORCSS" To see what is affected on the page. It gets rid of the black box but the white text remains!

              I'll experiment some more and see what happens.

              Many thanks,

              Myles
              www.magicalwonders.com

              Comment

              Working...
              X