Accueil   Accueil    Forum   Forum    Download   Download    Livre d'or   Livre d'or    Contact   Contact    Liens Web   Liens Web

[blackday] Largeur signature - CMS KwsPHP - Le site clés en main

Colonne de gauche

Espace membre

Privé Masquer le formulaire de connexion


Se souvenir de moi ?


Mot de passe oublié

Menu

Forum

Sujets Importants

fleche basForum : Masquer l’entête

Accès rapide :

 

Effectuer une Recherche avancée OU


fleche bas[Résolu] [blackday] Largeur signature  [13 réponses]

puce Index du Forum  » Thèmes  » Modification et Création des thèmes


Répondre


fleche bas

sofybj
starsj3.png
Habitué


avatar
Hors ligne

Nombre de posts: 206 (0.03/Jour)
Inscrit(e) le: 27 juin 2006
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 17:13  
Bonjour,

J'utilise depuis longtemps le thème Blackday de Brikwo avec une largeur de portail fixe.
et j'ai souvent des membres qui placent une signature beaucoup trop longue.
J'aimerai la redimensionner automatiquement ? est ce possible ? et si oui comment ?

Merci de vos réponse,
Sophie


Infos CMS KwsPHP


Informations : Avant de poster un sujet sur le forum

Veuillez avant tout vérifiez la comparaison de vos fichiers sur votre site
Mon compte / Outils / Comparaison


La recherche avancée du forum (en ciblant au mieux les options de la recherche)
La Faq - La documentation - La documentation en vidéo - Le sujet "Install et Mise à jour"
Vous devez lire en priorité le topic de la 1.6 pour en découvrir ses fonctionnalités


Afficher



Imprimer Permalien vendredi 28 janvier 2011 à 18:27  
Slt

Qu'appelle-tu beaucoup trop grande?

C'est l'image de ce premier post du topic : http://www.bonjovifrance.net/portail/index.php?mod=forum&ac=voir&id=8740 ?

Il faudrait peut etre appliquer une class dans le bloc.php du theme sur la signature puis dans le style mettre une dimension fixe aux images.






sofybj
starsj3.png
Habitué


avatar
Hors ligne

Nombre de posts: 206 (0.03/Jour)
Inscrit(e) le: 27 juin 2006
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 18:33  
Oui exactement ..
La hauteur c'est pas grave mais la largeur 500 serait bien !!


Imprimer Permalien vendredi 28 janvier 2011 à 19:14  
Hum...

Est-ce que tu t'y connais en programmation?

Sinon va falloir attendre le magnifique Stefff pour qu'il nous en dise un peut plus smiley sg3bgg29g.gif


σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 19:28  
Une dimension fixe sur la signature aura pour effet d'agrandir les petites signatures.

Il faut modifier le bloc.php du thème et mettre une fonction qui retaille les signatures trop grosse.

Getimagesize suffit smiley sg3bgg29g.gif

http://www.manuelphp.com/php/function.getimagesize.php

++

Le temps file....


sofybj
starsj3.png
Habitué


avatar
Hors ligne

Nombre de posts: 206 (0.03/Jour)
Inscrit(e) le: 27 juin 2006
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 19:39  
Ok mais je mets quoi ? et où dans le fichier ?


σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 19:44  
je n'est pas le bloc.php de se thème, au pire envoi le ici sur KwsPHP, je te greffe cette fonction dès que je peux.

A+

Le temps file....


Imprimer Permalien vendredi 28 janvier 2011 à 19:45  
D'après le codeur du themeur (le themeur smiley sg3agD.gif ) il faut simplement faire :

il faut ajouter une classe dans la table du forum puis un coup de Css width:530px par exemple

Alors moi, je répond plus de rien now smiley sg3agD.gif


σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien vendredi 28 janvier 2011 à 19:51  
Oui ca va limiter la largeur a 530px mais soit les signatures vont être coupé puisque tu bloque l'affichage...

Ou alors je zape un truc...

Bref, y'a qu'a essayer pour voir smiley sg3agD.gif



Le temps file....


sofybj
starsj3.png
Habitué


avatar
Hors ligne

