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

[Forum] Ajouter un champ du profil - Localisation - 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] [Forum] Ajouter un champ du profil - Localisation  [24 réponses]

puce Index du Forum  » Portail & Modules  » Modifications et Créations des modules


Répondre


fleche bas

lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien lundi 1er mars 2010 à 23:50  
Bonsoir,
J'ai bien lu la FAQ - Forum : Ajouter un champ du profil
http://www.kwsphp.org/index.php?mod=multi-faq&action=faq&id=8#Qfaq63
Mais pour quelqu'un comme moi qui ne code pas c'est dangereux !
Pouvez vous m'indiquer si le code suivant est bon avant que je fasse une bêtise
Merci


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  5. {
  6.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  7.     <tr>
  8.         <td style="width:100%;">
  9.             <div style="text-align:left;">';
  10.                 open_table();
  11.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  12.                     <tr>
  13.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.''.(!empty($TabInfoProfil['localisation']) ? '<br />'.$TabInfoProfil['localisation'].'' : '').'</td>
  14.                         <td style="width:75%; vertical-align:top">
  15.                             <span class="forum_date">'.$date.'</span>
  16.                             <hr />
  17.                             <p>'.$message.'</p>';
  18.                             if (!empty($signature))
  19.                             {
  20.                                 echo '<hr />
  21.                                 <p>'.$signature.'</p>';
  22.                             }
  23.                             if (!empty($contact))
  24.                             {
  25.                                 echo '<hr />
  26.                                 <p>'.$contact.'</p>';
  27.                             }
  28.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  29.                         </td>
  30.                     </tr>
  31.                 </table>
  32.                 <br />' ;
  33.                 close_table();
  34.             echo '</div>
  35.         </td>
  36.     </tr>';
  37. }
  38.  
  39. #####!!!#####
  40. ?>


Code original de greenday
[hide=toto]
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  5. {
  6.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  7.     <tr>
  8.         <td style="width:100%;">
  9.             <div style="text-align:left;">';
  10.                 open_table();
  11.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  12.                     <tr>
  13.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.'</td>
  14.                         <td style="width:75%; vertical-align:top">
  15.                             <span class="forum_date">'.$date.'</span>
  16.                             <hr />
  17.                             <p>'.$message.'</p>';
  18.                             if (!empty($signature))
  19.                             {
  20.                                 echo '<hr />
  21.                                 <p>'.$signature.'</p>';
  22.                             }
  23.                             if (!empty($contact))
  24.                             {
  25.                                 echo '<hr />
  26.                                 <p>'.$contact.'</p>';
  27.                             }
  28.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  29.                         </td>
  30.                     </tr>
  31.                 </table>
  32.                 <br />' ;
  33.                 close_table();
  34.             echo '</div>
  35.         </td>
  36.     </tr>';
  37. }
  38.  
  39. #####!!!#####
  40. ?>
[/hide]


http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


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 mardi 2 mars 2010 à 08:36  
Slt,

D'une y'a un topic pour ça !

De deux, tu à essayer cette modif? Elle fonctionne? Que lui reproche tu?

De trois, je vois pas de pblm dans ton code. Mais comme on sais pas s'il fonctionne ou non...


lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien mardi 2 mars 2010 à 10:55  

Salut Calfou,
Tu t'es levé du mauvais pied ce matin ! smiley sg3agbangg3ag.gif
Alors je vais te répondre point par point


Citation de calfou :
D'une y'a un topic pour ça !


Oui en effet j'en avait déjà fait un à l'époque et j'ai voulu repartir de celui là après avoir lu la FAQ mais manque de chance le sujet était vérouillé !
Lien ICI


Citation de calfou :
De deux, tu à essayer cette modif? Elle fonctionne? Que lui reproche tu?

C'est écrit en dessous de mon avatar, tu le sais et tout le monde ici le sais, je ne comprends pas grand chose au code. Je fais tout pour essayer de m'en sortir tout seul et remettre les fonctionnalités perso de mes sites mais parfois quand je ne sais pas les conséquences que ça peut avoir, je demande confirmation


