Buongiono a tutti, vorrei inserire il mio logo centralmente, al posto di e2e_logo, quale file devo modificare ?
Grazie.
Inserimento logo
Moderatore: mod Generali
Re: Inserimento logo
ciaochip ha scritto:Buongiono a tutti, vorrei inserire il mio logo centralmente, al posto di e2e_logo, quale file devo modificare ?
Grazie.
se ti riferisci al logo generale (quello nella index) basta che carichi il logo che vuoi usare in /catalog/images e modifichi il /catalog/includes/header.php
nel file header.php troverai questa porzione di codice :
Codice: Seleziona tutto
<table border="0" width="100%" cellspacing="8" cellpadding="0">
<tr class="header">
<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'TuoLogo.gif', 'XXXXXX') . '</a>'; ?></td>
</tr>
</table>
spero di aver capito
Il codice del file header.php è il seguente :
<?php
/*
$Id: header.php,v 1.39 2003/02/13 04:23:23 hpdl Exp $
E2E commerce, Get your shop online FAST !
http://www.e2ecommerce.com
Copyright (c) 2004 Pubcompany S.R.L http://www.pubcompany.com
E2E Commerce is derived from: Copyright © 2003 osCommerce
E2E Commerce is redistributable under the GNU General Public License
*/
// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install/install.php')) {
tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);
}
}
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);
}
}
// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
} elseif (!is_writeable(tep_session_save_path())) {
tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
}
}
}
// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
tep_output_warning(WARNING_SESSION_AUTO_START);
}
}
if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);
}
}
?>
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="8"></td>
<td width="100%" class="coloredbar"><img src="images/pixel_trans.gif" width="100%" height="8"></td>
<td><img src="images/pixel_trans.gif" width="8" height="8"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="22"></td>
<td width="100%"><table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<?
global $affiliate_ref;
if ($HTTP_COOKIE_VARS['affiliate_ref'])
{ // Customer comes back and is registered in cookie
$logo='affban/'.$HTTP_COOKIE_VARS['affiliate_ref'].'/banner.gif';
}
else
{
if ($affiliate_ref!='')
{ // Customer comes back and is registered in cookie
$logo='affban/'.$affiliate_ref.'/banner.gif';
}
}
if ($logo!='')
{
?>
<td width="211"><img src="<?echo $logo?>" width="209" height="78"></td>
<?
}
else
{
$logo='images/header_footer/e2e_logo.gif';
echo tep_display_banner('dynamic');
}
?>
</tr>
</table></td>
<td><img src="images/header_footer/pixel_trans.gif" width="8" height="22"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="1"></td>
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="navborder">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="middle" class="headerNavigation"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" valign="middle" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?>
<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_LOGOFF; ?></a> |
<?php } ?>
<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerLink"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_CHECKOUT; ?> </a></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table></td>
<td><img src="images/pixel_trans.gif" width="8" height="1"></td>
</tr>
</table>
<?
require('includes/functions/allpage.php');
$pageID=1;
while ((basename($PHP_SELF)!=($page_array[$pageID].'.php'))&&($pageID<NUM_PAGES))
{
++$pageID;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<?
$Acheck_cl=mysql_query('select * from include_files where page_id='.$pageID.' and AREA = 0');
if ($check_cl=mysql_fetch_array($Acheck_cl,1))
@include('custom/H_'.$pageID.'.php');
else
@include('custom/nopage.php');
?>
</td>
</tr>
</table>
al posto di quale riga devo sostituirlo ?
Grazie
<?php
/*
$Id: header.php,v 1.39 2003/02/13 04:23:23 hpdl Exp $
E2E commerce, Get your shop online FAST !
http://www.e2ecommerce.com
Copyright (c) 2004 Pubcompany S.R.L http://www.pubcompany.com
E2E Commerce is derived from: Copyright © 2003 osCommerce
E2E Commerce is redistributable under the GNU General Public License
*/
// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install/install.php')) {
tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);
}
}
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);
}
}
// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
} elseif (!is_writeable(tep_session_save_path())) {
tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
}
}
}
// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
tep_output_warning(WARNING_SESSION_AUTO_START);
}
}
if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);
}
}
?>
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="8"></td>
<td width="100%" class="coloredbar"><img src="images/pixel_trans.gif" width="100%" height="8"></td>
<td><img src="images/pixel_trans.gif" width="8" height="8"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="22"></td>
<td width="100%"><table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<?
global $affiliate_ref;
if ($HTTP_COOKIE_VARS['affiliate_ref'])
{ // Customer comes back and is registered in cookie
$logo='affban/'.$HTTP_COOKIE_VARS['affiliate_ref'].'/banner.gif';
}
else
{
if ($affiliate_ref!='')
{ // Customer comes back and is registered in cookie
$logo='affban/'.$affiliate_ref.'/banner.gif';
}
}
if ($logo!='')
{
?>
<td width="211"><img src="<?echo $logo?>" width="209" height="78"></td>
<?
}
else
{
$logo='images/header_footer/e2e_logo.gif';
echo tep_display_banner('dynamic');
}
?>
</tr>
</table></td>
<td><img src="images/header_footer/pixel_trans.gif" width="8" height="22"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/pixel_trans.gif" width="8" height="1"></td>
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="navborder">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="middle" class="headerNavigation"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" valign="middle" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?>
<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_LOGOFF; ?></a> |
<?php } ?>
<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerLink"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerLink"><?php echo HEADER_TITLE_CHECKOUT; ?> </a></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table></td>
<td><img src="images/pixel_trans.gif" width="8" height="1"></td>
</tr>
</table>
<?
require('includes/functions/allpage.php');
$pageID=1;
while ((basename($PHP_SELF)!=($page_array[$pageID].'.php'))&&($pageID<NUM_PAGES))
{
++$pageID;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<?
$Acheck_cl=mysql_query('select * from include_files where page_id='.$pageID.' and AREA = 0');
if ($check_cl=mysql_fetch_array($Acheck_cl,1))
@include('custom/H_'.$pageID.'.php');
else
@include('custom/nopage.php');
?>
</td>
</tr>
</table>
al posto di quale riga devo sostituirlo ?
Grazie