osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> header tag
Guest_Johan7_*
posté 8 Sep 2005, 21:22
Message #1





Invité






Bonsoir,

je viens de télécharger header tag, mais visiblement, il manque le fichier database_setup.php

Je me trompe ?
Comment faire pour le récupérer ?
Go to the top of the page
 
JeanLuc
posté 9 Sep 2005, 10:46
Message #2


2eme dan OSC
Icône de groupe

Groupe : Membres VIP
Messages : 3526
Inscrit : 12-June 03
Lieu : Montpellier
Membre no 1239



De quel fichier parles-tu? Qu'est-ce qui te fait dire que ce fichier manque? Qu'est-il sensé faire?
Pour info, les modifs dans la base sont généralement à réaliser par des fichiers .sql qui sont des fichiers texte à utiliser dans phpmyadmin.

Bon code... wink.gif

PS: Indique, dans ta signature, la version d'OsCommerce que tu utilises et les contribs éventuellement installées (ce sera fait 1 fois pour toutes pour les prochaines fois): tu cliques sur "Mon profil" en haut à droite de cette page puis sur "modifier ma signature" dans le menu de gauche...


--------------------
JeanLuc
Pour info: FAQ et doc pour MS1 - doc pour MS2
Go to the top of the page
 
Guest_Johan7_*
posté 9 Sep 2005, 11:55
Message #3





Invité






Et bien en fait, j'ai bien envoyé les fichiers de header tag sur mon serveur. Mais dans le fichier txt qui nous aide à l'installation, c'est écrit qu'il faut executer le fichier header.sql

Ce que j'ai fais avec succès. Mais après visiblement je dois envoyer le fichier "database_setup.php" et l'executer mais je ne l'ai pas ?

Je me trompe peut etre, mais que dois faire donc désormais ?

Merci d'avance

Johan

oscommerce v2 fr
Go to the top of the page
 
JeanLuc
posté 9 Sep 2005, 13:41
Message #4


2eme dan OSC
Icône de groupe

Groupe : Membres VIP
Messages : 3526
Inscrit : 12-June 03
Lieu : Montpellier
Membre no 1239



Affiche nous le texte de l'install.txt (du moins le début jusquà la mention de database_setup.php).


--------------------
JeanLuc
Pour info: FAQ et doc pour MS1 - doc pour MS2
Go to the top of the page
 
mtayac
posté 9 Sep 2005, 14:42
Message #5


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 139
Inscrit : 10-May 04
Lieu : NICE
Membre no 2451



est-cela que tu cherches ?