Nombre de posts: 206 (0.03/Jour)
Inscrit(e) le: 27 juin 2006
Visiter son site
Imprimer Permalien lundi 31 janvier 2011 à 11:41  
Voici le contenue de bloc.php


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2. // $Id: bloc.php 891 2010-02-10 14:53:13Z mike007.devpwsphp $
  3.  
  4. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  5.  
  6. //*************************
  7. //* ICONES ESPACE MEMBRES *
  8. //*************************
  9. // Affichage de la structure de l'espace membres
  10. function admin_bloc ($titre, $image, $lien, $x)
  11. {
  12.     if (empty($image) or !file_exists($image))
  13.     {
  14.         $image = './themes/'.$GLOBALS['theme'].'/images/modules/koi.png';
  15.     }
  16.  
  17.     echo '<td style="width: 25%; text-align: center">
  18.         <p style="text-align:center;">
  19.             <a href="'.$lien.'"><img src="'.$image.'" alt="Image" style="border:none" /><br />'.$titre.'</a>
  20.         </p>
  21.     </td>';
  22.     if ($x == 4)
  23.     {
  24.         echo '</tr>
  25.         <tr>
  26.             <td>&nbsp;</td>
  27.         </tr>
  28.         <tr>' ;
  29.         $x = 0;
  30.     }
  31.     return $x;
  32. }
  33.  
  34. //*********
  35. //* BLOCS *
  36. //*********
  37. // Blocs principaux (Menu, intro)
  38. function bloc ($titre, $contenu)
  39. {
  40.     global $result_bloc;
  41.  
  42.     if (file_exists('./themes/'.$GLOBALS['theme'].'/images/blocs/'.$result_bloc[module].'.png'))
  43.     {
  44.         $class_bloc = $result_bloc[module];
  45.     }
  46.     else
  47.     {
  48.         $class_bloc = 'vide';
  49.     }
  50.  
  51. /*
  52.     echo '<div class="bloc_titre" style="background-image:url(\'./themes/aquarelle/images/blocs/'.$class_bloc.'.png\'); "  >'.($class_bloc == 'vide' ? ''.$titre : '').'</div>
  53.     <div class="bloc_contenu">'.$contenu.'</div>
  54.     <div class="bloc_footer"></div>';
  55. */
  56.  
  57.     echo '<table style="width:100%; border:none" cellpadding="0" cellspacing="0" summary="bloc">
  58.         <tr>
  59.             <td><div class="imgbloc_01">&nbsp;</div></td>
  60.             <td style="text-align:center" class="imgbloc_02" nowrap="nowrap">'.(empty($titre) ? '&nbsp;' : $titre).'</td>
  61.             <td><div class="imgbloc_03">&nbsp;</div></td>
  62.         </tr>
  63.         <tr>
  64.             <td class="bloc_left">&nbsp;</td>
  65.             <td>'.(empty($contenu) ? '&nbsp;' : $contenu).'</td>
  66.             <td class="bloc_right">&nbsp;</td>
  67.         </tr>
  68.         <tr>
  69.             <td class="bloc_footer_01">&nbsp;</td>
  70.             <td class="bloc_footer_02">&nbsp;</td>
  71.             <td class="bloc_footer_03">&nbsp;</td>
  72.         </tr>
  73.     </table>';
  74. }
  75.  
  76. // Les blocs avec un titre
  77. function bloc_head ($titre)
  78. {
  79.     echo '<table style="width:100%; border:none" cellpadding="0" cellspacing="0" summary="bloc_head">
  80.         <tr>
  81.             <td><div class="imgbloc_01">&nbsp;</div></td>
  82.             <td style="text-align:center" class="imgbloc_02" nowrap="nowrap">'.(empty($titre) ? '&nbsp;' : $titre).'</td>
  83.             <td><div class="imgbloc_03">&nbsp;</div></td>
  84.         </tr>
  85.         <tr>
  86.             <td class="bloc_left">&nbsp;</td>
  87.             <td class="blocline">';
  88. }
  89.  
  90. // Les blocs sans titre
  91. function open_table ()
  92. {
  93.     echo '<table style="width:100%; border:none" cellpadding="0" cellspacing="0" summary="open_table">
  94.         <tr>
  95.             <td><div class="bloc_vide_01">&nbsp;</div></td>
  96.             <td style="text-align:center" class="bloc_vide_02" >&nbsp;</td>
  97.             <td><div class="bloc_vide_03">&nbsp;</div></td>
  98.         </tr>
  99.         <tr>
  100.             <td class="bloc_left">&nbsp;</td>
  101.             <td style="width: 100%">';
  102. }
  103.  
  104. // Fin des blocs
  105. function close_table ()
  106. {
  107.             echo '</td>
  108.             <td class="bloc_right">&nbsp;</td>
  109.         </tr>
  110.         <tr>
  111.             <td class="bloc_footer_01">&nbsp;</td>
  112.             <td class="bloc_footer_02">&nbsp;</td>
  113.             <td class="bloc_footer_03">&nbsp;</td>
  114.         </tr>
  115.     </table>';
  116. }
  117.  
  118. //********
  119. //* NEWS *
  120. //********
  121. function bloc_news ($titre, $date, $auteur, $image, $contenu, $hit, $id_comment, $id_auteur, $nbcomm, $avatar)
  122. {
  123.     global $grade;
  124.  
  125.     if ($grade >= GRD_MODOG)
  126.     {
  127.         $editer = '<br />
  128.         <br />
  129.         <a href="index.php?mod=news&amp;ac=gestion&amp;action=edit&amp;int_id='.$id_comment.'">Editer</a>&nbsp;&nbsp;';
  130.     }
  131.  
  132.     $hits = $hit.' lecture'.($hit>1 ? 's' : '');
  133.  
  134.     $date = kws_date('d/m/Y H:i',$date).' par <a href="index.php?mod=espace_membre&amp;ac=profil&amp;id='.$id_auteur.'">'.$auteur.'</a>';
  135.  
  136.     if ($GLOBALS['ac'] != 'commentaires')
  137.     {
  138.         if ($nbcomm==0)
  139.         {
  140.             $commentaire = '<br />
  141.             <img src="themes/'.$GLOBALS['theme'].'/images/news/ajout_commentaire.png" alt="ajout commentaire" style="border:none" />&nbsp;<a href="index.php?mod=news&amp;ac=commentaires&amp;id='.$id_comment.'">Ajouter un commentaire</a>';
  142.         }
  143.         elseif ($nbcomm==1)
  144.         {
  145.             $commentaire = '<br />
  146.             <img src="themes/'.$GLOBALS['theme'].'/images/news/commentaire.png" alt="1 commentaire" style="border:none" />&nbsp;<a href="index.php?mod=news&amp;ac=commentaires&amp;id='.$id_comment.'">1 commentaire</a>';
  147.         }
  148.         else
  149.         {
  150.             $commentaire = '<br />
  151.             <img src="themes/'.$GLOBALS['theme'].'/images/news/commentaire.png" alt="+ commentaires" style="border:none" />&nbsp;<a href="index.php?mod=news&amp;ac=commentaires&amp;id='.$id_comment.'">'.$nbcomm.' commentaires</a>'  ;  
  152.         }
  153.     }
  154.  
  155.     // Affichage des news
  156.     echo '<table style="width:100%; border:none" cellpadding="0" cellspacing="0" class="bodyline" summary="'.$mod.'">
  157.         <tr>
  158.             <td><div class="imgbloc_01">&nbsp;</div></td>
  159.             <td style="text-align:center" class="news" nowrap="nowrap"><a class="cattitle" href="index.php?mod=news&amp;ac=commentaires&amp;id='.$id_comment.'">'.$titre.' ['.$hits.']</a>&nbsp;</td>
  160.             <td><div class="imgbloc_03">&nbsp;</div></td>
  161.         </tr>
  162.         <tr>
  163.             <td class="bloc_left">&nbsp;</td>
  164.             <td class="contenu_news">
  165.                 <span class="date">'.$date.'&nbsp;</span>
  166.                 <hr />
  167.                 <img  class="img_news" src="'.$image.'" alt="'.$image.'"  />
  168.                 <div align="justify" >'.$contenu.'</div>
  169.                 '.$commentaire.'<span>'.$editer.'&nbsp;</span>
  170.                 
  171.             </td>
  172.             <td class="bloc_right">&nbsp;</td>
  173.         </tr>
  174.         <tr>
  175.             <td class="bloc_footer_01">&nbsp;</td>
  176.             <td class="bloc_footer_02">&nbsp;</td>
  177.             <td class="bloc_footer_03">&nbsp;</td>
  178.         </tr>
  179.     </table>';
  180. }
  181.  
  182. //************
  183. //* ARTICLES *
  184. //************
  185. # Les Articles
  186. function bloc_article_cat ($id, $titre, $image, $contenu)
  187. {
  188.     global $K_mod;
  189.     
  190.     if (!empty($image))
  191.     {
  192.         $image = '<a href="index.php?mod=articles&amp;ref='.$id.'"><img class="img_news" src="'.$image.'" style="float:right; border:0" alt="'.$image.'" /></a>';
  193.     }
  194.     //affichage
  195.     echo '<table cellspacing="0" cellpadding="0" summary="'.$K_mod.'">
  196.         <tr>
  197.             <td><div class="imgbloc_01">&nbsp;</div></td>
  198.             <td class="imgbloc_02"><a class="cattitle" href="index.php?mod=articles&amp;ref='.$id.'">'.$titre.'</a></td>
  199.             <td><div class="imgbloc_03">&nbsp;</div></td>
  200.         </tr>
  201.         <tr>
  202.             <td class="bloc_left">&nbsp;</td>
  203.             <td style="text-align:left;">'.$image.$contenu.'</td>
  204.             <td class="bloc_right_article">&nbsp;</td>
  205.         </tr>
  206.         <tr>
  207.             <td class="bloc_footer_01">&nbsp;</td>
  208.             <td class="bloc_footer_02">&nbsp;</td>
  209.             <td class="bloc_footer_03">&nbsp;</td>
  210.         </tr>
  211.     </table>';
  212. }
  213.  
  214. function bloc_rubrique_cat ($id, $titre, $image, $contenu)
  215. {
  216.     global $K_mod;
  217.     if (!empty($image))
  218.     {
  219.         $image = '<a href="index.php?mod='.$K_mod.'&amp;action='.$K_mod.'&amp;ref='.$id.'">    <img src="'.$image.'" style="border:none; text-align:left" alt="'.$image.'" /></a><br />' ;
  220.     }
  221.  
  222.     echo '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cadre" summary="'.$K_mod.'">';
  223.         if($titre)
  224.         {
  225.             echo'<tr>
  226.                 <td align="left" valign="middle" class="titre_blocs">
  227.                     <a href="index.php?mod='.$K_mod.'&amp;action='.$K_mod.'&amp;ref='.$id.'"><span class="cattitle">&nbsp;&nbsp;'.$titre.'</span></a>
  228.                 </td>
  229.             </tr>';
  230.         }
  231.         echo'<tr>
  232.             <td align="left" valign="top">'.$image.'&nbsp;'.$contenu.'</td>
  233.         </tr>
  234.     </table>
  235.     <br />';
  236. }
  237.  
  238. //************
  239. //* LE FORUM *
  240. //************
  241. function forum_rep_head()
  242. {
  243.     bloc_head('');
  244.     echo '<!--  Entêtes des posts du forum (forum_rep_head) -->
  245.     <table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Contenu des posts forum">';
  246. }
  247.  
  248. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  249. {
  250.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  251.     <tr>
  252.         <td style="width:100%;">
  253.             <div style="text-align:left;">';
  254.                 open_table();
  255.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  256.                     <tr>
  257.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.'</td>
  258.                         <td style="width:75%; vertical-align:top">
  259.                             <span class="forum_date">'.$date.'</span>
  260.                             <hr />
  261.                             <p>'.$message.'</p>';
  262.                             if (!empty($signature))
  263.                             {
  264.                                 echo '<hr />
  265.                                 <p>'.$signature.'</p>';
  266.                             }
  267.                             if (!empty($contact))
  268.                             {
  269.                                 echo '<hr />
  270.                                 <p>'.$contact.'</p>';
  271.                             }
  272.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  273.                         </td>
  274.                     </tr>
  275.                 </table>
  276.                 <br />' ;
  277.                 close_table();
  278.             echo '</div>
  279.         </td>
  280.     </tr>';
  281. }
  282.  
  283. function forum_rep_sep ()
  284. {
  285.     echo '<!--  Séparateur des posts du forum (forum_rep_sep)-->
  286.     <tr style="height:5px;">
  287.         <td>&nbsp;</td>
  288.     </tr>';
  289. }
  290.  
  291. function forum_rep_close ()
  292. {
  293.     echo '<!--  Fermeture des posts du forum (forum_rep_close)  -->
  294.     </table>';
  295.     close_table();
  296. }
  297.  
  298. # Entetes du forum
  299. function forum_head ($titre = 'Sujets')
  300. {
  301.     echo '<!--  Sujets du forum  entêtes (forum_head)  -->';
  302.     open_table();
  303.     echo '<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Sujets du forum">
  304.         <tr>
  305.             <td class="forum_titre_left">&nbsp;</td>
  306.             <td class="forum_titre" colspan="1">&nbsp;&nbsp;'.$titre.'&nbsp;&nbsp;</td>
  307.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;R&eacute;ponses&nbsp;&nbsp;</td>
  308.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Auteur&nbsp;&nbsp;</td>
  309.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Vus</td>
  310.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Derniers&nbsp;&nbsp;</td>
  311.             <td class="forum_titre_right">&nbsp;</td>
  312.         </tr>';
  313. }
  314.  
  315. function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
  316. {
  317.     echo '<!--  Contenu des sujets du forum (forum_mid)  -->
  318.     <tr align="left" onmouseover="this.className = \'onmouse_over_forum\';" onmouseout="this.className = \'onmouse_out_forum\';">
  319.         <td style="text-align:center;"><img src="'.$image.'" style="border:none" /></td>
  320.         <td style="text-align:left; width:70%;">&nbsp;&nbsp;&nbsp;'.$titre.'</td>
  321.         <td style="text-align:center; width:5%;">'.$rep.'</td>
  322.         <td style="text-align:center; width:10%;">'.$auteur.'</td>
  323.         <td style="text-align:center; width:5%;">'.$hits.'</td>
  324.         <td style="text-align:center;  width:10%;">'.$dernier.'</td>
  325.     </tr>';
  326. }
  327.  
  328. function forum_close ()
  329. {
  330.     echo '<!--  Fermeture des sujets du forum (forum_close) -->
  331.     </table>' ;
  332.     close_table();
  333. }
  334.  
  335. # Les Catégories du forum
  336. function forum_cat_head ()
  337. {
  338.     open_table();
  339.     echo '<!--  Entêtes des catégories de forum (forum_cat_head)  -->
  340.     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Catégories du forum">
  341.         <tr>
  342.             <td class="forum_titre_left"></td>
  343.             <td class="forum_titre" colspan="1">Forum</td>
  344.             <td class="forum_titre">Sujets</td>
  345.             <td class="forum_titre">R&eacute;ponses</td>
  346.             <td class="forum_titre" style="text-align:center; width:20%;">Dernier post</td>
  347.             <td class="forum_titre_right">&nbsp;</td>
  348.         </tr>';
  349. }
  350.  
  351. function forum_cat_mid ($image, $titre, $desc, $nb_sujet, $nb_rep, $dernier, $id)
  352. {
  353.     echo '<!--  Contenu des catégories (forum_cat_mid)  -->
  354.     <tr onmouseover="this.className = \'onmouse_over_forum\';" onmouseout="this.className = \'onmouse_out_forum\';">
  355.         <td width="45" align="left" valign="top"><img src="'.$image.'" /></td>
  356.         <td class="forum_cat_mid" >
  357.             '.$titre.'<br />
  358.             '.$desc.'
  359.         </td>
  360.         <td style="text-align:center; width:10%;">'.$nb_sujet.'</td>
  361.         <td style="text-align:center; width:10%;">'.$nb_rep.'</td>
  362.         <td style="text-align:left; width:20%;">'.$dernier.'</td>
  363.     </tr>';
  364. }
  365.  
  366. # Les Séparations
  367. function forum_cat_sep ($titre)
  368. {
  369.     echo '<!--  Séparateurs de catégories  -->
  370.     <tr>
  371.         <td class="forum_titre_left"></td>
  372.         <td class="forum_separ" colspan="4" ><span>&nbsp;'.$titre.'</span></td>
  373.         <td class="forum_titre_right"></td>
  374.     </tr>';
  375. }
  376.  
  377. function forum_cat_close ()
  378. {
  379.     forum_close();
  380. }
  381. ?>
  382.  


Réponse ci-dessus posté le vendredi 28 janvier 2011 : 20:01



Personne pour m'aider ??
smiley sg23gsupermansg23g.gif


σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien lundi 31 janvier 2011 à 19:14  
Hello,

As tout hasard essaye ceci ligne 265 tu as :


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. <p>'.$signature.'</p>';
  5.  
  6. #####!!!#####
  7. ?>


Remplace par :


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. <p style="max-width:500px;">'.$signature.'</p>';
  5.  
  6. #####!!!#####
  7. ?>


Et test smiley sg3agg29g.gif

A+

Le temps file....


fleche bas[Résolu] [blackday] Largeur signature  [13 réponses]

Répondre



puce Index du Forum  » Thèmes  » Modification et Création des thèmes