need help making iframe portal

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

So my task right now is to make a portal page for a web game and add a global chat room off the side. Now i have tried to make a simple half arsed version in html using iframes but it is not working well lol. but was able to make a sample to show friends and give me a small idea what i am looking at.

So the game is Kingdoms of Camelot and some of their new domains have gone to the main site and not off facebook which has removed the fb group chat so i figured i could use a java script to load up IRC and frame in the web site in a iframe of some description and the trick is i need the game to refresh not the entire page as it would reload the IRC script as well. I managed to find some reload js but after i changed the time it does not seam to work anymore so would need to over look that.

and now i have found a new problem, when i go to my page it redirects me to the main site after a bit lol http://immortality.kocda.com/

also using darkerIRC for the IRC part.

Code: [ Select ]
<html>
    <head>
        <title>Immortality Chat</title>
    </head>
    <style>
        a {
            color: #aa0000;
            font-weight: bold;
            text-decoration: none;
            font-size: 10pt;
        }
        .heading {
            font-weight: bolder;
            font-size: 10pt;
        }
        .titleheading {
            font-size: 14pt; 
            font-weight: bolder;
            color: #aa0000;
        }
        .text {
            font-size: 10pt;
        }
        .credits {
            font-size: 8pt;
        }
        p {     text-align: left;
        }
        body {     background: black;
            color: gray;
            font-size: 10pt;
            font-family: verdana, helvetica, arial;
        }
    </style>
<body>
    <p class=titleheading>Immortality IRC Chat</p>
    <hr noshade>
<COMMENT></COMMENT>

<div align="center"><iframe width="1000" height="1000" src="https://www.kabam.com/kingdoms-of-camelot/play?s=345"></iframe>
 <SCRIPT LANGUAGE="JavaScript"><!--
  if (_ie == true && !_ie7) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "800" HEIGHT = "500" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
  else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "DarkerIRC" ARCHIVE = "darkerirc.jar" WIDTH = "800" HEIGHT = "500" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html" configfile="darkerirc.config"><NOEMBED><XMP>');
//--></SCRIPT>
 <APPLET CODE = "DarkerIRC" ARCHIVE = "darkerirc.jar" WIDTH = "400" HEIGHT = "1000">
  </XMP>
  <PARAM NAME = CODE VALUE = "DarkerIRC" >
  <PARAM NAME = ARCHIVE VALUE = "darkerirc.jar" >
  <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.3">
    
  <PARAM NAME = "scriptable" VALUE="false">
  <PARAM NAME = "configfile" VALUE ="darkerirc.config">
 </APPLET>
   
 </NOEMBED></EMBED></OBJECT>
   
   
 <!-- END generated html -->
</div>
  <hr noshade>
    <p align="center">This is a Simple IRC chat page, this will connect to the server via the web site. There are commands below that you will find useful. Any problems contact Zealous</p>
    <p>Commands</p>
    <p>/nick = Change name (&quot;/nick Zealous&quot;)</p>
    <p>/op = Give @/Operator (&quot;/op Zealous&quot;)</p>
    <p>/action = Action text (&quot;/action slapped Deathawaitsu with a scout&quot;)</p>
    <p>/j = Open Room (&quot;/j #kocda&quot;) # in front of room name all ways!</p>
    <p>mIRC connection:</p>
    <p>1) Download mIRC</p>
    <p>2) add server irc.wyldryde.org with port 6667</p>
    <p>3) Connect and then /j #kocda</p>
    <p>4) /nick to change name</p>
    <p>&nbsp;</p>
</body>

