Aide - Recherche - Membres - Calendrier
Version complète : [résolu]espace au dessu banniere
Forum osCommerce-fr > Adapter OsCommerce MS2 > Design
rtony30
bonjour
j ai un gros espace au dessu de mon logo avec firefox
et avec IE il est moin important
il y a du code au dessu du cadre mais je sais pas ce que sais
peut on enlever l espace ?
<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released 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')) {
$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
}

// 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')) ) {
$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
}

// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
} elseif (!is_writeable(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
}
}
}

// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
}

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
}

if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
<table width="10%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">
rjvais
Salut, petite chose qui me vient à l'idée y a peut de chance que ce soit ça mais pourquoi pas ! blush.gif
As tu essayer dans ton stylesheet.css de mettre margin:0px; pour la class header ?
On ne sait jamais! rolleyes.gif
rtony30
CITATION(rjvais @ 16 Jan 2007, 03:18) [snapback]216260[/snapback]

Salut, petite chose qui me vient à l'idée y a peut de chance que ce soit ça mais pourquoi pas ! blush.gif
As tu essayer dans ton stylesheet.css de mettre margin:0px; pour la class header ?
On ne sait jamais! rolleyes.gif


bonjour
dans le stylesheet.css il y a pas de margin
donc j ai essayer de rajouter margin:0; dans header
mais c est pareil, j ai toujour l espace au dessu du logo
Image IPB
rabimac
Salut,

CITATION
<table width="10%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">


donne nous le code a partir de ces lignes ....

par contre pas normal que ton table width soit à 10% mais le à 100
rtony30
include:header.php

<table width="10%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">
<td height="18" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo1.jpg', 'babysharkal') .'</a>'; ?></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="1" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>
</tr>
</table>
<marquee behavior="alternate"bgcolor="FAFCC8"scrollamount=7>BABYSHARKAL DES PRIX BAS TOUTES L'ANNEE!!! N'HESITEZ PAS A<a href="http://WWW.babysharkal.com/contact_us.php "> NOUS CONTACTER</a> POUR D'AUTRES ARTICLES .</marquee></td>
</tr>
<p align="justify"><?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
</p>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
</tr>
</table>
<?php
}

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
</tr>
</table>
<?php
}
?>
rabimac
remplace ces lignes :
CITATION
<table width="10%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">
<td height="18" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo1.jpg', 'babysharkal') .'</a>'; ?></td>
</tr>
</table>
<p> </p>
<p> </p>


par :
CITATION

<table width="100%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">
<td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo1.jpg', 'babysharkal') .'</a>'; ?></td>
</tr>
</table>


qu'est ce que ca donne ?
rtony30
salut,
c est pire
regarde par toi meme babysharkal.com
rabimac
enlève ca :
CITATION

<p>&nbsp;</p>
<p>&nbsp;</p>


et quand j'édite ton code source tu as ces lignes qui apparaisse avant ta balise <head> ce n'est pas normal :
CITATION

<meta name="keywords" content="vente,articles,peche,chasse,plongee,daiwa,sert,shimano,italcana,okuma,accessoire,fil,bobine,leurres,ame&ccedil;ons,mer,surf,bateau,exotique,surfcasting,gros,thon,bonitte,pompon,appats,promo,promotion,pascher,petit,prix,cass&eacute;,discount,carpe,carpiste,boutique,vpc,lanc&eacute;e,canne,porte,kristal,fishing,scubapro,mitchell,ensembles,idees,cadeaux,emblem,sport,twin,stella,saltiga,a,b,c">

<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->
<p><a href="http://www.crawltrack.fr">
<img src="http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png" alt="CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster" width="1" height="1" style="border:0"/>
</a></p>
<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->
rtony30
salut
c est le contribution CrawlTrack
j ai suivi la procedure d instalation
il faut le mettre ou sinon?
quand j enleve
<p>&nbsp;</p>
<p>&nbsp;</p>
on voit plus le site
rabimac
je ne connais pas cette contribution mais elle n'a rien a faire ici et de plus elle est entouré par des balises de paragraphe "<p>" qui n'on également rien a faire ici
rtony30
CITATION(rabimac @ 16 Jan 2007, 05:37) [snapback]216291[/snapback]

je ne connais pas cette contribution mais elle n'a rien a faire ici et de plus elle est entouré par des balises de paragraphe "<p>" qui n'on également rien a faire ici


