1
Nemesco
JIRC block - autofill in the username of the logged in user
  • 2005/5/1 23:37

  • Nemesco

  • Just popping in

  • Posts: 4

  • Since: 2002/12/14


I would like to know how I can let XOOPS fill in the username in a text area

This is the code I have, where Your_Nickname is filled in there must be the username from the person who's logged in.
<html>
<
head>
<
title>JIRC Chat</title>
<
script language="JavaScript" src="popup.js">
</
script>
</
head>

<
body bgcolor=white>

<
p>
<
FORM NAME="UserInfo">

<
div align="left">

<
TABLE BORDER=0 CELLSPACING=0 width="186" align="left" >
<
TR >
<
TD align=left>
<
p><b>Chatroom</b></TD>
</
TR>

<
TR >
<
TD width="105" align="left">
<
input TYPE=TEXT NAME="NICKNAME" value="Your_Nickname" SIZE=13 style="float: left"></TD>
<
TD width="0" align="left">
&
nbsp;<TR >
<
TD width="105" align="left">
<
INPUT TYPE="BUTTON" VALUE="ENTER" onClick="send()" style="float: left"></TD>
<
TD width="0" align="left">
</
TABLE>

</
div>

</
FORM>             

</
body>


I hope someone can help me with this challenge, I'm new to XOOPS.


TIA,

Nemesco

2
Nemesco
Re: JIRC block - autofill in the username of the logged in user
  • 2005/5/2 20:40

  • Nemesco

  • Just popping in

  • Posts: 4

  • Since: 2002/12/14


Hi, I allready found out, I included the code in the theme.html and it is working.

This is the code:
<html>
<
head>
<
script language="JavaScript" src="popup.js">
</
script>
</
head>

<
body>

<
FORM NAME="UserInfo">

<
div align="center">

<
TABLE BORDER=0 CELLSPACING=0 align=center>
<
TR >
<
TD>
<
b>Chatroom</b></TD>
</
TR>

<
TR >
<
TD>
<
input TYPE=TEXT NAME="NICKNAME" value=<{$xoops_uname}> SIZE=15 style="float: center"></TD>
<
TD align="center">
<
TR >
<
TD>
<
p align="center">
<
INPUT TYPE="BUTTON" VALUE="ENTER" onClick="send()" style="float: center"></TD>
<
TD align="center">
</
TABLE>

</
div>
  
</
FORM>           

</
body>

Login

Who's Online

221 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits