View Single Post
  #10  
Old 04-07-2006, 03:07 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default

This is what i did at my site for SitePal.

In shopcart/skin1/home.tpl I placed the code in the <head> section:
Replace ????? with your account number.

Code:
{literal}<script language="JavaScript" type="text/javascript" src="https://vhost.oddcast.com/vhost_embed_functions.php?acc=?????&js=1&followCursor=1"></script>{/literal}

And then I created a new file in shopcart/skin1/customer/sitepal.tpl

Replace ????? with your account number.
This shows at 140 pixcels wide and 105 pixcels high

Code:
{capture name=menu} <table width="100%" border="0" cellpadding="0"> <tr> <td><script language="JavaScript" type="text/javascript"> AC_VHost_Embed_?????(105,140,'FFFFFF',1,1,183133,0,0,0,'4659d8fa9bb73b0f67d8dce48ae34b8b',6); </script></td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Site Pal " menu_content=$smarty.capture.menu }

Then just call this in your shopcart/skin1/customer/home.tpl file

Code:
{ include file="customer/sitepal.tpl" }

Like this:
Code:
{ include file="customer/sitepal.tpl" } { include file="modules/Users_online/menu_users_online.tpl" } { include file="customer/menu_cart.tpl" } {if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''} { include file="modules/Feature_Comparison/product_list.tpl" } {/if}

Hope this helps.

You can see the finished version at http://www.shisha.co.uk/shopcart/home.php
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote