Announcement

Collapse
No announcement yet.

Site loads slow

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

    #31
    i replaced NETQUOTEVAR:SECTIONTREE_RAW

    with NETQUOTEVAR:SECTIONTREE_RAW as Norman suggested, this is shown in the block that i posted.

    but then you said if its in that block then it doesnt matter. does that line need to be somewhere else then?

    sorry i dopnt know if primary_left and right are being used. is there a way of checking?

    Comment


      #32
      What Norman said was to replace

      <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

      which should appear outside the block in exactly that format

      with

      NETQUOTEVAR:TOPLEVELSECTIONS_RAW

      In other words - overtype the SECTIONTREE_RAW with TOPLEVELSECTIONS_RAW.

      If you do not have a line in the template that reads <!--@ act etc. but instead have raw javascript, then the <!--@ act line should replace that raw javascript.

      One way to check is to first visit Design | Options - Layout ytab and check the first line (Default Overall Layout) - click the edit button and see which template opens, take note and then close that template file. Now click the catalogue home page in the Actinic Section tree on the left and change to the Layout tab on the right. Look at the Overall Template box - If it says Act_Primary.html or Use Parent, then that page is probably OK. Click the next page and look again - till all pages have been checked.
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #33
        ah there are no '<!--@act....' outside of the block. in act_primary the java scripting is:

        <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
        <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>


        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
        <!--
        function YahooSections1(ar,ar1)
        {
        var strIDs = '';
        for (var i=1;i<=ar.length;i++)
        {
        if (ar1[i].sURL != null)
        {
        strIDs += '<a href="' + ar1[i].sURL + '"><span class="actxxsmall"><font size="2" color="NETQUOTEVAR:FGCOLORCSS">' +
        ar[i].sName + '</font></span></a><br>';
        }
        }
        return strIDs
        }
        //-->
        </SCRIPT>


        do i replace this with NETQUOTEVAR:TOPLEVELSECTIONS_RAW then?

        Comment


          #34
          The first two lines which specify the external javascript files should stay in place.
          <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
          <!--
          function YahooSections1(ar,ar1)
          {
          var strIDs = '';
          for (var i=1;i<=ar.length;i++)
          {
          if (ar1[i].sURL != null)
          {
          strIDs += '<a href="' + ar1[i].sURL + '"><span class="actxxsmall"><font size="2" color="NETQUOTEVAR:FGCOLORCSS">' +
          ar[i].sName + '</font></span></a><br>';
          }
          }
          return strIDs
          }
          //-->
          </SCRIPT>
          if that is what is in the template file, should be replaced by one line which reads
          Code:
          <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #35
            right i will change that.

            the other primary page in DESIGN-OPTIONS-LAYOUTS (act_primaryCheckout) look like this:


            <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

            <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
            <!--
            function YahooSections(ar)
            {
            var strIDs = '';
            for (var i=1;i<=ar.length;i++)
            {
            if (ar[i].sURL != null)
            {
            strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + '</font></b></span></a><br>';
            {
            if (ar[i].pChild)
            {
            for (var j=1;j<=ar[i].pChild.length;j++)
            {
            if (ar[i].pChild[j].sURL != null)
            {
            strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall"><font size="2" color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].pChild[j].sName + '</font></span></a><br>';
            }
            }
            }
            }
            strIDs += '<br>'
            }
            }
            return strIDs
            }
            //-->
            </SCRIPT>



            so shall i change that first line to NETQUOTEVAR:TOPLEVELSECTIONS_RAW
            as norman stated? and then what shall i do (if anything) with the java script?

            Comment


              #36
              Yes, change the SECTIONTREE_RAW part to TOPLEVELSECTIONS_RAW.

              Delete that entire script block.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #37
                right I have implemented them changes. could you have a look at the site again and re-assess it?

                from the homepage www.thesleepshop.co.uk wait for the redirection. this takes you to the page that still contains the pictures menu on the right and the text menus on the left.

                however if you dont wait for the redirection and click 'Online shop' it takes you to a page without the menus. clicking home from here takes you to a page with the menus again.

                Comment


                  #38
                  I do not see the code that <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW --> should be producing.

                  You still have

                  <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree_names.js" TYPE="text/javascript"><!--
                  // -->
                  </SCRIPT>
                  <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree_URLs.js" TYPE="text/javascript"><!--
                  // -->
                  </SCRIPT>

                  immediately after the opening body tag which is reading those two large files.

                  Then, in the categories box you have the code

                  <script language=Javascript1.2>
                  document.write(YahooSections1(section_tree_names[2].pChild, section_tree_URLs[2].pChild))
                  </script>

                  which should have been changed to

                  <script language=Javascript1.2>
                  document.write(YahooSections(sections))
                  </script>

                  In the Manufacturers block you also have
                  <script language=Javascript1.2>
                  document.write(YahooSections1(section_tree_names[1].pChild, section_tree_URLs[1].pChild))
                  </script>

                  For now, you will need to lose that block.

                  Once the frames are gone, it will be a lot easier to help you, and you may get to a stage where the page is sufficiently reduced in size and the dual listing functionality can be brought back in.
                  Last edited by wjcampbe; 22-Feb-2006, 02:06 PM. Reason: correct the YahooSection new code
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment


                    #39
                    Originally posted by wjcampbe

                    You still have

                    <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree_names.js" TYPE="text/javascript"><!--
                    // -->
                    </SCRIPT>
                    <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree_URLs.js" TYPE="text/javascript"><!--
                    // -->
                    </SCRIPT>

                    is this bit changed in actinic? i cant find it in act_primary. or do i have to edit the html of the homepage?

                    Comment


                      #40
                      Probably comes from NETQUOTEVAR:SECTIONTREE_NAMES and
                      NETQUOTEVAR:SECTIONTREE_URLS
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #41
                        sorry i still dont understand how to change it

                        Comment


                          #42
                          ive removed them 2 java scripts now, theres stil this one though:

                          <SCRIPT LANGUAGE="JavaScript" SRC="acatalog/Act_section_tree_images.js" TYPE="text/javascript"><!-- // --></SCRIPT>

                          should i remove this as well?

                          Comment


                            #43
                            Without looking at the source of anything I'm guessing that this will be NETQUOTEVAR:SECTIONTREE_IMAGES
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #44
                              ive reduced a lot of image sizes, all i had to do was open them, save them with no changes and they reduced in size by half. anyway can you have a look and tell me what teh next step is. cheers

                              Comment


                                #45
                                i have created a test page of home.htm

                                i have removed the java scripts and replaced them with html tags which i have formatted myself in notepad. these are the hyperlinks on the left and teh image map on the right. ive tried to make it look as much like the original as possible with the difference being the amount of file size saved.

                                anyway can you have a look and let me know what you think? its:

                                http://www.thesleepshop.co.uk/hometest.htm

                                if all is well with it i will eventually upload this in the place of home.htm that is there now.

                                Comment

                                Working...
                                X