</html>
  1. <html>
  2.     <head>
  3.         <title>Immortality Chat</title>
  4.     </head>
  5.     <style>
  6.         a {
  7.             color: #aa0000;
  8.             font-weight: bold;
  9.             text-decoration: none;
  10.             font-size: 10pt;
  11.         }
  12.         .heading {
  13.             font-weight: bolder;
  14.             font-size: 10pt;
  15.         }
  16.         .titleheading {
  17.             font-size: 14pt; 
  18.             font-weight: bolder;
  19.             color: #aa0000;
  20.         }
  21.         .text {
  22.             font-size: 10pt;
  23.         }
  24.         .credits {
  25.             font-size: 8pt;
  26.         }
  27.         p {     text-align: left;
  28.         }
  29.         body {     background: black;
  30.             color: gray;
  31.             font-size: 10pt;
  32.             font-family: verdana, helvetica, arial;
  33.         }
  34.     </style>
  35. <body>
  36.     <p class=titleheading>Immortality IRC Chat</p>
  37.     <hr noshade>
  38. <COMMENT></COMMENT>
  39. <div align="center"><iframe width="1000" height="1000" src="https://www.kabam.com/kingdoms-of-camelot/play?s=345"></iframe>
  40.  <SCRIPT LANGUAGE="JavaScript"><!--
  41.   if (_ie == true && !_ie7) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "800" HEIGHT = "500" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
  42.   else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "DarkerIRC" ARCHIVE = "darkerirc.jar" WIDTH = "800" HEIGHT = "500" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html" configfile="darkerirc.config"><NOEMBED><XMP>');
  43. //--></SCRIPT>
  44.  <APPLET CODE = "DarkerIRC" ARCHIVE = "darkerirc.jar" WIDTH = "400" HEIGHT = "1000">
  45.   </XMP>
  46.   <PARAM NAME = CODE VALUE = "DarkerIRC" >
  47.   <PARAM NAME = ARCHIVE VALUE = "darkerirc.jar" >
  48.   <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.3">
  49.     
  50.   <PARAM NAME = "scriptable" VALUE="false">
  51.   <PARAM NAME = "configfile" VALUE ="darkerirc.config">
  52.  </APPLET>
  53.    
  54.  </NOEMBED></EMBED></OBJECT>
  55.    
  56.    
  57.  <!-- END generated html -->
  58. </div>
  59.   <hr noshade>
  60.     <p align="center">This is a Simple IRC chat page, this will connect to the server via the web site. There are commands below that you will find useful. Any problems contact Zealous</p>
  61.     <p>Commands</p>
  62.     <p>/nick = Change name (&quot;/nick Zealous&quot;)</p>
  63.     <p>/op = Give @/Operator (&quot;/op Zealous&quot;)</p>
  64.     <p>/action = Action text (&quot;/action slapped Deathawaitsu with a scout&quot;)</p>
  65.     <p>/j = Open Room (&quot;/j #kocda&quot;) # in front of room name all ways!</p>
  66.     <p>mIRC connection:</p>
  67.     <p>1) Download mIRC</p>
  68.     <p>2) add server irc.wyldryde.org with port 6667</p>
  69.     <p>3) Connect and then /j #kocda</p>
  70.     <p>4) /nick to change name</p>
  71.     <p>&nbsp;</p>
  72. </body>
  73. </html>


I only started on this a hour ago but i am in need of idea's on how to go about this, but starting to think mite have to do this in php.

any help or idea's would be appreciated.

---------------

o.k scrap that think i got something working well a good start

http://portal.kocda.com/
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

The best thing I could tell you there would be to grab the page through your script and parse out the frame-busting javascript.

Another way to go about it might be to open a popup for your chat window, maybe have a landing page where you tell people to allow popups from your site or something?
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

no one likes pop ups which is why i had to make it as a side bar and big resolution only as i am only printing html files through the php so i have a basic setup.

i was thinking about making a drop down menu that has the chat in it. so thinking like facebook style but up top as it is popular with the other players but due to new servers don't run off facebook i am trying to replicate a communications system along side the game.

But script is still ALPHA version still needs a lot of work but i will look into js frames.

right now i am printing a html file that has a html iframe with the link with a few added variables on the end of it makes it a stand alone load without any background web site.

It seams to work but i am having issues here and there when refreshing 2 portals on the same profile (multifox) and changing domain is needed the script goes to the master site so a js frame mite help with staying on the page.

cheers for the idea :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 168 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.