Announcement

Collapse
No announcement yet.

Suggested New Articles for KB

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

    #31
    More info on ActCBNMaker

    If you want to use Actinic colouriser to change the default theme images to your own shade

    The only documentation there is for this is in the knownledge base: http://knowledge.actinic.com/acatalo...gn.html#aKB506

    Comment


      #32
      Stop the bounce back to product just bought after add to cart

      On adding to cart, the shoppping cart shows, if you want to keep this page visible until the customer clicks continue shopping or checkout

      Go to 'Design | Design Options', set the bounce delay to '0'.

      Comment


        #33
        V8 - Some default page titles for non section/product pages

        Code:
        <title>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27" ><actinic:variable name="PageTitle" /> @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%200%27" >Checkout Step 1 @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%201%27" >Checkout Step 2 @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%202%27" >Checkout Step 3 @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Shopping%20Cart%27" >Your Shopping Basket with <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Add%20To%20Cart%20Confirmation%27" >Selection Added to Basket</actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Receipt%27" >Your Receipt from <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Search%27" >Search our Site @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Search%20Results%27" >Your Search Results with <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Bounce%20Page%27" >Forwarding you to the next page...</actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Site%20Map%27" >	Sitemap @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Terms%20And%20Conditions%27" >	Help @ <actinic:variable name="CompanyName" /></actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Section%27">
        		<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200">
        		<actinic:variable name="PageTitle" /> @ <actinic:variable name="CompanyName" />
        		</actinic:block>
        		<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200" >
        		test
        		</actinic:block>
        </actinic:block>
        </title>

        Comment


          #34
          How to make other info box larger to take more input from customer

          Advanced Guide, page 94. "Having a larger box for the 'Other Info' Prompt". This gives you a text area to type in.

          Comment


            #35
            V8 - Reverse &lt;title&gt; to show sectionname, company

            and not company, sectionName

            Code:
            <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Section%27"><actinic:variable name="SectionName" />, <actinic:variable name="CompanyName" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Section%27" ><actinic:variable name="PageType" />, <actinic:variable name="CompanyName" /></actinic:block>

            Comment


              #36
              V8 - How to reset extended windows width and height

              you've set extended width and height to one set of values say 400x500, but now want to change them all to 300x400.

              Set the available place of setting to only available at site level, save and exit, then after restart, change place of setting back to product level to inherit the new default values.

              Comment


                #37
                V8 -Add price at section level if you have one product per section

                Code:
                <actinic:block type="ProductList" >
                <actinic:block type="PriceList" >
                <actinic:variable name="PriceLayout" />
                </actinic:block>
                </actinic:block>

                Insert this in the section layout, please note this is based on 1 product per section.

                Comment


                  #38
                  V8 - Prevent site loading in popup window when closing popup

                  If you have add to cart button within extended info (as pop up) you click on add to cart and the site then loads in to the pop up rather than than main site page - to prevent this

                  You need to make sure that the each page open has a unique name. Add this JavaScript in the overall layout.

                  Code:
                  <script language="JavaScript">
                  <!-- (V11)
                  // set the window name to unique value
                  Now = new Date();
                  var WindowName = "W" + Now.getTime();
                  window.name = WindowName;
                  //-->
                  </script>
                  Then in the popup window you need to give the FORM a name "popform" and have some JavaScript in the BODY tag like

                  Code:
                  onload="if ( opener ){ if ( opener.WindowName ) document.forms.popform.target = opener.WindowName; }"

                  Comment


                    #39
                    How to forward index.html to acatalog/index.html

                    Sometimes you want your site to open directly at the acatalog page - this is where all the links to the rest of the shop are, thus bypass the index at root (ie don't have a brochure page)

                    This can be done a server level using htaccess (unix servers only)

                    (Dont use javascript will mean none of your pages get indexed as search engines don't move on beyond the first page.)

                    Create a blank text file and add the following to it:

                    Redirect permanent /index.html http://www.YOURSITE.co.uk/acatalog/index.html

                    Then save it as '.htaccess' - no quotes, no .txt extension, dot in front.

                    Then upload it with an FTP program to the root directory. This will also only work on Unix or Linux servers, not Windows.


                    OR

                    Click on your home page icon in the content tree and then in the Page details area uncheck 'Use as Web Site Home Page'. Now go to 'Design | Design Options | Home Page Link' and select 'None', this will make your catalog page your home page.

                    Comment


                      #40
                      v8 - how not to display an image in preview mode

                      Sometimes you need to show logos/SSL cert authentication etc on a page, but would prefer not to show it in preveiw mode as it either slows the preview down or you aren't working online

                      Here's the condition - working example is the geotrust SSL logo

                      Code:
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >
                      <script language="javascript" TYPE="text/javascript" src="http://smarticon.geotrust.com/si.js"></script>
                      </actinic:block>

                      Comment


                        #41
                        mod rewrite cgi-bin static search path trick

                        in your .htaccess file:

                        Code:
                        RewriteEngine on
                        Options +FollowSymLinks
                        RewriteRule search/([0-9A-Za-z]+).htm  http://www.yourfulldomain.com/cgi-bin/ss000001.pl?SS=$1&action=Go%21&PR=-1&TB=A&SHOP=
                        now, go here on your server:
                        to search for the word 'term' in your catalog.

                        this can be googled and will appear as a normal link in google.

                        here it is in action:
                        http://www.skateasylum.co.uk/products/heelys.htm

                        Comment


                          #42
                          enable php scripts on plain htm files

                          add this to your htaccess:
                          AddHandler application/x-httpd-php .htm .html
                          to enable <? php ?> tags on plain htm and html files.

                          and allowing php in js and css files?
                          AddHandler application/x-httpd-php .js .css
                          php generated css and javascript are _complicated_. take great care!

                          note:
                          some servers may be configures differently, this solution may not work for you under certain circumstances.

                          Comment


                            #43
                            force /acatalog/layout.css even when /layout.css is requested.

                            in htaccess:
                            RewriteCond %{REQUEST_FILENAME} !-f
                            RewriteRule layout.css acatalog/layout.css
                            why?
                            actinic only really manages the link to its own stylesheet. changing the path for brochure pages and such.

                            <style src="layout.css">

                            will be silently be rewritten to acatalog/layout.css, since adding 'layout.css' as an extra file puts this file in the acatalog folder only, and nto the root.

                            well... seemed logical to me

                            Comment


                              #44
                              htaccess: blocking webspiders site rippers and social networking sites

                              Code:
                              RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] 
                              RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] 
                              RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] 
                              RewriteCond %{HTTP_USER_AGENT} ^Zeus [OR]
                              
                              
                              RewriteCond %{HTTP_REFERER} myspace\.com [NC,OR]
                              RewriteCond %{HTTP_REFERER} freewebs\.com [NC,OR]
                              RewriteCond %{HTTP_REFERER} blogspot\.com [NC,OR]
                              RewriteCond %{HTTP_REFERER} livejournal\.com [NC,OR]
                              RewriteCond %{HTTP_REFERER} typepad\.com [NC]
                              
                              
                              RewriteRule .* - [F]

                              the top block stops all sorts of different web spiders.
                              the next one is for social networking sites, bloggers, including image theft.
                              gawd i bloody hate myspace. bandwidth theiving f*****s.

                              Comment


                                #45
                                dynamic resizing of images at the server.

                                dynimage.php
                                Code:
                                <?php
                                function imageScale($image, $newWidth, $newHeight)
                                {
                                	if(!$size = @getimagesize($image))
                                		die("Unable to get info on image $image");
                                	
                                	$ratio = ($size[0] / $size[1]);
                                	
                                	//scale by height
                                	if($newWidth == -1)
                                	{
                                		$ret[1] = $newHeight;
                                		$ret[0] = round(($newHeight * $ratio));
                                	}
                                	else if($newHeight == -1)
                                	{
                                		$ret[0] = $newWidth;
                                		$ret[1] = round(($newWidth / $ratio));
                                	}
                                	else
                                		die("Scale Error");
                                	
                                	return $ret;
                                }
                                // The file
                                $filename = $_GET['filename'];
                                
                                if(isset($_GET['height'])) {$newheight = $_GET['height'];} else {$newheight = 32;}
                                if(isset($_GET['quality'])) {$quality = $_GET['quality'];} else {$quality = 65;}
                                
                                // Content type
                                header('Content-type: image/jpeg');
                                header("Last-Modified: " . gmdate("D, d M Y H:i:s",mktime (0,0,0,1,1,2000)) . " GMT");  // Date in the past
                                header("Expires: Mon, 26 Jul 2040 05:00:00 GMT");    // In other words... never expire the image
                                header("Cache-Control: max-age=10000000, s-maxage=1000000, proxy-revalidate, must-revalidate");//Cache-Control header is 
                                /**/
                                // Get new dimensions
                                list($width, $height) = getimagesize($filename);
                                $scale = imageScale($filename, -1, $newheight);
                                
                                // Resample
                                $image_p = imagecreatetruecolor($scale[0], $scale[1]);
                                $image = imagecreatefromjpeg($filename);
                                imagecopyresampled($image_p, $image, 0, 0, 0, 0, $scale[0], $scale[1], $width, $height);
                                
                                // Output
                                imagejpeg($image_p, null, $quality);
                                ?>
                                is code to use php to resize images at the server level. your server needs PHP (duh) and also the gd image library (commonly compiled into php nowadays).

                                use it like this:
                                <img src="dynimage.php?filename=imagename.jpg&height=75&quality=50">

                                to resize the image called imagename.jpg to 75 pixels hight (to its correct ratio width) at 50% quality.

                                Comment

                                Working...
                                X