|
Modifier template au niveau Alphabet dans WFlinks |
|
Régulier
Inscrit: 11/10/2010 10:47
|
Bonjour, Bonsoir et Bon week end a tous. Pour des raisons d'uniformité de mon tit site je voudrais modifier le template Index au niveau de l'alphabet de Wflinks Il est comme ca : http://www.hkrag.fr/modules/wflinks/et je le voudrais comme ca: http://www.hkrag.fr/modules/mytube/J'ai donc recuperer le class et le style dans mytube :
.mytube_letters {
margin-bottom: 8px;
margin-top: 8px;
padding-right: 0.5em;
padding-left: 0.5em;
padding-bottom: 1px;
padding-top: 1px;
background-image: url(images/icon/backgnd.png);
background-position: center center;
background-repeat: repeat-x;
color: #444;
font-size: smaller;
font-weight: bold;
line-height: 16pt;
cursor: pointer;
border: outset 1px #CCC;
}
Et c'est là que je bloque : Je ne trouve pas de fichier style dans wflinks, et si je place ce style direct dans le template en changeant le class ... je n'ai plus un alphabet (lettre separees) Je viens donc vers vous, Par avance un GRAND Merci !!!
Posté le : 06/11/2010 18:58
|
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Semi pro
Inscrit: 08/06/2005 17:15
De Where ?
|
bonjour, dans include/functions.php (fais une sauvegarde du fichier), recherche la partie contenant "function wfl_letters()", remplaces par :
function wfl_letters()
{
global $xoopsModule;
$letterchoice = "<div>" . _MD_WFL_BROWSETOTOPIC . "</div>";
$letterchoice .= "[ ";
$alphabet = array ( "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" );
$num = count( $alphabet ) - 1;
$counter = 0;
while ( list( , $ltr ) = each( $alphabet ) )
{
$letterchoice .= "<a class="wfl_letters" href='" . XOOPS_URL . "/modules/" . $xoopsModule -> getVar( 'dirname' ) . "/viewcat.php?list=$ltr'>$ltr</a>";
if ( $counter == round( $num / 2 ) )
$letterchoice .= " ]<br />[ ";
elseif ( $counter != $num )
$letterchoice .= " | ";
$counter++;
}
$letterchoice .= " ]";
return $letterchoice;
}
ensuite dans la feuille de style de ton thème, tu ajoutes :
.wfl_letters {
margin-bottom: 8px;
margin-top: 8px;
padding-right: 0.5em;
padding-left: 0.5em;
padding-bottom: 1px;
padding-top: 1px;
background-image: url(images/icon/backgnd.png);
background-position: center center;
background-repeat: repeat-x;
color: #444;
font-size: smaller;
font-weight: bold;
line-height: 16pt;
cursor: pointer;
border: outset 1px #CCC;
}
n'oublies pas également de copier cette image "images/icon/backgnd.png" dans ton thème
Posté le : 06/11/2010 23:11
|
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Régulier
Inscrit: 11/10/2010 10:47
|
Bonjour et Merci, Suite Modifs plus haut j'ai du modifié le function comme ceci (ton code me donnait un http500 du a des ' et des " intervertis)
function wfl_letters()
{
global $xoopsModule;
$letterchoice = "<div>" . _MD_WFL_BROWSETOTOPIC . "</div>";
$letterchoice .= "[ ";
$alphabet = array ( "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" );
$num = count( $alphabet ) - 1;
$counter = 0;
while ( list( , $ltr ) = each( $alphabet ) ) {
$letterchoice .= '<a class="wfl_letters" href="' . XOOPS_URL . "/modules/" . $xoopsModule -> getVar( 'dirname' ) . "/viewcat.php?list=$ltr'>$ltr</a>";
if ( $counter == round( $num / 2 ) )
$letterchoice .= " ]<br />[ ";
elseif ( $counter != $num )
$letterchoice .= " | ";
$counter++;
}
$letterchoice .= " ]";
return $letterchoice;
}
Je n'ai plus l'erreur http500 ... mais je n'affiche que le 1er caractere ... Il ne prend pas en compte l'alphabet) http://www.hkrag.fr/modules/wflinks/La feuille de style doit etre juste je suppose puisque deja j'affiche ce caractere [ Merciiii
Posté le : 07/11/2010 05:31
|
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Semi pro
Inscrit: 10/11/2004 13:40
|
Bonsoir peut être dans include/functions.php
function wfl_letters()
{
global $xoopsModule;
$letterchoice = "<div>" . _MD_WFL_BROWSETOTOPIC . "</div>";
$alphabet = array ( "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" );
$num = count( $alphabet ) - 1;
$counter = 0;
while ( list( , $ltr ) = each( $alphabet ) )
{
$letterchoice .= "<a class='wfl_letters' href='" . XOOPS_URL . "/modules/" . $xoopsModule -> getVar( 'dirname' ) . "/viewcat.php?list=$ltr'>$ltr</a>";
if ( $counter == round( $num / 2 ) )
$letterchoice .= "<br />";
elseif ( $counter != $num )
$letterchoice .= " ";
$counter++;
}
return $letterchoice;
}
et dans la feuille de style de ton thème
.wfl_letters {
margin-bottom: 8px;
margin-top: 8px;
padding-right: 0.5em;
padding-left: 0.5em;
padding-bottom: 1px;
padding-top: 1px;
background-image: url(img/backgnd.png);
background-position: center center;
background-repeat: repeat-x;
color: #444;
font-size: smaller;
font-weight: bold;
line-height: 16pt;
cursor: pointer;
border: outset 1px #CCC;
}
en mettant l'image backgnd.png (dans le répertoire images - img de ton thème), et mettre la bonne adresse dans le code css
images/backgnd.png
ou
img/backgnd.png
Posté le : 07/11/2010 19:47
|
PS : Toujours faire une sauvegarde des fichiers avant de les modifier !------------------------------------------- http://www.aideordi.com
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Régulier
Inscrit: 11/10/2010 10:47
|
Bonjour !
Ca Maaarche !!!!
Merci a tous les 2 de votre Aide !!!
R E S O L U
Posté le : 08/11/2010 05:15
|
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Semi pro
Inscrit: 10/11/2004 13:40
|
Quand ton sujet est résolu, il faut que tu penses à l'éditer et à le mettre sur "Résolu" une petite vidéo si tu ne sais pas comment le faire https://www.frxoops.org/modules/mytube ... levideo.php?cid=17&lid=30Merci
Posté le : 08/11/2010 09:02
|
PS : Toujours faire une sauvegarde des fichiers avant de les modifier !------------------------------------------- http://www.aideordi.com
|
|
Re: Modifier template au niveau Alphabet dans WFlinks |
|
Régulier
Inscrit: 11/10/2010 10:47
|
oups ... merci Fait
Posté le : 08/11/2010 18:58
|
|
Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.
|