salut j ai enlever le <p> et </P> ca gene pour la contibution (contribution pour voir les robots)?
le <meta name="keywords" content=& quot;vente,articles,peche,chasse,plongee,daiwa,sert,shimano,italcana,okuma,acces
soire,fil,bobine,leurres,ame& amp;ccedil;ons,mer,surf,bateau,exotique,surfcasting,gros,thon,bonitte,pompon,app
ats,promo,promotion,pascher,petit,prix,cass&eacute;,discount,carpe,carpiste,boutique,vpc,lanc& amp;eacute;e,canne,porte,kristal,fishing,scubapro,mitchell,ensembles,idees,cadea
ux,emblem,sport,twin,stella,saltiga,a,b,c">
faut le virer de la aussi?
rtony30
je suisretourner voir le tag a inserais voila ce qu il disent
Tag standard, a utiliser pour un site hébergé sur le même serveur que CrawlTrack.
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
$crawltsite=1;
include("/home/WwwBSD/babysharkal.com/crawltrack1-7-1/crawltrack.php");
echo"<p><a href=\"http://www.crawltrack.fr\">
<img src=\"http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png\" alt=\"CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster\" width=\"1\" height=\"1\" style=\"border:0\"/>
</a></p>\n";
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
rabimac
j'ai récupérer ton code pour le header chez moi ca marche avec ca :

CITATION
<table width="100%" height="0" border="0" cellpadding="0" cellspacing="0">
<tr class="header">
<td><a href="http://www.babysharkal.com/index.php"><img src="images/logo1.jpg" border="0" alt="babysharkal" title=" babysharkal " width="863" height="67"></a></td>
</tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation"> <a href="http://www.babysharkal.com/index.php" class="headerNavigation">Catalogue</a></td>
<td align="right" class="headerNavigation"><a href="http://www.babysharkal.com/account.php" class="headerNavigation">Mon compte</a> | <a href="http://www.babysharkal.com/shopping_cart.php" class="headerNavigation">Voir panier</a> | <a href="http://www.babysharkal.com/checkout_shipping.php" class="headerNavigation">Commander</a> </td>
</tr>
</table>


et enlève tout ce code :
CITATION
<meta name="keywords" content="vente,articles,peche,chasse,plongee,daiwa,sert,shimano,italcana,okuma,accessoire,fil,bobine,leurres,ameçons,mer,surf,bateau,exotique,surfcasting,gros,thon,bonitte,pompon,appats,promo,promotion,pascher,petit,prix,cassé,discount,carpe,carpiste,boutique,vpc,lancée,canne,porte,kristal,fishing,scubapro,mitchell,ensembles,idees,cadeaux,emblem,sport,twin,stella,saltiga,a,b,c">

<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->
<a href="http://www.crawltrack.fr">
<img src="http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png" alt="CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster" width="1" height="1" style="border:0"/>
</a>
<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->

rtony30
voila mon header
<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released 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')) {
$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
}

// 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')) ) {
$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
}

// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
} elseif (!is_writeable(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
}
}
}

// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
}

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
}

if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
<table width="100%" height="0" border="0" align="left" cellpadding="0" cellspacing="0">
<tr class="header">
<td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo1.jpg', 'babysharkal') .'</a>'; ?></td>
</tr>
</table>
<p>&nbsp;</p>
<table border="1" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>
</tr>
</table>
<marquee behavior="alternate"bgcolor="FAFCC8"scrollamount=7>BABYSHARKAL DES PRIX BAS TOUTES L'ANNEE!!! N'HESITEZ PAS A<a href="http://WWW.babysharkal.com/contact_us.php "> NOUS CONTACTER</a> POUR D'AUTRES ARTICLES .</marquee></td>
</tr>
<p align="justify"><?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
</p>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
</tr>
</table>
<?php
}

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
</tr>
</table>
<?php
}
?>
rtony30
faut que je modifie une partie dans le header et une autre dans le index ?
par raport a ce que tu ma donner
@+
rabimac
non tu ne modifie que la partie header
rtony30
CITATION(rabimac @ 16 Jan 2007, 07:48) [snapback]216309[/snapback]

non tu ne modifie que la partie header


escuse moi ,mais dans le header que je t ai envoyer je voit pas ou faire la modif car le code corespond pas
rtony30
salut
j ai virer le code de l index.php
j ai plus l espace
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
$crawltsite=1;
include("/home/WwwBSD/babysharkal.com/crawltrack1-7-1/crawltrack.php");
echo"<p><a href=\"http://www.crawltrack.fr\">
<img src=\"http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png\" alt=\"CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster\" width=\"1\" height=\"1\" style=\"border:0\"/>
</a></p>\n";
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";