Citation de calfou :
De trois, je vois pas de pblm dans ton code. Mais comme on sais pas s'il fonctionne ou non...

En affet par peur de faire une grosse betise et de tout casser, je ne l'ai pas essayer. Maintenant si tu me dis que je risque pas grand chose et que je ne vais pas rester le site planté pendant des heures je testerais ça

Et quand je peux rendre un petit service quand ça me semble être dans mes cordes, c'est bien volontier smiley sg3bgg29g.gif
Lien ICI

Merci et bonne journée

http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


σmike007
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 7551 (1.02/Jour)
Inscrit(e) le: 05 juillet 2006
Visiter son site
Imprimer Permalien mardi 2 mars 2010 à 11:06  
ancien sujet verrouillé, c'est normal, le nouveau est là

http://www.kwsphp.org/index.php?mod=forum&ac=voir&id=9347

Si c'est dans la FAQ, a priori, il n'y a pas de raison que ça plante, et si tu plantes le truc, bah comme tu as fait une sauvegarde de ton fichier avant d'y effectuer des changements, bein tu remets l'ancien

Vous êtes satisfait de l'aide apportée !! Vous avez l'âme généreuse !!

Faite un don du montant souhaité
Un petit don (même de 1 euro) de chaque personne satisfaite permet de témoigner de votre reconnaissance pour le temps passé. merci


Mes Modules ou ceux que j'ai repris en V1.6 : ICI. Module Humour
bbcode_sup => Voir le forum dédié (youtube, daily, zoomimg, deezer, divx, clearbox, apostrophe word, etc...)


lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien mardi 2 mars 2010 à 12:05  

Citation de mike007 :
ancien sujet verrouillé, c'est normal, le nouveau est là

http://www.kwsphp.org/index.php?mod=forum&ac=voir&id=9347

Oh pardon smiley sg3agrougisg3ag.gif
Ne faudrait il pas peut etre metre le lien du topic dans la FAQ


Citation de mike007 :
Si c'est dans la FAQ, a priori, il n'y a pas de raison que ça plante, et si tu plantes le truc, bah comme tu as fait une sauvegarde de ton fichier avant d'y effectuer des changements, bein tu remets l'ancien

Oui je fais des sauvegarde mais mieux vaut éviter d'avoir des soucis. Je ne sais pas si j'ai bien copier/coller le code et autre...
Si c'est revenir sur le fichier antérieur par FTP, pas de soucis. Maintenant si cela dérègle la bdd...
J'essais et que ça ailles ou pas je mettrais le code sur l'autre sujet pour les autres membres dans la meme situation que moi

http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


Imprimer Permalien mardi 2 mars 2010 à 12:52  
Mdr, non suis de bon poil, mais tu n'a pas chercher smiley sg3agp.gif

Bon trève de plaisanterie, tu prend ton code tu le test et tu vois ensuite. Si y'a message d'erreur, tu le vire et tu remet l'ancien et tu nous indique le code avec le message d'erreur. Rien de plus simple. (Et pas besoin de maitriser php pour faire des test smiley sg3agD.gif )

Allez bonne journée


lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien jeudi 4 mars 2010 à 00:50  
J'ai essayé avec le code ci dessous mais rien ne se passe...
Ni en bien, ni en mal... smiley sg3agheing3ag.gif
Si vous pouviez m'aider svp
J'ai collé le code en entier pour qu'il n'y ait pas d'ambiguïté
Merci

