View Full Version : Suggested New Articles for KB
pinbrook
01-Jul-2007, 05:32 PM
Please can we keep this thread simply to posts with a simple Q and A for items we'd like to see added to the KB.
Especially the dreaded duplicate threads
Please mark your suggested KB with version no
Add all of Lee's thread first -- http://community.actinic.com/showthread.php?t=25664
note: whilst it appears I am the only person adding stuff to this thread, i would like to add i am doing a direct copy/paste from other threads in the community, therefore very little of this thread is my own code, and i am making no claim to it.
I am simply the collator. ;)
pinbrook
01-Jul-2007, 05:38 PM
Check you have the following code in the <head> tag of your overall layoutjust above the closing </head> tag.
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27PSP%20Bounce%20Page%27%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsPSPTestMode%22%20%2f%3e%20%3d%3d%20false%29">
<script language="JavaScript" type="text/javascript">
<!--
function onLoad()
{
document.formOCC.submit();
}
// -->
</script>
</actinic:block>
Check you have the onload layout in your body tag
To insert the onload into a layout, right click in your overall layout <body HERE
insert layout, choose OnLoadScript from the resultant box, insert.
Thus you get
body onload="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
pinbrook
01-Jul-2007, 05:42 PM
If you have one set of customers who are brand loyal and another set who shop by type of product then you're giving them both the option to drill down in the way they want.
If you have a Section structure like
By Brand
--Brand 1
----Product 1
----Product 2
----Product 3
----Product 4
--Brand 2
----Product 5
----Product 6
----Product 7
----Product 8
By Type
--Type 1
----Product 1
----Product 2
----Product 5
----Product 6
--Type 2
----Product 3
----Product 4
----Product 7
----Product 8
Then you don't have duplicated pages (some of the content is duplicated but not the entire page).
It should be possible to use the Section Structures to create 2 menus. Instead of using section_tree in your menu you could use section_tree[1].pChild and section_tree[2].pChild as the entry level for 2 menus.
pinbrook
01-Jul-2007, 05:54 PM
To resolve the following error
A General Script Error Occurred
Error: ../acatalog/217Z41Z217Z22A1181659957B14645.session can not be locked during Session init!
1 - Help Menu |Troubleshooting|Website Purge and Refresh,
2 - Check the cgi-bin (755) and acatalog (777) permissions
3 - if you use paypal/nochex edit ActinicConstants.pm as follows
Edit ActinicConstants.pm and search for PAYPAL.
You should see...
$::PAYMENT_PAYPAL = 900;
$::PAYMENT_NOCHEX = 52;
comment these lines out by preceding the lines with '#' so it reads...
# $::PAYMENT_PAYPAL = 900;
# $::PAYMENT_NOCHEX = 52;
Save and exit
Update the site.
Does the problem still occur? If it does try:
Edit Session.pm
Search for 'sub GetSessionFileName' you will see...
sub GetSessionFileName
{
my $Self = shift;
my $sID = shift;
my $sPath = $Self->GetSessionFileFolder();
return ($sPath . $sID . '.session');
}
Insert after this ...
sub DESTROY
{
my $Self = shift;
$Self->{_LOCKER}->Unlock()
}
Save and exit
Update the site
pinbrook
01-Jul-2007, 05:59 PM
This is normally because your website uses a mixture of www.mywebsite.co.uk uRLs and non www URLs ie mywebsite.co.uk.
Check for consistent URLs in your network settings
pinbrook
01-Jul-2007, 06:04 PM
Yes you can, they install into different folders.
in fact you can have V3, V4, V5, V6, V7 and V8 on the same PC.
You CANNOT have different patch levels on the same PC, ie 8.04 and 8.5.1
pinbrook
01-Jul-2007, 06:10 PM
No, you can't.
You can only rebuild Actinic from a snapshot or a copy of site1.
If the webserver is truely the only copy of your site then you will have to use copy and paste from the live site to re-populate your products. You will have to re-key Business settings, Shipping etc from scratch.
pinbrook
01-Jul-2007, 06:15 PM
SNAPSHOT METHOD
Install the same full version of Actinic on the new PC. (go to Actinic website to download software)
Import the latest snapshot into the new PC.
If you use folders outside of Site1 recreate these folders on the new PC, copy over these files on the new PC.
SITE1 METHOD
Install the same full version of Actinic on the new PC. (go to Actinic website to download software)
Copy the contents of site1 folder on old PC to site1 folder on new PC.
If you use folders outside of Site1 recreate these folders on the new PC, copy over these files on the new PC.
pinbrook
01-Jul-2007, 07:15 PM
This is often because you haven't saved your images inside the site1 folder, therefore actinic doesn't know where to find them on upload.
Try the following
1 Move all images into site1, change pathnames within product dialog box to image.jpg - without any folder/pathname
2 Move all images to a folder called images within site1, thus all images will be referenced images/image.jpg
3 Go to the website, right click on image, properties examine the pathname for the image - make sure it doesn't have a pathname to the C drive on your PC. then do 1 or 2 above
4 Check you have the correct extension on the file ie is your image called image.gif but you've referenced it as image.jpg
5 Sometimes you need to add the image filename to "additional files" especially when you are calling the file from a non standard page
6 Check the file is only gif, jpg or png
7 Check the file is a sensible size ie 2-100K
pinbrook
01-Jul-2007, 07:21 PM
Actinic has the facility to allow you to upload to a test folder so you can see the effects of changes in test mode before committing to changing the live site.
To convert to TEST mode, go to Web Menu, TEST mode
You can then see your site as follows
The root of your production site is www.mysite.com/
The production actinic store sits as www.mysite.com/acatalog/
The test site root sits at www.mysite.com/acatalog/test/
The actinic test store sits at www.mysite.com/acatalog/test/acatalog/
pinbrook
01-Jul-2007, 07:29 PM
You can add HTML to any product description, section description, fragment and so on.
!!<PUT YOUR CODE HERE>!!
eg
!!<<B>BOLD</B>>!!
!!<<font="red">THIS TEXT WILL BE RED</font>>!!
!!<<span class="cssstyle">This will format according to css in stylesheet</span>>!!
pinbrook
01-Jul-2007, 10:13 PM
if you are searching the community and can not find what you are looking for, you can use Google instead to qualify your search better.
To do this, go to www.google.co.uk, click on advanced search
on the next page - FIND
with all of the words - this will allow you to specify several words that must be in the result (actinic community search does not have this)
with the exact phrase - this will allow you to specify an exact phrase to search on (actinic community search does not have this)
with at least one of the words - this is the same as the community search that often brings back too many results
without the words - for this exercise this is useless
under DOMAIN type in community.actinic.com
Hopefully this will give you less results that are more relevant (but remember using this method will be using the Google Indexed site so it may be a few days out of date. But if you are checking to see if anyone has already asked the same question it will be worth the 2 minutes it will take
************** using inbuilt community search
You can search for 3 letter words simply by adding and asterisk after it - such as: php*
Bruce
02-Jul-2007, 11:28 AM
Jo,
I will add these to the Knowledge base.
Kind regards,
pinbrook
02-Jul-2007, 12:42 PM
1.Make sure you have the design tab selected and the Online Catalogue selected in the content tree.
2.Use the Selected page type drop down to select Actinic Stylesheet
3.Locate line number 261
4. Here you will see the following css code
_________________________________________
.page_header1 {
background-color: #000000;
margin: 0px 0px 0px 0px;
}
.page_header_content {
width: 762px;
text-align: left;
height: 130px;
___________________________________________
5. Change the values of background colour to whatever hex number you need eg #000000 for black #FFFFFF for white etc.
6. Change the page header/ height: to the height in pixels of your company logo
apply the change
pinbrook
02-Jul-2007, 12:43 PM
add this too
pinbrook
02-Jul-2007, 12:44 PM
When you get 2 section lists showing which you can trace to the code as being
SubSectionListTop
SubSectionListBottom
This can be set in Site options | Layout, under Section.... you need to set 'Bottom Subsection List Layout' to 'No Layout' and make sure in the code, on clicking Edit Appearance , Fixed Layout is set to No(), akin to , Use Parent.
Mike Hughes
02-Jul-2007, 01:10 PM
And while you're at it, go and put all the old KB articles in there too. Often in this forum a search will bring up a link saying " its in the KB here.." only that KB article no longer exists.
Mike
gabrielcrowe
02-Jul-2007, 01:18 PM
use the numbers on this page:
http://cedesign.net/asciij.htm
and this one:
http://www.dragonwinds.com/resources/html-codes.shtml
to insert symbols in standrds compliant markup like this:
!!<©>!!
for a copyright symbol, in this example.
Bruce
02-Jul-2007, 03:48 PM
And while you're at it, go and put all the old KB articles in there too. Often in this forum a search will bring up a link saying " its in the KB here.." only that KB article no longer exists.
All the articles are still there in the knowledge base, its the path that has changed, I had posted this up when it was done initially... If you come across a path that does not work then delete the folder references so that it reads like
http://knowledge.actinic.com/acatalog/.........
Not
http://knowledge.actinic.com/kadmin/users/acatalog/.........
Kind regards,
Mike Hughes
02-Jul-2007, 03:55 PM
Hi Bruce,
In which case perhaps a little apache redirect might be in order? No-one looking in the forum for advice is going to know that they have to manually correct the links to the knowledge base.
Mike
Bruce
02-Jul-2007, 04:35 PM
Yep, I will put something in place.
Kind regards,
pinbrook
02-Jul-2007, 08:30 PM
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="140" height="140" >
<param name="movie" value="http://www.mydomain.co.uk/acatalog/myswf.swf">
<param name="quality" value="high">
<embed src="http://www.mydomain.co.uk/acatalog/myswf.swf" width="140" height="140" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
Make the appropriate changes to
http://www.mydomain.co.uk/acatalog/myswf.swf
and wrap the entire code in the usual !!<place code here>!!
Duncan Rounding
03-Jul-2007, 12:08 PM
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="140" height="140" >
<param name="movie" value="http://www.mydomain.co.uk/acatalog/myswf.swf">
<param name="quality" value="high">
<embed src="http://www.mydomain.co.uk/acatalog/myswf.swf" width="140" height="140" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
Make the appropriate changes to
http://www.mydomain.co.uk/acatalog/myswf.swf
and wrap the entire code in the usual !!<place code here>!!
As Mark Hall kindly pointed out in another thread there is another method of inserting flash using swfobject which has advantages over the original Macromedia method above. See the Adobe website or the developers blog for instructions on usage for this:
http://www.adobe.com/devnet/flash/articles/swfobject.html
http://blog.deconcept.com/swfobject/
PS - I think we should leave the 'content' posts in this thread, otherwise we won't know what's already been added - per the AUG thread perhaps.
pinbrook
04-Jul-2007, 02:56 PM
Error in File C:\Program Files\Actinic Ecommerce v6\Orders.rpt:
Request cancelled by the user.
This means that your printer is invalid, and to fix it you have to go to the print setttings for that report in Actinic (so go as if to print it, then click on print setup on the printer dialog that pops up and then print it to save the changed settings).
leehack
04-Jul-2007, 02:58 PM
DESIGN | TEXT is another very popular issue, with most people not knowing about it. Or is it that they take a look and run a mile - not sure. Whatever, i think a nice guide explaining text on site is often in there, would help.
pinbrook
04-Jul-2007, 03:06 PM
Several potential solutions to check:
1 The problem is that your webserver is using 'Unicode' (UTF) as the default character set, but it should be using ISO. You need to ask your web host to edit the web server config file for your Apache server and change:
AddDefaultCharset UTF8
to
AddDefaultCharset ISO-8859-1
2 Place the following in the <head> of your overall layout <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
3 Altering Special Character Encoding
Switch to the 'Design' tab and click on any price shown in the 'Page Preview' pane.
This should highlight a variable (written in light blue and underlined) in the 'Layout Code' pane called 'TaxInclusivePrice'.
Double-click this variable to open the variable editor.
On the row called 'Encoding' click in the white box then select 'HTML' from the drop-down box.
Click 'OK'. You should see another variable called 'TaxInclusivePriceAlt' which will need the same setting altered.
Upload the site
4 create a PHP function to replace the pound symbol with the html equivalent and then modifying the price layout to use the new php function.. i.e.:
insert new function into c:\program files\actinic v8\actinic_main.php:
function priceformat($sFormat, $sPrice, $sPriceAlt)
{
echo str_replace("£","£",sprintf($sFormat, $sPrice, $sPriceAlt));
}
then modify the "Product Price Including VAT" layout
priceformat("<actinic:variable name="SecondCurrencyFormat" />","<actinic:variable name="TaxInclusivePrice" />", "<actinic:variable name="TaxInclusivePriceAlt" />");
5 DB solution in my original query I stated I have to use UTF-8 encoding as my products can have some very strange accented characters in their names. Even if this were not the case though, there are extremly good arguments in general for software to fully support UTF-8 as it is a genius form of encoding - it encompasses all the (regular) ascii characters, and collates them as expected, and it allows for (almost) all the unicode characters - all without leaving any nulls in text strings - brilliant! and all composed on the back of a napkin (just like tcp, http and all the best ideas).
IDEALLY, what I needed to do was, in the ActinicCatalogue database, currency table, SCURRENCY field for Pounds Sterling replace the ISO-8859-1 character 163, which displays as the pound sterling symbol in all single byte (ascii) encodings, with a completly generic html entity (& pound or (& # 163 but niether of these were possible as the field width was too short! (don't mention extending it - price display is then broken completly).
So - a non ideal solution (cos it ain't generic) was to get the actual UTF-8 2 byte sequence 194, 163 into this field... To do this I had to grab the ascii characters at 194 and 163 from the windows font selector and drop them into the DB field using Access, and believe it or not it has worked!
pinbrook
04-Jul-2007, 03:07 PM
DESIGN | TEXT is another very popular issue, with most people not knowing about it. Or is it that they take a look and run a mile - not sure. Whatever, i think a nice guide explaining text on site is often in there, would help.
hopefully Bruce/ChrisD will oblige
pinbrook
04-Jul-2007, 03:10 PM
replace <input type="text" with <input type="hidden" on the product layout
pinbrook
04-Jul-2007, 06:09 PM
contains<actinic:block if="false%20%21%3d%3d%20stristr%28%3cactinic%3avariable%20name%3d%22ProductDescription%22%20%2f%3e,%20%22love%22%29" >
<br/><b>Lovely product (contains love).</b><br/>
</actinic:block>
starts with<actinic:block if="0%20%3d%3d%3d%20strpos%28%3cactinic%3avariable%20name%3d%22ProductDescription%22%20%2f%3e,%20%22Jane%22%29" >
<br/><b>Written by a Jane (starts with Jane).</b><br/>
</actinic:block>
Explanation by Zoltan - The conditions are evaluated by the built in PHP engine. It was the primary reason of the integration not the fancy PHP blocks what is basicaly a side product. :-) It means that you can use any PHP functions in the conditions. Therefore both of the requested conditions can be done easily. There are a few PHP functions which can be used here. The below examples are using stripos for case sensitive comparison. You can also use strpos for non case sensitive and some other functions like strstr and stristr. See PHP documentation for more. This solution is PHP4
pinbrook
04-Jul-2007, 06:25 PM
Useful if you'd allowed the default name "external Design" and what to call it something meaningful
Go into the Library, and in the Layouts tab locate the 'Web Page Outer Layout' group.
Your 'ExternalDesign' layout will be in that group. You should be able to rename it there (as long as the layout is not selected in 'Settings | Site Options' or in any of the sections in your store. You can rename a layout by clicking the 'Edit Layout Details' button.
You can also delete it from here - although Delete will be greyed out of the right-click menu if the layout is used anywhere.
pinbrook
04-Jul-2007, 06:30 PM
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/acatalog/Theme_Design.html#aKB506
pinbrook
04-Jul-2007, 06:34 PM
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'.
pinbrook
04-Jul-2007, 06:40 PM
<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>
pinbrook
04-Jul-2007, 06:50 PM
Advanced Guide, page 94. "Having a larger box for the 'Other Info' Prompt". This gives you a text area to type in.
pinbrook
04-Jul-2007, 06:52 PM
and not company, sectionName
<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>
pinbrook
04-Jul-2007, 07:10 PM
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.
pinbrook
05-Jul-2007, 01:30 PM
<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.
pinbrook
05-Jul-2007, 04:19 PM
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.
<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
onload="if ( opener ){ if ( opener.WindowName ) document.forms.popform.target = opener.WindowName; }"
pinbrook
05-Jul-2007, 10:20 PM
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.
pinbrook
06-Jul-2007, 09:37 AM
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
<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>
gabrielcrowe
06-Jul-2007, 09:42 AM
in your .htaccess file:
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:
http://www.yourfulldomain.com/search/term.htm
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
gabrielcrowe
06-Jul-2007, 09:50 AM
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.
gabrielcrowe
06-Jul-2007, 10:06 AM
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 :D
gabrielcrowe
06-Jul-2007, 10:08 AM
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.
gabrielcrowe
06-Jul-2007, 02:57 PM
dynimage.php
<?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.
gabrielcrowe
06-Jul-2007, 03:42 PM
in firefox, right click on your bookmarks toolbar, and click 'add new'.
call it: '800x600'
and paste this in the location:
javascript:top.resizeTo(800,600);
the most common resolution for latops is 1024x768
for 1024x768 call it: '1024x768'
and paste this in the location:
javascript:top.resizeTo(1024,768);
go to any page, and then click your shiny new bookmarklet.
your browser should snap to your selected size.
gabrielcrowe
06-Jul-2007, 03:49 PM
another bookmarklet.
javascript:function htmlEscape(s){s=s.replace(/&/g,'&');s=s.replace(/>/g,'>');s=s.replace(/</g,'<');return s;} function linkEscape(s){s=s.replace(/&/g,'&');s=s.replace(/"/,'"');return s} h = '<a href="' + linkEscape(location.href) + '">' + htmlEscape(document.title) + '</a>'; with(window.open().document){write(h+'<form name=f><textarea name=a rows=5 cols=80 wrap=hard>'+htmlEscape(h)+'</textarea></form>'); close(); f.a.select(); } void 0
paste this into the url of a bookmark in your bookmark toolbar.
navigating to a page, then clicking this bookmarklet, causes your browser to craft a link, to the current page, uwing its title as the link text.
useful for hard coding links into fragments.
pinbrook
06-Jul-2007, 04:02 PM
Create a product variable called RRP. Store the full price in RRP, and put the actual discounted price in the Actinic price.
Then edit the pricing layout to show the RRP variable after the price (in a BLOCK IF so that it only shows if it's not empty). e.g. "Price: £12.99 (RRP: £19.99)".
You can put the RRP bit in a paler colour so as not to confuse.
pinbrook
10-Jul-2007, 12:29 PM
1. Create a Brochure page called Best Sellers
2. Navigate to the inner layout for your Brochure Page, in my case it is Standard Brochure Page Bulk and is in the Library under Web Page Inner Layout.
3. Copy and paste the following into the layout, above BrochureFragmentList Layout selector.
<actinic:block if="%3cactinic%3avariable%20name%3d%22BrochureName%22%20%2f%3e%20%3d%3d%20%22Best%20Sellers%22">
<actinic:variable name="BestSellersList" value="Home Page Best Sellers List" />
</actinic:block>
PaulGrimshaw
10-Jul-2007, 03:11 PM
If you use a number (e.g. RRP) and it ends either .x0 or .00 then it drops the last digit (or two), e.g.
10.50 returns 10.5
9.00 is displayed as 9
To fix this, do the following:
PHP:
<actinic:block php="true" >
$rrp = '<actinic:variable name="RRP" />';
$rrp = sprintf('%01.2f', $rrp);
echo $rrp;
unset($rrp);
</actinic:block>
JS:
rrp = rrp.toFixed(2);
cdicken
11-Jul-2007, 10:11 AM
How to change the width of the address book in the second checkout page
http://community.actinic.com/showthread.php?t=31382
jont
13-Jul-2007, 02:17 PM
I added it in after your post this morning Duncan as there have been 3 posts in as many days for the same.
pinbrook
17-Jul-2007, 02:49 PM
instead of one underneath the other
Design/Library/Layouts/Related Products/Standard Product Related Products Lists
Edit list layout settings
Edit Rows and Columns
Change Middle Row to 3
Then go to Design View for Mini Product Related Products Item
About line 16 is:
<hr size="1" align="CENTER" width="xxx">
set thewidth xxx to your choice, probably 33%
pinbrook
03-Sep-2007, 09:13 AM
Go to the design layout for the Catalog pages and find the 'Horizontal Nav Bar Text Links' layout. In the code pane you will see a reference to 'Sitemap Text Link' - simple remove the blockif and /block immediately around the 'Sitemap Text Link' (leave the other blockif and /block around it).
Now copy the code including the remaining blockif and /block around the 'Sitemap Text Link' and paste it into a similar position on the Brochure layout 'Brochure Nav Bar Text Link List' layout code, at the end of the code, or where you want it to appear.
pinbrook
03-Sep-2007, 09:17 AM
For anyone else interested, the code in the AUG needs to be amended.
This is how it currently appears, which calculates the time on the user's computer. This means that a customer in New York, for example, would not see the message until 4pm New York time, which is 9pm UK Time, so would not realise that the cut-off time had passed. A customer in Amsterdam would see the message at 4pm Amsterdam time, which is 3pm UK time, so you could lose his order because he would think the cut-off time had passed.
<script language=JavaScript>
now = new Date();
if ( now.getHours() >= 16 ) document.write('<span style="color:red;">Warning text here</span>');
</script>
The amended code is:-
<script language=JavaScript>
now = new Date();
if ( now.getUTCHours() >= 16 ) document.write('<span style="color:red;">Warning text here</span>');
</script>
This calculates the time according to Universal Coordinated Time (UTC), and will display correctly on the user's computer provided it is set correctly for their time zone.
You can expand on this further, by having different messages according to the day of the week as follows:-
<script language=JavaScript>
now = new Date();
if ( now.getUTCHours() >= 16 )
if ( now.getUTCDay() == 1)
document.write('<span style="color:red;">Monday warning text here</span>');
</script>
<script language=JavaScript>
now = new Date();
if ( now.getUTCHours() >= 16 )
if ( now.getUTCDay() == 2)
document.write('<span style="color:red;">Tuesday warning text here</span>');
</script>
<script language=JavaScript>
now = new Date();
if ( now.getUTCHours() >= 16 )
if ( now.getUTCDay() > 0)
if ( now.getUTCDay() < 6)
document.write('<span style="color:red;">Monday to Friday warning text here</span>');
</script>
<script language=JavaScript>
now = new Date();
if ( now.getUTCDay() == 0)
document.write('<span style="color:red;">Sundaywarning text here</span>');
</script>
(The last one assumes that there is no delivery service on Sundays regardless of time, hence the absence of the time element)
You can have as many of these as you want, and only those which meet the day and time criteria will be shown.
This could even be used for marketing messages, so you could create a special offer which is only available on Fridays until 2pm for example.
The Universal Coordinated Time (UTC) is the time set by the World Time Standard, and is equivalent to GMT. However, you would have to adjust the cut-off time during the summer months, when GMT is advanced an hour, so the above example would work ok in winter for a 4pm cut-off, but 16 would need to be changed to 15 during summer time.
__________________
Webfaced
01-Sep-2008, 01:56 PM
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.
<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
onload="if ( opener ){ if ( opener.WindowName ) document.forms.popform.target = opener.WindowName; }"
This is clear and concise but to a complete Actinic newbie makes little sence! Which page files should be edited to contain these strings and what elements (if any) need to change within the string to relate to a page/file name?
cdicken
02-Sep-2008, 08:55 AM
Hi Dominic.
This is pretty advanced stuff so if you are new at Actinic I would steer clear of it.
The short answer is the first piece of Javascript needs to go within the <head> tags of the overall layout(s) used by your store pages. If you don't know what an overall layout is, read the 'Help With Design' section of the help before you do anything else.
The second part of the guide requires editing the 'Extended Information Design' called 'Includes Add to Cart Button'. You need to edit the <body> tag within this file and also add 'name="popform" ' into the <form> tag.
Again, if what I've just said doesn't make any sense, I suggest you read the help or book yourself on an Actinic training course
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.