Voir la version complète : Chat Box
Bonsoir a tous,
Voila je suis entrain de faire une chatbox, ma question es :
Comment rajouter les avatars des posteur a coter de leur non ou soie a la place:
Info:Chatbox by Megatekno
http://img222.imageshack.us/img222/416/70914697yb6.jpg
Slt,
Voilà qui devrait t'aider : http://forum.vbulletin-fr.org/showthread.php?t=3671 ;) .
++
merci , par contre je ne sais pas si mon code est bon :
Template:chatbox_bit
Avant
<div>
<if condition="$permedite and $vboptions['chatbox_edit_shout']">
<if condition="$chatedit and !$chatmodos">
<img style="cursor: pointer" src="$stylevar[imgdir_chatbox]/edit_1.gif" title="$vbphrase[chatbox_edit_shout]" border="0" onclick="window.open('chatbox.php?$session[sessionurl]do=editchat&id=$Chat[id]','editchat','statusbar=no,menubar=no,toolbar=no,s crollbars=yes,resizable=yes,left=0,top=0,width=$st ylevar[chatboxwidth],height=$stylevar[chatboxheight]'); return false;">
<else />
<if condition="$chatmodos">
<img style="cursor: pointer" src="$stylevar[imgdir_chatbox]/edit_0.gif" title="$vbphrase[chatbox_edit_delete_shout]" border="0" onclick="window.open('chatbox.php? $session[sessionurl]do=editchat&id=$Chat[id]','editchat','statusbar=no,menubar=no,toolbar=no,s crollbars=yes,resizable=yes,left=0,top=0,width=$st ylevar[chatboxwidth],height=$stylevar[chatboxheight]'); return false" />
<else />
<img src="$stylevar[imgdir_chatbox]/edit_null.gif" border="0" />
</if>
</if>
</if>
<span class="chat_dateheure" title="$vbphrase[chatbox_propo] $Chat[dates] - $Chat[times]">
<font size="2">$Chat[times]</font></span>
<span class="chat_username" title=""><font size="2">$Chat[username]:</font></span>
<span class="$colorite" title="">$Chat[comment]</span>
</div>
Code apres :
<div>
<if condition="$permedite and $vboptions['chatbox_edit_shout']">
<if condition="$chatedit and !$chatmodos">
<img style="cursor: pointer" src="$stylevar[imgdir_chatbox]/edit_1.gif" title="$vbphrase[chatbox_edit_shout]" border="0" onclick="window.open('chatbox.php?$session[sessionurl]do=editchat&id=$Chat[id]','editchat','statusbar=no,menubar=no,toolbar=no,s crollbars=yes,resizable=yes,left=0,top=0,width=$st ylevar[chatboxwidth],height=$stylevar[chatboxheight]'); return false;">
<else />
<if condition="$chatmodos">
<img style="cursor: pointer" src="$stylevar[imgdir_chatbox]/edit_0.gif" title="$vbphrase[chatbox_edit_delete_shout]" border="0" onclick="window.open('chatbox.php? $session[sessionurl]do=editchat&id=$Chat[id]','editchat','statusbar=no,menubar=no,toolbar=no,s crollbars=yes,resizable=yes,left=0,top=0,width=$st ylevar[chatboxwidth],height=$stylevar[chatboxheight]'); return false" />
<else />
<img src="$stylevar[imgdir_chatbox]/edit_null.gif" border="0" />
</if>
</if>
</if>
<span class="chat_dateheure" title="$vbphrase[chatbox_propo] $Chat[dates] - $Chat[times]">
<font size="2">$Chat[times]</font></span>
<span class="chat_avatar" title=""><font size="2">$Chat[avatar]:</font></span>
<span class="chat_username" title=""><font size="2">$Chat[username]:</font></span>
<span class="$colorite" title="">$Chat[comment]</span>
</div>
Rebonjour, j'ai tout essayer Niete marche pas:(
@pitbull
01/03/2007, 15h46
modifier le template n'est pas suffisant il faut aussi executer la requete pour apeler l'avatar
Y'aurai pas un petit moyen d'exemple ;)
Bon j'ai beau chercher , je me suis deja arracher la moiter des cheveux mais a part sa marche pas, j'ai fait toutes les manip possible rien a faire, si quelque peu me faire un petit exemple avec mes code sa serai cool .
( Sa evitera que je termine la semaine,sans mes cheveux )
la requète pour l'avatar est normalement $post[avatarurl] , mais toi tu met dans ta chat box "$chat[avatar] , or si tu ne l'as pas créer (je ne parle pas dans le templète bien entendu, mais de la requète en elle même) elle n'existe pas, tu dois donc la créer dans ton mod, dans le gestionnaire de module, dans le bon module (la je ne peux pas t'aider je n'ai pas la chatbox), et a mon avis (mais ce n'est pas sur, je ne suis pas un spécialiste), tu peux créer ta requète en mettant -> $chat[avatar]=$post[avatarurl] (je ne sais vraiment pas si ça marchera, a essayer), et après la requète existera
peut être que de l'appeler dans ton template directement marchera aussi (la requète $post[avatarurl])
Merci c'est gentil , je regarde cela de suite, je reviens pour te dire si cela a fonctionner.
Rebonjour a tous,
Je viens d'essayer , Sa marche pas, la je pige pas, deja je ne sais meme pas si sela serai realisable.
Allan, si tu voi se post , tu peux me confirmer si mon idee es realisable ?
Merci par avance.
Amitie Nico
Ceci pourrai t'aider peut être: http://www.vbulletin.org/forum/showthread.php?t=136757
C'est quoi exatement ?
Merci Allant
vBulletin® v.3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd. Tous droits réservés