PDA

Voir la version complète : Chat Box


Nicolas
01/03/2007, 03h29
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

0a$!s
01/03/2007, 03h38
Slt,

Voilà qui devrait t'aider : http://forum.vbulletin-fr.org/showthread.php?t=3671 ;) .

++

Nicolas
01/03/2007, 04h34
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&amp;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&amp;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&amp;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&amp;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>

Nicolas
01/03/2007, 12h57
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

Nicolas
01/03/2007, 18h28
Y'aurai pas un petit moyen d'exemple ;)

Nicolas
02/03/2007, 03h31
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 )

Ludo57
02/03/2007, 07h51
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])

Nicolas
02/03/2007, 15h45
Merci c'est gentil , je regarde cela de suite, je reviens pour te dire si cela a fonctionner.

Nicolas
02/03/2007, 20h23
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

Allan
02/03/2007, 21h06
Ceci pourrai t'aider peut être: http://www.vbulletin.org/forum/showthread.php?t=136757

Nicolas
02/03/2007, 21h58
C'est quoi exatement ?

Merci Allant