CODE
<?php
/*
 $Id: database_setup.php, v 1.00 by Jack York 12-04-04

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

$htc_check_query = tep_db_query("select * from products_description");

 for ($ctr = 0; $ctr < tep_db_fetch_fields($htc_check_query); $ctr++) {
  if (false != strstr(mysql_field_name($htc_check_query, $ctr), 'products_head_title_tag')) {
   echo 'Looks like Header Tags is already installed. Aborting...';
   tep_exit();
  }
}
 $line = array("ALTER TABLE categories ADD category_head_title_tag VARCHAR(80) NULL;");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }
 $line = array("ALTER TABLE categories ADD category_head_desc_tag LONGTEXT NULL;");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }
 $line = array("ALTER TABLE categories ADD category_head_keywords_tag LONGTEXT NULL;");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }
 $line = array("ALTER TABLE categories ADD category_head_description LONGTEXT NULL;");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }

 $line = array("ALTER TABLE products_description ADD products_head_title_tag VARCHAR(80) NULL");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
   break;
   }
 }
 $line = array("ALTER TABLE products_description ADD products_head_desc_tag LONGTEXT NULL");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }
 $line = array("ALTER TABLE products_description ADD products_head_keywords_tag LONGTEXT NULL");
 foreach ($line as $value) {
   if (tep_db_query($value) == false) {
     $db_error = true;
  break;
   }
 }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo 'Header Tags Controller Setup'; ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td class="main">
<?php
 if ($db_error == false) {
   echo 'Database successfully updated!!!';
 } else {
   echo 'Error encountered during database update.';
 }
?>
       </td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
   </table></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


bon w-e ........ si tu en prends


--------------------
En ligne :
MS2fr traduction Delaballe + big images v1.25 + loginbox v5.5 + header tags v2.5.5+ links manager v1.09 + back button v2.0 + send order html email v5.4 + Cool menu + Define mainpage perso + Unsold carts report 2.0 + Options as images for MS2 v1.2 + Virement bancaire v1.2 + CCGV5.16 + Paiement CIC + Ventes Flash + Parrainage perso + xml.guide + enabel/disabel catégory + ultimate SEO URLs (Chemo) + Google XML sitemap + mp3osplayer + sales report + sort order + whos on line enhancement v3.2
Go to the top of the page
 
fissiaux
posté 9 Sep 2005, 19:17
Message #6


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





Es tu sûr d'avoir besoin de ce fichier ??

Si tu as fait la manip avec phpmyadmin, tu n'as pas besoin de faire les manips avec ce fichier.
Go to the top of the page
 
Guest_Johan7_*
posté 10 Sep 2005, 06:14
Message #7





Invité






Oui j'ai bien fait la manip avec le fichier header.sql

En fait c'est dans le fichier install_catalog.txt que c'est écrit d'utiliser le fichier database_setup.php :
QUOTE
INSTALLATION:
======================================================================================================
Update the database. There are two ways to do this:

1 - use the "header.sql" file and upload via phpmyadmin
2 - copy the included database_setup.php file to your root directory
    (where your index.php file is located).  Then open your browser
    and type in http://www.yoursite.com/database_setup.php (substitute
    your url of course). You should delete this file from your site
    once you have updated the database successfully.

NOTE: If you are updating from an earlier version, the Header Tags
    rows in the categories table are no longer needed. These can be left
    or deleted, as you prefer. If you have data setup in them, beyond
    what fill_tags does, then you will need to copy the rows to the
    categories_description table and rename the fields.


Donc je sias pas trop. Sinon que dois je faire désormais ?
Merci d'avance
Johan
Go to the top of the page
 
fissiaux
posté 10 Sep 2005, 06:41
Message #8


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





Sans être anglophone, il est écrit qu'il y a 2 méthodes pour faire la maj de la base. Si tu as fait la première, tu n'as pas besoin de faire la seconde.
Go to the top of the page
 
Guest_Johan7_*
posté 10 Sep 2005, 06:58
Message #9





Invité






Ok merci dsl

Sinon comment dois je faire maintenant pour poursuivre l'installation ?
Go to the top of the page
 
Guest_Johan7_*
posté 11 Sep 2005, 18:50
Message #10





Invité






Bonsoir,

je suis sous oscommerce ms2fr, et j'ai télécharger header tag 2.5.5

J'ai balancé les fichiers sur mon serveur, et j'ai executer le fichier header.sql

Mais que dois je faire désormais ?

merci d'avance
Johan
Go to the top of the page
 
fissiaux
posté 11 Sep 2005, 18:57
Message #11


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





On aurait peut-être préféré que tu contniues dans ton premier post :

http://www.oscommerce-fr.info/forum/index....topic=24656&hl=


Outre la base de données, tu dois installer les nouveaux fichiers et faire les modifications de fichiers existants, un peu comme toutes les contributions.
Go to the top of the page
 
xaglo
posté 11 Sep 2005, 19:17
Message #12


5eme dan OSC
Icône de groupe

Groupe : Administrateur
Messages : 14909
Inscrit : 22-November 02
Membre no 610



QUOTE
On aurait peut-être préféré que tu contniues dans ton premier post :
Messages combinés


--------------------
Ni Hot-line ni Service Après Vente, ces forums sont un lieu d'échanges.
Une Question? Rechercher / FAQ / docV1.pdf / docV2.pdf / contributions
Go to the top of the page
 
Guest_Johan7_*
posté 11 Sep 2005, 19:32
Message #13





Invité






En fait, je n'ai encore jamais utiliser de contribution ...

J'ai vu que pas mal de fichiers se sont mis dans include/languages/english alors que je travaille uniquement dans la langue française. Donc là je dois faire des modifs mais j'ai du mal a savoir lesquels. Et au niveau des modifs des fichiers existants, je pense que c'est surtout dans catalog/admin qu'il doit y avoir des modifs mais là pareil, je sais pas trop comment m'y prendre

Merci d'avance

Johan ms2fr

ps : désolé pour le nouveau post
Go to the top of the page
 
Guest_Johan7_*
posté 11 Sep 2005, 21:17
Message #14





Invité






Il me semble avoir installé convenablement header tag ... l'admin est ok sauf la page admin/catagories.php où j'ai une erreur
QUOTE

Parse error: parse error, unexpected '}' in /data/members/paid/l/a/lamaisondesanimaux.com/htdocs/www/ms2fr/catalog/admin/categories.php on line 678


la ligne 678 est la suivante :
CODE
 } elseif ($action == 'new_product_preview') {


je ne vois pas trop où est l'erreur, je vous mets également les lignes précédentes et suivantes ...
CODE
<?php
 } elseif ($action == 'new_product_preview') {
   if (tep_not_null($HTTP_POST_VARS)) {
     $pInfo = new objectInfo($HTTP_POST_VARS);
     $products_name = $HTTP_POST_VARS['products_name'];
     $products_description = $HTTP_POST_VARS['products_description'];


merci d'avance
Johan ms2fr
Go to the top of the page
 
Guest_Johan7_*
posté 11 Sep 2005, 22:39
Message #15





Invité






J'ai réussi

merci à tous pour vos aides
Go to the top of the page
 
fissiaux
posté 12 Sep 2005, 20:38
Message #16


5eme dan OSC
Icône de groupe

Groupe : Membres
Messages : 17048
Inscrit : 26-November 03
Lieu : Chez moi
Membre no 1669





Tu débutes avec oscommerce, et donc potentiellement tu vas être un consommateur du forum.

Merci donc de prendre les bonnes habitudes et d'indiquer [résolu] dans tes titres de post.
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 20th May 2013 - 18:45
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)