cest tu ou je peut le mettre?
j ai essayer juste avant </htlm> pas bon
et avant </body> pas bon
rabimac
y'avais t'il une notice d'utilisation avec cette contribution ? que dis t'elle ?
rtony30
Tag à insérer dans vos pages

Vous trouverez ci-dessous le tag correspondant à chacun des sites configurés. Il s'agit d'un tag en php qu'il vous faut insérer dans vos pages qui doivent donc être en .php. Si vos pages ne sont pas en .php, vous pouvez simplement changer l'extension en .php et mettre <?php avant le tag et ?> après.
Nom du site Tag à insérer dans vos pages
babysharkal
Tag standard, a utiliser pour un site hébergé sur le même serveur que CrawlTrack.
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
$crawltsite=1;
include("/home/WwwBSD/babysharkal.com/crawltrack1-7-1/crawltrack.php");
echo"<p><a href=\"http://www.crawltrack.fr\">
<img src=\"http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png\" alt=\"CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster\" width=\"1\" height=\"1\" style=\"border:0\"/>
</a></p>\n";
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";

Tag a utiliser si le site est hébergé sur un autre serveur que Crawltrack, attention il faut dans ce cas que les fonctions fsockopen et fputs soit activées sur votre hébergement.
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
$crawlturl =urlencode($_SERVER['REQUEST_URI']);
$crawltagent =urlencode($_SERVER['HTTP_USER_AGENT']);
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$crawltip = urlencode($_SERVER['HTTP_X_FORWARDED_FOR']);
}
elseif(isset($_SERVER['HTTP_CLIENT_IP']))
{
$crawltip = urlencode($_SERVER['HTTP_CLIENT_IP']);
}
else
{
$crawltip = urlencode($_SERVER['REMOTE_ADDR']);
}
$crawltvariablescodees = "url=".$crawlturl."&agent=".$crawltagent."&ip=".$crawltip."&site=1";
$url_crawlt2=parse_url("http://www.babysharkal.com/crawltrack1-7-1/crawltrack.php");
$crawlthote=$url_crawlt2['host'];
$crawltscript=$url_crawlt2['path'];
$crawltentete = "POST ".$crawltscript." HTTP/1.1\r\n";
$crawltentete .= "Host: ".$crawlthote." \r\n";
$crawltentete .= "Content-Type: application/x-www-form-urlencoded\r\n";
$crawltentete .= "Content-Length: " . strlen($crawltvariablescodees) . "\r\n";
$crawltentete .= "Connection: close\r\n\r\n";
$crawltentete .= $crawltvariablescodees . "\r\n";
$crawltsocket = fsockopen($url_crawlt2['host'], 80, $errno, $errstr);
if($crawltsocket)
{
fputs($crawltsocket, $crawltentete);
fclose($crawltsocket);
}
echo"<p><a href=\"http://www.crawltrack.fr\"><img src=\"http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png\" alt=\"CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster\" width=\"1\" height=\"1\" style=\"border:0\"/></a></p>\n";
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";

moi j ai mis le premier code
mais je suis sur icodia normalement si j ai bien compris il aurait fallu le deuxieme code mais les fonction qui parle ne sont pas dispo en mutialisé
le premier code marche mais la ou il etait ca me cree un espace au dessu du bandeau
j en perd mon latin
rtony30
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";
$crawltsite=1;
include("/home/WwwBSD/babysharkal.com/crawltrack1-7-1/crawltrack.php");
echo"<a href=\"http://www.crawltrack.fr\">
<img src=\"http://www.babysharkal.com/crawltrack1-7-1/images/nologo.png\" alt=\"CrawlTrack: free crawlers and spiders tracking script for webmaster - script gratuit de détection des robots pour webmaster\" width=\"0\" height=\"0\" style=\"border:0\"/>
</a>\n";
echo"<!--~~~CrawlTrack~~~~~~~~~~~~~~~~~~~~-->\n";

je l ai laisser au meme endroit et j ai virais <p></p> et j ai mis a 0 wihth et height
j ai plus cette espace
je vais faire un essai avec le robot test pour voir si la page index est ok
j aurais galerais sur ce truc
donc c est bon ça fonction
oufff
merci arjvais et surtout rabimac pour ça patience
@+
fissiaux


rtony30, tes posts sont illisbles car tu n'utilises pas les balises de code quand tu affiches les sources de tes pages.

C'est très désagréable à lire, et perso, je ne les lis pas car cela ne donne pas envie.

Image IPB
Ceci est une version "bas débit" de notre forum. Pour voir la version complète avec plus d'informations, la mise en page et les images, veuillez cliquer ici.
Invision Power Board © 2001-2024 Invision Power Services, Inc.