Advertise Here

Author Topic: I got a problem with a pop-up code for IRC chat  (Read 2274 times)

0 Members and 1 Guest are viewing this topic.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
I got a problem with a pop-up code for IRC chat
« on: March 17, 2009, 06:56:38 pm »
Forum Url: http://pic.smfforfree4.com
I dont know who else to go to support for for this.

Before the EzPortal came out this pop-up worked fine, so Im not sure

I have 2 popups, one for Java, one for Mibbit
Here is the HTMl code for java
Code: [Select]
<script type="text/javascript">
function popupChat() {

        win = window.open("", "javachat", "height=550,width=750");

}

function send()

{

   if (document.UserInfo.NICKNAME.value == null || document.UserInfo.NICKNAME.value == "")

   {

        window.alert("You must enter your nick name.")
        return false

   }

var USERNICK = document.UserInfo.NICKNAME.value

win=window.open("","IRC","resizable=yes,height=550,width=750")

win.document.write('<html><head><title>PICChat - IRC</title></head>')
win.document.write('<body bgcolor="#FFE7B3" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">')
win.document.write(' <applet codebase=http://zeovault.net/archive/pjirc code="IRCApplet.class" archive="irc.jar,pixx.jar" width=750 height=550>')
win.document.write('<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">')
win.document.write('<param name="nick" value="'+USERNICK+'">')
win.document.write('<param name="alternatenick" value="Guest??">')
win.document.write('<param name="name" value="PICChat User">')
win.document.write('<param name="host" value="irc.zeovault.net">')
win.document.write('<param name="port" value="6667">')
win.document.write('<param name="gui" value="pixx">')
win.document.write('<param name="pixx:timestamp" value="true">')
win.document.write('<param name="pixx:highlight" value="true">')
win.document.write('<param name="pixx:highlightnick" value="true">')
win.document.write('<param name="pixx:nickfield" value="true">')
win.document.write('<param name="pixx:styleselector" value="false">')
win.document.write('<param name="pixx:showchanlist" value="false">')
win.document.write('<param name="pixx:showabout" value="false">')
win.document.write('<param name="pixx:showstatus" value="true">')
win.document.write('<param name="authorizedleavelist" value="all-#PICChat">')
win.document.write('<param name="command1" value="/join #PICChat">')
win.document.write('<param name="pixx:helppage" value="http://pic.smfforfree4.com/index.php/topic,558.msg4047.html#new">')
win.document.write('</applet>')
win.document.write('</body>')
win.document.write('</html>')
win.document.close()

return true

}


</script>
<div>
Enter your IRC nickname:
<form name="UserInfo" onSubmit="return send()">
<input size="12" name="NICKNAME" id="NICKNAME" value="" />
<input onclick="send()" type="button" value="Enter PIC Chat!" class="smallfont"/>
</form>
</div>
<a href="http://pic.smfforfree4.com/index.php/board,61.0.html"><u>All of the chats info is located here</u></a>

Here is the HTML code for Mibbit:
Code: [Select]
<script type="text/javascript">
function popupChat() {

        win = window.open("", "javachat", "height=550,width=750");

}

function send2()

{

var defchannel = "%23PICChat"

win=window.open("","IRC","resizable=yes,height=550,width=750")

win.document.write('<html><head><title>PICChat - IRC</title></head>')
win.document.write('<body bgcolor="#FFE7B3" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">')
win.document.write('<iframe width="100%" height="100%" id="mibbit_expand" src="http://widget.mibbit.com/?settings=2515aa14458951b808b5c797049fd9a4&server=irc.zeovault.net&channel='+defchannel+'&noServerTab=false&autoConnect=true"></iframe>')
win.document.write('</body>')
win.document.write('</html>')
win.document.close()

return true

}

</script>
<div>

<form name="UserInfo2" onSubmit="return send2()">
<input onclick="send2()" type="button" value="Enter PIC chat using mibbit" class="smallfont"/>
</form>
</div>

And by pop-up I mean a place where you can enter a nickname, and then click the button, and then a pop-up comes up where you can chat
Its only on the homepage/portal of my forum.

Anyone know of a way to fix this up?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
836 Views
Last post June 22, 2007, 08:36:43 am
by Crasy
2 Replies
802 Views
Last post August 04, 2007, 04:51:07 pm
by Tash
12 Replies
31024 Views
Last post October 04, 2007, 06:15:26 pm
by php2
4 Replies
1020 Views
Last post March 31, 2009, 04:50:43 am
by geraintw1uk
1 Replies
589 Views
Last post June 22, 2011, 04:54:20 pm
by SMF For Free