[hide=t]
Citation :

Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2. // $Id: bloc.php 889 2010-01-25 Calfou $
  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;faire=edit&amp;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" border="0" />&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" border="0" />&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" border="0" />&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.'" border="0"  />
  168.                 <div align="justify" >'.$contenu.'</div>
  169.                 '.$commentaire.'<span>'.$editer.'&nbsp;</span>
  170.             </td>
  171.             <td class="bloc_right">&nbsp;</td>
  172.         </tr>
  173.         <tr>
  174.             <td class="bloc_footer_01">&nbsp;</td>
  175.             <td class="bloc_footer_02">&nbsp;</td>
  176.             <td class="bloc_footer_03">&nbsp;</td>
  177.         </tr>
  178.     </table>';
  179. }
  180.  
  181. //************
  182. //* ARTICLES *
  183. //************
  184. # Les Articles
  185. function bloc_article_cat ($id, $titre, $image, $contenu)
  186. {
  187.     if (!empty($image))
  188.     {
  189.         $image = '<a href="index.php?mod=articles&amp;ref='.$id.'"><img class="img_news" src="'.$image.'" style="float:right; border:0" alt="'.$image.'" /></a>';
  190.     }
  191.     //affichage
  192.     echo '<table cellspacing="0" cellpadding="0" summary="'.$mod.'">
  193.         <tr>
  194.             <td><div class="imgbloc_01">&nbsp;</div></td>
  195.             <td class="imgbloc_02"><a class="cattitle" href="index.php?mod=articles&amp;ref='.$id.'">'.$titre.'</a></td>
  196.             <td><div class="imgbloc_03">&nbsp;</div></td>
  197.         </tr>
  198.         <tr>
  199.             <td class="bloc_left">&nbsp;</td>
  200.             <td style="text-align:left;">'.$image.$contenu.'</td>
  201.             <td class="bloc_right_article">&nbsp;</td>
  202.         </tr>
  203.         <tr>
  204.             <td class="bloc_footer_01">&nbsp;</td>
  205.             <td class="bloc_footer_02">&nbsp;</td>
  206.             <td class="bloc_footer_03">&nbsp;</td>
  207.         </tr>
  208.     </table>';
  209. }
  210.  
  211. function bloc_rubrique_cat ($id, $titre, $image, $contenu)
  212. {
  213.     global $mod;
  214.     if (!empty($image))
  215.     {
  216.         $image = '<a href="index.php?mod='.$mod.'&amp;action='.$mod.'&amp;ref='.$id.'">    <img src="'.$image.'" align="left" border="0" alt="'.$image.'" /></a><br />' ;
  217.     }
  218.  
  219.     echo '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cadre" summary="'.$mod.'">';
  220.         if($titre)
  221.         {
  222.             echo'<tr>
  223.                 <td align="left" valign="middle" class="titre_blocs">
  224.                     <a href="index.php?mod='.$mod.'&amp;action='.$mod.'&amp;ref='.$id.'"><span class="cattitle">&nbsp;&nbsp;'.$titre.'</span></a>
  225.                 </td>
  226.             </tr>';
  227.         }
  228.         echo'<tr>
  229.             <td align="left" valign="top">'.$image.'&nbsp;'.$contenu.'</td>
  230.         </tr>
  231.     </table>
  232.     <br />';
  233. }
  234.  
  235. //************
  236. //* LE FORUM *
  237. //************
  238. function forum_rep_head()
  239. {
  240.     bloc_head('');
  241.     echo '<!--  Entêtes des posts du forum (forum_rep_head) -->
  242.     <table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Contenu des posts forum">';
  243. }
  244.  
  245. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  246. {
  247.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  248.     <tr>
  249.         <td style="width:100%;">
  250.             <div style="text-align:left;">';
  251.                 open_table();
  252.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  253.                     <tr>
  254.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.''.(!empty($TabInfoProfil['localisation']) ? '<br />Localisation : '.$TabInfoProfil['localisation'].'' : '').'</td>
  255.                         <td style="width:75%; vertical-align:top">
  256.                             <span class="forum_date">'.$date.'</span>
  257.                             <hr />
  258.                             <p>'.$message.'</p>';
  259.                             if (!empty($signature))
  260.                             {
  261.                                 echo '<hr />
  262.                                 <p>'.$signature.'</p>';
  263.                             }
  264.                             if (!empty($contact))
  265.                             {
  266.                                 echo '<hr />
  267.                                 <p>'.$contact.'</p>';
  268.                             }
  269.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  270.                         </td>
  271.                     </tr>
  272.                 </table>
  273.                 <br />' ;
  274.                 close_table();
  275.             echo '</div>
  276.         </td>
  277.     </tr>';
  278. }
  279.  
  280. function forum_rep_sep ()
  281. {
  282.     echo '<!--  Séparateur des posts du forum (forum_rep_sep)-->
  283.     <tr style="height:5px;">
  284.         <td>&nbsp;</td>
  285.     </tr>';
  286. }
  287.  
  288. function forum_rep_close ()
  289. {
  290.     echo '<!--  Fermeture des posts du forum (forum_rep_close)  -->
  291.     </table>';
  292.     close_table();
  293. }
  294.  
  295. # Entetes du forum
  296. function forum_head ()
  297. {
  298.     echo '<!--  Sujets du forum  entêtes (forum_head)  -->';
  299.     open_table();
  300.     echo '<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Sujets du forum">
  301.         <tr>
  302.             <td class="forum_titre_left">&nbsp;</td>
  303.             <td class="forum_titre" colspan="1">&nbsp;&nbsp;Sujets&nbsp;&nbsp;</td>
  304.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;R&eacute;ponses&nbsp;&nbsp;</td>
  305.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Auteur&nbsp;&nbsp;</td>
  306.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Vus</td>
  307.             <td class="forum_titre" style="text-align:center;">&nbsp;&nbsp;Derniers&nbsp;&nbsp;</td>
  308.             <td class="forum_titre_right">&nbsp;</td>
  309.         </tr>';
  310. }
  311.  
  312. function forum_mid ($image, $titre, $rep, $auteur, $hits, $dernier)
  313. {
  314.     echo '<!--  Contenu des sujets du forum (forum_mid)  -->
  315.     <tr align="left" onmouseover="this.className = \'onmouse_over_forum\';" onmouseout="this.className = \'onmouse_out_forum\';">
  316.         <td style="text-align:center;"><img src="'.$image.'" style="border:none" /></td>
  317.         <td style="text-align:left; width:70%;">&nbsp;&nbsp;&nbsp;'.$titre.'</td>
  318.         <td style="text-align:center; width:5%;">'.$rep.'</td>
  319.         <td style="text-align:center; width:10%;">'.$auteur.'</td>
  320.         <td style="text-align:center; width:5%;">'.$hits.'</td>
  321.         <td style="text-align:center;  width:10%;">'.$dernier.'</td>
  322.     </tr>';
  323. }
  324.  
  325. function forum_close ()
  326. {
  327.     echo '<!--  Fermeture des sujets du forum (forum_close) -->
  328.     </table>' ;
  329.     close_table();
  330. }
  331.  
  332. # Les Catégories du forum
  333. function forum_cat_head ()
  334. {
  335.     open_table();
  336.     echo '<!--  Entêtes des catégories de forum (forum_cat_head)  -->
  337.     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Catégories du forum">
  338.         <tr>
  339.             <td class="forum_titre_left"></td>
  340.             <td class="forum_titre" colspan="1">Forum</td>
  341.             <td class="forum_titre">Sujets</td>
  342.             <td class="forum_titre">R&eacute;ponses</td>
  343.             <td class="forum_titre" style="text-align:center; width:20%;">Dernier post</td>
  344.             <td class="forum_titre_right">&nbsp;</td>
  345.         </tr>';
  346. }
  347.  
  348. function forum_cat_mid ($image, $titre, $desc, $nb_sujet, $nb_rep, $dernier, $id)
  349. {
  350.     echo '<!--  Contenu des catégories (forum_cat_mid)  -->
  351.     <tr onmouseover="this.className = \'onmouse_over_forum\';" onmouseout="this.className = \'onmouse_out_forum\';">
  352.         <td width="45" align="left" valign="top"><img src="'.$image.'" /></td>
  353.         <td class="forum_cat_mid" >
  354.             '.$titre.'<br />
  355.             '.$desc.'
  356.         </td>
  357.         <td style="text-align:center; width:10%;">'.$nb_sujet.'</td>
  358.         <td style="text-align:center; width:10%;">'.$nb_rep.'</td>
  359.         <td style="text-align:left; width:20%;">'.$dernier.'</td>
  360.     </tr>';
  361. }
  362.  
  363. # Les Séparations
  364. function forum_cat_sep ($titre)
  365. {
  366.     echo '<!--  Séparateurs de catégories  -->
  367.     <tr>
  368.         <td class="forum_titre_left"></td>
  369.         <td class="forum_separ" colspan="4" ><span>&nbsp;'.$titre.'</span></td>
  370.         <td class="forum_titre_right"></td>
  371.     </tr>';
  372. }
  373.  
  374. function forum_cat_close ()
  375. {
  376.     forum_close();
  377. }
  378. ?>


