X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Unable to get Company Logo Visble (https://forum.x-cart.com/showthread.php?t=12161)

Chrystella 02-13-2005 02:12 PM

Unable to get Company Logo Visble
 
Being a total NEWBIE - more than likely this is a silly question ?

Just bought Crystal Blue Skin for 4.0.11 - completed install exactly as per readme file below

Install went fine - demo company name displayed AOK (this was in swf file format)

I changed the "company_name.swf" file to a newly created "company_name.jpg" file and uploaded it as per instructions

Only found two instances of "company_name.swf" in head.tpl to change !!!

- but it now displays nothing for the company_name ???

All the correct files seem to be in the right place -checked them 3 times tonight.

I am not even sure about the jpg file will work within this template

Or does it have to be a swf file and if so what size should it be ???

I am running Xcart 4.0.11

All suggestions appreciated

Regards

TonyS

Code:

'CRYSTAL BLUE' SKIN
===================

This file provides information about the installation and configuring of 'Crystal Blue' skin.
Please make sure the version of the skin distributive corresponds to the version of X-Cart.

INSTALLATION INSTRUCTIONS
=========================

To install the skin, follow the steps below:

1. Unpack this distributive and copy the files from 'xcart' directory to the directory where your X-Cart is installed.

2. Run the installation script (install.php) in your browser:
 http://<your_xcart_domain>/install.php

3. Enter the authorization code and select the option 'Re-install skin files' at the first step.
If you do not remember your authorization code, you can find it in include/install.php file as the value of $installation_auth_code variable.

4. Select 'crystal blue' skin from the 'Layout' dropdown box (do not change the other options) and click the 'Next' button.

5. After the skin files are successfully copied, you will see a frame showing the new X-Cart skin. You may have to click on the 'Click to refresh' link to see the proper layout.

6. Click the 'Next' button to complete the installation.


CONFIGURATION INSTRUCTIONS
==========================

To replace the logo with the one of your own:

1. Create a new company logo. It must be a JPG graphic file or an SWF movie file (Macromedia Flash movie).

2. Save the logo file as 'company_name.jpg' or 'company_name.swf'.

3. Go to X-Cart Admin area.

4. Click on 'Edit templates' in the Administration menu, the 'Browse templates' form will appear.

5. Click on 'images' directory, then click on the 'custom' one.

6. Select the 'Rewrite file if exists' check box near the 'Upload' subsection.

7. In the 'Upload' subsection click on 'Browse', and locate the image file which contains the new company logo.

8. Click the 'Upload' button.

9. If the file you have uploaded is named other than "company_name.swf", you need to modify the "head.tpl" template:

  9.1. Click on 'Edit templates' in the Administration menu, then find the file 'head.tpl' and click on it.

  9.2. Find all the occurencies of the "company_name.swf" substring in this template and replace them with your file name.

  9.3. Click the 'Save' button to save the changes.

10. Open the browser window with the customer front end and make sure the new logo appears at the top of the page. You may have to clear the browser cache to apply the changes.


balinor 02-14-2005 04:04 AM

Hi Tony, please post your head.tpl so that we can see how that skin has it organized. Thanks!

Chrystella 02-14-2005 04:35 AM

Here is the head.tpl as requested

Code:

{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *}
{if $usertype eq "C"}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor=#C1F1FF background="{$ImagesDir}/custom/head_bg.gif" class="BackgroundRepeatX">
<TR>
<TD rowspan="10" valign="top" align="left" background="{$ImagesDir}/custom/mountain_logo.gif"><OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="341" height="206" id="flash_logo" align="top"><PARAM name="allowScriptAccess" value="sameDomain" /><PARAM name="movie" value="{$ImagesDir}/custom/flash_logo.swf" /><PARAM name="menu" value="false" /><PARAM name="loop" value="false" /><PARAM name="quality" value="high" /><PARAM name="bgcolor" value="#ffffff" /><PARAM name="FlashVars" value="not_home_page={if $main eq "catalog" and $current_category.category eq ""}0{else}1{/if}&company_name_path={$ImagesDir}/custom/company_name.jpg&home_path={$http_location}/customer/home.php" ><EMBED src="{$ImagesDir}/custom/flash_logo.swf" FlashVars="not_home_page={if $main eq "catalog" and $current_category.category eq ""}0{else}1{/if}&company_name_path={$ImagesDir}/custom/company_name.jpg&home_path={$http_location}/customer/home.php" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="341" height="206" name="flash_logo" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect="true" /></OBJECT></TD>
<TD background="{$ImagesDir}/custom/head_02.gif" class="BackgroundNoRepeat" align="right">{if $config.Company.company_phone}{$lng.lbl_phone_1_title}: {$config.Company.company_phone}{/if}{if $config.Company.company_phone_2}{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}{/if}</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD background="{$ImagesDir}/custom/head_04.gif" class="BackgroundNoRepeat">[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD valign="top" align="left" background="{$ImagesDir}/custom/head_line_1.gif"  class="BackgroundNoRepeat"><OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ID="head_line_1" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="429" height="2" align="middle"><PARAM name="allowScriptAccess" value="sameDomain" /><PARAM name="movie" value="{$ImagesDir}/custom/head_line_1.swf" /><PARAM name="FlashVars" value="repeat_time=60&js_enabled={$js_enabled}"><PARAM name="loop" value="false" /><PARAM name="menu" value="false" /><PARAM name="quality" value="high" /><PARAM name="bgcolor" value="#1479d0" /><EMBED src="{$ImagesDir}/custom/head_line_1.swf" FlashVars="repeat_time=60&js_enabled={$js_enabled}" loop="false" menu="false" quality="high" bgcolor="#1479d0" width="429" height="2" name="head_line_1" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect=true /></OBJECT></TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD background="{$ImagesDir}/custom/head_08.gif" class="BackgroundNoRepeat" align="right" valign="middle">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{else}

{/if}
</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD background="{$ImagesDir}/custom/head_10.gif" class="BackgroundNoRepeat">[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD valign="top"  align="left" background="{$ImagesDir}/custom/head_line_2.gif"  class="BackgroundNoRepeat"><OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  ID="head_line_2" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="429" height="2" align="middle"><PARAM name="allowScriptAccess" value="sameDomain" /><PARAM name="movie" value="{$ImagesDir}/custom/head_line_2.swf" /><PARAM name="menu" value="false" /><PARAM name="quality" value="high" /><PARAM name="bgcolor" value="#1479d0" /><EMBED src="{$ImagesDir}/custom/head_line_2.swf" menu="false" quality="high" bgcolor="#1479d0" width="429" height="2" name="head_line_2" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect=true /></OBJECT></TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD background="{$ImagesDir}/custom/head_14.gif" class="BackgroundNoRepeat" align="right">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR><TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD background="{$ImagesDir}/custom/head_20.gif" class="BackgroundNoRepeat" width="100%" align="right">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD>
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}
</TD>
<TD>{include file="customer/main/minicart.tpl" short_mode="short"}</TD>
</TR>
</TABLE>
</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
</TABLE>
{if $usertype eq "C" and $all_languages_cnt gt 1}
<TABLE border="0" cellpadding="0" cellspacing="0">
<FORM action="home.php" method="GET" name="sl_form">
<INPUT type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}">
<TR>
<TD><FONT class="MainSubtitle">{$lng.lbl_select_language}:</FONT>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</TD></TR>
</FORM>
</TABLE>


{else}


{/if}

{else}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="27"></TD>
<TD>[img]{$ImagesDir}/xlogo.gif[/img]</TD>
<TD valign="top" align="right">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</TD></TR>
</TABLE>
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD  colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</TD>
<TD class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B")and $all_languages_cnt gt 1}
<TABLE border="0" cellpadding="0" cellspacing="0">
<FORM action="home.php" method="GET" name="sl_form">
<INPUT type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}">
<TR>
<TD>
{$lng.lbl_select_language}:
<SELECT name="sl" onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</TD></TR>
</FORM>
</TABLE>
{else}

{/if}
</TD>
</TR>
<TR>
<TD  colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
{******** Remove this line to display how much products there are online ****
<TR>
<TD colspan="2" class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</TD>
</TR>
**** Remove this line to display how much products there are online ********}
<TR>
        <TD colspan="2" valign="middle" height="32">
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
        <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
{/if}
</TR>
</TABLE>
        </TD>
</TR>
</TABLE>
{/if}


Regards

TonyS

balinor 02-14-2005 08:59 AM

Ok, you can't just remove the .swf filename, you need to remove everything between the <object> tags, as that whole mess is how the flash is called.

Chrystella 02-14-2005 09:15 AM

Hi Padraic

Thanks

I will give it a try

Regards

TonyS


All times are GMT -8. The time now is 07:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.