Bonjour,
J'ai une question voila ma gallery :
J'aimerais changer la couleur de la categorie Clips sans devoir y ajouter un album, je voudrais qu'elle soit blanche mais a chaque fois que je change les couleurs de la css ce sont capture tv et clips qui change de couleurs et non pas seulement clips
Alors voila je vous demande comment je pourrais faire =)
Merci d'avance.
Quote from: sunshine59 on January 22, 2009, 04:18:14 PM
Bonjour,
J'ai une question voila ma gallery :
J'aimerais changer la couleur de la categorie Clips sans devoir y ajouter un album, je voudrais qu'elle soit blanche mais a chaque fois que je change les couleurs de la css ce sont capture tv et clips qui change de couleurs et non pas seulement clips
Alors voila je vous demande comment je pourrais faire =)
Merci d'avance.
c'est tout à fait normal puisqu eclip est une catégorie et que la css affecte les catégories et sous catégories. Il faudrait déjà voir dans le code (fichier theme.php du theme) comment il est possible d'ajouter une class pour les sous-catégories...
Mon code est ici :
http://sionestlaensemble.free.fr/cpg1416/cpg1416/themes/classic_rating/style.css
Comment faire pour ajouter une ligne de plus ? (faut dire que avec le CSS je n'y connait pas grand chose)
Et mon code du theme est ici :
Quote<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
**********************************************/
define('THEME_IS_XHTML10_TRANSITIONAL',1);
//Rating change
$template_image_rating = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
</tr>
<tr>
<td class="tableb_compact">{RATESCRIPT}</td>
</tr>
</table>
EOT;
function theme_html_rating_box()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $THEME_DIR;
global $template_image_rating, $lang_rate_pic;
if (!(USER_CAN_RATE_PICTURES && $CURRENT_ALBUM_DATA['votes'] == 'YES')) return '';
$votes = $CURRENT_PIC_DATA['votes'] ? sprintf($lang_rate_pic['rating'], round($CURRENT_PIC_DATA['pic_rating'] / 2000, 1), $CURRENT_PIC_DATA['votes']) : $lang_rate_pic['no_votes'];
$pid = $CURRENT_PIC_DATA['pid'];
if (defined('THEME_HAS_RATING_GRAPHICS')) {
$location= $THEME_DIR;
} else {
$location= '';
}
$params = array('{TITLE}' => $lang_rate_pic['rate_this_pic'],
'{RATESCRIPT}' => '<script type="text/javascript" language="JavaScript">displayStars(' . round($CURRENT_PIC_DATA['pic_rating'] / 2000, 0) . ', ' . $pid . ', "");</script>',
'{VOTES}' => $votes,
'{WIDTH}' => $CONFIG['picture_table_width'],
'{LOCATION}' => $location, //theme dir or default images directory
);
return template_eval($template_image_rating, $params);
}
?>
attaches l'ensemble des fichiers de ton theme à ton prochain post (dans un fichier zip) pour que je regardes ça de plus près
Voila
j'ai jeté un oeil mais ça semble très compliqué. Je n'ai pas trouvé comment faire