[/hide]

http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


σGothicae
starsj6.png
Dieu
Ultra Méchant


avatar
Hors ligne

Nombre de posts: 1583 (0.22/Jour)
Inscrit(e) le: 13 avril 2007
Visiter son site
Imprimer Permalien jeudi 4 mars 2010 à 01:31  
Et il est ou le global $TabInfoProfil; ?

function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null) {
global $K_url_site;
global $K_theme;
global $TabInfoProfil;


...


}

Comtois , rends toi! Neni ma foi! | http://www.design.bouliz.com | http://www.bouliz.com
Qui c'est les plus forts, évidemment c'est les verts!!!
userbar_112987970.png


lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien jeudi 4 mars 2010 à 19:18  
Salut Gothicae,
sympa ton aide... smiley sg3ags.gif
Mais j'y comprend rien au code moi !
Où doit je mettre cela ?
Peux tu me reprendre le fichier en entier comme j'ai fait stp smiley sg3agrougisg3ag.gif
ça me manque vraiment sur le forum
Merci

http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


Imprimer Permalien jeudi 4 mars 2010 à 19:29  
En plus qu'on là fait à quelqu'un dans le bon topic ou on lui à dit tu met cette variable jsute après la fonction c'est pas ne pas comprendre je pense. Mais il faut que tu regarde comment c'est fait si tu veut y arriver par toi même.

