Aller au contenu

Sujets conseillés

Posté

Bonsoir a tous,

j'ai un problème avec pjirc quand les personnes rentre dans le formulaire et tape leur pseudo mais le pseudo de s'affiche pas

il y a le pseudo par default.

je vous laisse mes de code:

code formulaire:

<html>
<head>
<title>Chat chat</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="63"><img src="/chat/header.gif" width="601" height="63"></td>
</tr>
<tr>
<td align="center" valign="middle" style="heigth: 342;background-image: url('/chat/bg.gif');background-repeat: repeat-x;vertical-align: middle;text-align: center; font-size: 12px;font-family: Arial;">
<form action="irc.php" method="post">
<input type="hidden" name="login" value="1">
<div align="center">
<table>

<tr><TD valign="middle" style="vertical-align: middle;font-size: 12px;font-family: Arial;color: #778899;">choississez votre pseudo : </TD><td valign="middle"><input type="text" name="nick" style="border: 1px #7F9DB9 solid;"></td><td valign="middle"><input type="image" src="/chat/submit.gif"></td></tr></table>
</div>
</td>
</tr>
</table>
</body>
</html>

code applet irc

<html>
<head>
<title>Soundofdarkness.fr</title>
</head>
<body>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=800 height=600>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<PARAM NAME="nick" VALUE="Guest???">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java User">
<param name="host" value="213.251.162.112">
<param name="gui" value="pixx">

<param name="command1" value="join #soundofdarkness">

<param name="quitmessage" value="@++!">
<param name="asl" value="true">
<param name="useinfo" value="true">


<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value=" img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=" img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">
<param name="style:smiley6" value=" img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=" img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value=" img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value=" img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value=":| img/OH-3.gif">
<param name="style:smiley15" value=":'( img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">
<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="true">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true">

<param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:nickfield" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true">

</applet>

<hr></body>
</html>

merci d'avance pour votre aide

@+++

Posté

<PARAM NAME="nick" VALUE="Guest???">
<param name="alternatenick" value="Anon

Tu ne passes à aucun moment le nick dans la page de l'applet, donc forcément ;)

Posté

Salut tu a repondu a mon poste je t"en remerci

Pourrai tu me donner le code que je dois mettre dans mon applet irc merci

ps: et si par hazard tu a aussi un code pour que l'applet s'ouvre en popup je suis preneur

merci

Posté

Tien sa me dit quelque soundofdarkness.fr lol

page.html :

<html>
<head>
<title>Chat chat</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="63"><img src="/chat/header.gif" width="601" height="63"></td>
</tr>
<tr>
<td align="center" valign="middle" style="heigth: 342;background-image: url('/chat/bg.gif');background-repeat: repeat-x;vertical-align: middle;text-align: center; font-size: 12px;font-family: Arial;">
<form action="java script:window.open('irc.php')" method="post">
<input type="hidden" name="login" value="1">
<div align="center">
<table>

<tr><TD valign="middle" style="vertical-align: middle;font-size: 12px;font-family: Arial;color: #778899;">choississez votre pseudo : </TD>
<td valign="middle"><input type="text" name="nick" style="border: 1px #7F9DB9 solid;"></td>
<td valign="middle"><input type="image" src="/chat/submit.gif"></td></tr></table>
</div>
</td>
</tr>
</table>
</body>
</html>

et la page irc.php

<html>
<head>
<title>Soundofdarkness.fr</title>
</head>
<body>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=800 height=600>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<PARAM NAME="nick" VALUE="<?php echo $_POST['nick']; ?>">
<param name="alternatenick" value="User">
<param name="name" value="Java User">
<param name="host" value="213.251.162.112">
<param name="gui" value="pixx">

<param name="command1" value="join #soundofdarkness">
<param name="quitmessage" value="@++!">
<param name="asl" value="true">
<param name="useinfo" value="true">
<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value=":) img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=":d img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">
<param name="style:smiley6" value=":o img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=":p img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value=";) img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value=":( img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value=":| img/OH-3.gif">
<param name="style:smiley15" value=":'( img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">
<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="true">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true">
<param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:nickfield" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true">

</applet>
<hr></body>
</html>

@++

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...