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

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> (RESOLU) Probleme pour afficher les images, Boutons dans boxe catégorie
Emma33
posté 24 Feb 2008, 02:46
Message #1


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Bonjour à tous,

Je cherchais depuis un moment sur le forum comment mettre des boutons ou images dans la box catégorie.

Un post très intéressant de FISSIAUX ma permis de réaliser cela le post se trouve ICI

Je suis quand même confrontée à un problème les images ne s'affiche pas je ne sais vraiment pas ou les mettre catalog/images jje tourne et je vire je fais des essaies mais aucun affichage.

Tout fonctionne parfaitement sur le site lien ok mais pas d'mage dry.gif
Je fais un clic droit sur l'image - propriété - emplacement http://127.0.0.1/catalog/DIR_WS_ICONE

Je fatigue et ne comprend vraiment rien si quelqu'un pouvais m'aider.

Merci d'avance
EMMA 33

Ce message a été modifié par Emma33 - 24 Feb 2008, 23:38.
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 11:36
Message #2


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Merci leirisset pour ta réponse.

Pas de chemin DIR_WS_ICONE déclaré dans catalog/includes/configure.php. cry.gif

Que doit je faire STP mrgreen.gif , a part les copier coller c'est vraiment tout ce que je peux réussir.

Merci encore pour ton aide.

EMMA 33 cry.gif
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 11:46
Message #3


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Pour Leirisset

Si cela peut aider je joins mon fichier catalog/includes/boxes/categories.php. blush.gif

Cordialement
EMMA33