Réponse ci-dessus posté le jeudi 04 mars 2010 : 19:28



En plus suis pas chien je te donne le permalien ! http://www.kwsphp.org/index.php?mod=forum&ac=voir&id=9347#post81752

Et si tu regarde bien c'est pour faire afficher la localisation chez spartam!!


lboubou
starsj6.png
Dieu


avatar
Hors ligne

Nombre de posts: 1521 (0.22/Jour)
Inscrit(e) le: 24 juillet 2007
Visiter son site
Imprimer Permalien jeudi 4 mars 2010 à 22:31  
Je deviens fou !!!!!!
ça fait 2H que j'essaie différentes chose sans succes...
ça plante le portail car il suffit que j'oublie un petit truc
La dernière en date mais pas mieux


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  5. {
  6.     global $TabInfoProfil;
  7.       $retourALaLigne = '';
  8.     $temp = str_replace(' ','',$signature);
  9.     if (!empty($temp) )
  10.     {
  11.            $retourALaLigne = ''.$signature.'';
  12.     }
  13.                 open_table();
  14.                 echo '
  15.                 <!--  Contenu des posts du forum (forum_rep_mid)  -->  
  16.                 <div class="forum_message"> 
  17.             <div class="forum_auteur">'.$auteur.''.(!empty($TabInfoProfil['localisation']) ? '<br />'.$TabInfoProfil['localisation'].'' : '').'</p></div>
  18.             <div class="forum_post"><span class="forum_date">'.$date.'</span><hr />'.$message.'
  19.                             if (!empty($signature))
  20.                             {
  21.                                 echo '<hr />
  22.                                 <p>'.$signature.'</p>';
  23.                             }
  24.                             if (!empty($contact))
  25.                             {
  26.                                 echo '<hr />
  27.                                 <p>'.$contact.'</p>';
  28.                             }
  29.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  30.                         </td>
  31.                     </tr>
  32.                 </table>
  33.                 <br />' ;
  34.                 close_table();
  35.             echo '</div>
  36.         </td>
  37.     </tr>';
  38. }
  39.  
  40. #####!!!#####
  41. ?>


HELP !

http://www.grives.net
http://www.videos-chasse-peche.com
http://www.ruisseau-des-blaquieres.com
http://www.saint-eloi-chateau-gombert.com


fleche bas[Résolu] [Forum] Ajouter un champ du profil - Localisation  [24 réponses]

Répondre



puce Index du Forum  » Portail & Modules  » Modifications et Créations des modules