<?php
/*
$Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $

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

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;

for ($i=0; $i<$tree[$counter]['level']; $i++) {
$categories_string .= " ";
}

$categories_string .= '<a href="';

if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<b>';
}

if ($tree[$counter]['parent'] == 0) {
// display category icone
$categories_string .= tep_image(DIR_WS_ICONE . $tree[$counter]['icone'], $tree[$counter]['name'], 50, 50);
} else {
// display category name
$categories_string .= $tree[$counter]['name'];
}

if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '</b>';
}

if (tep_has_category_subcategories($counter)) {
$categories_string .= '->';
}

$categories_string .= '</a>';

if (SHOW_COUNTS == 'true') {
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= ' (' . $products_in_category . ')';
}
}

$categories_string .= '<br>';

if ($tree[$counter]['next_id'] != false) {
tep_show_category($tree[$counter]['next_id']);
}
}
?>
<!-- categories //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

new infoBoxHeading($info_box_contents, true, true);

$categories_string = '';
$tree = array();

$categories_query = tep_db_query("select c.categories_id, c.categories_icone, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
while ($categories = tep_db_fetch_array($categories_query)) {
$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],
'icone' => $categories['categories_icone'],
'parent' => $categories['parent_id'],
'level' => 0,
'path' => $categories['categories_id'],
'next_id' => false);

if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $categories['categories_id'];
}

$parent_id = $categories['categories_id'];

if (!isset($first_element)) {
$first_element = $categories['categories_id'];
}
}

//------------------------
if (tep_not_null($cPath)) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
unset($parent_id);
unset($first_id);
$categories_query = tep_db_query("select c.categories_id, c.categories_icone, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
if (tep_db_num_rows($categories_query)) {
$new_path .= $value;
while ($row = tep_db_fetch_array($categories_query)) {
$tree[$row['categories_id']] = array('name' => $row['categories_name'],
'icone' => $row['categories_icone'],
'parent' => $row['parent_id'],
'level' => $key+1,
'path' => $new_path . '_' . $row['categories_id'],
'next_id' => false);

if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $row['categories_id'];
}

$parent_id = $row['categories_id'];

if (!isset($first_id)) {
$first_id = $row['categories_id'];
}

$last_id = $row['categories_id'];
}
$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
$tree[$value]['next_id'] = $first_id;
$new_path .= '_';
} else {
break;
}
}
}
tep_show_category($first_element);

$info_box_contents = array();
$info_box_contents[] = array('text' => $categories_string);

new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- categories_eof //-->
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 12:00
Message #4


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Pour Leiriset

confused.gif Mes excuses ce chemin est bien déclaré define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); dans mon configure.php

Confusion pour moi avec icons/ je cherchais icone/ . Donc je mets mon boutons dans catalog/images/icons mrgreen.gif ???

Merci POUR TON AIDE.

EMMA33

Go to the top of the page
 
Emma33
posté 24 Feb 2008, 12:19
Message #5


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Pour Leirisset

Merci

Toujours rien j'ai mis mes boutons dans le fichier catalog/images/icons

Qds je fais clic droit sur le place ou devrais être le photos propriété, emplacement , http://127.0.0.1/catalog/DIR_WS_ICONE mrgreen.gif

Voila ...

EMMA 33
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 12:52
Message #6


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



C'est fait mais tjrs rien.

Je trouve que l'emplacement est bizare click droit sur l'emplacement de l'image
http://127.0.0.1/catalog/DIR_WS_ICONE

EMMA 33
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 13:04
Message #7


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Pour Leirisset

Si cela peut aider dans les modifications j'ai due ajouter


dans catalog/admin/includes/languages/french/categories.php

après

CODE
define('TEXT_CATEGORIES_IMAGE', 'Image de la catégorie :');


rajouter

CODE
define('TEXT_CATEGORIES_ICONE', 'Icone de la catégorie :');


et après

CODE
define('TEXT_EDIT_CATEGORIES_IMAGE', 'Image de la catégorie :');

rajouter

CODE
define('TEXT_EDIT_CATEGORIES_ICONE', 'Icone de la catégorie :');

Cordialement
EMMA 33

Ce message a été modifié par Emma33 - 24 Feb 2008, 13:07.
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 14:21
Message #8


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



C'est fait ds les FICHIERS catalog/includes/configure.php et catalog/admin/includes/configure.php
define('DIR_WS_ICONE', DIR_WS_IMAGES . 'icone/');

Tjrs rien ne s'affiche pas d'image je désespère

Mais qds je click droit sur l'emplacement de l'image il me dit ...

http://127.0.0.1/catalog/images/icone/

J'ai mis une images dans un dossier dans catalog/images/icone et tjrs rien blush.gif

J'ai bloqué les images de mon navigateur et je les ai débloquées rien ni fait j'ai l'emplacement de l'image qui s'affiche je le vois sur le site mais .... ???? A s'arracher les cheveux blink.gif

Mais que ce passe t'il .... ????? sad.gif
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 14:46
Message #9


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Je vois par transparence à la place de mon image un lien dessous qui se nome Pierres & Perles

Donc mon image s'appelle Pierres_&_Perles.gif blink.gif

Go to the top of the page
 
Emma33
posté 24 Feb 2008, 15:16
Message #10


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Voila... ???

Le fichier est trop long comment te l'envoyer???

En plusieurs morseaux peut être???

EMMA 33
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 15:31
Message #11


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



C fait Marco.

Dis moi si tu as reçu

Emmanuelle
EMMA33
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 17:05
Message #12


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Re Salut Marco

C'est fait j'avais zaper les 2 premières étapes je sais pas pourquoi je ne comprend pas. blush.gif

Fichier admin/categorie.php modifs faite.

Mes images ne s'affiche tjrs pas. ??? blink.gif blush.gif

Je te renvoie le fichier modifié par mail si tu peux jeter un coup d'oeil STP. Merci d'avance.

Emma 33
Go to the top of the page
 
Emma33
posté 24 Feb 2008, 18:33
Message #13


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 18-January 08
Membre no 20457



Marco

Je viens de te renvoyer le fichier il y a 5 minutes dis moi si tu la reçu

Emma33
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 : 23rd May 2013 - 17:27
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)