Difference between revisions of "Mibbit in a Popup"

From Mibbit Wiki
Jump to: navigation, search
m
(embed now supports any server)
Line 1: Line 1:
example to put a link to open the embedded Mibbit version in a popup window onto your web site (connects only to irc.mibbit.com or authorized servers):  
+
Example to put a link to open the embedded Mibbit version in a popup window onto your web site (auto connects by default to irc.mibbit.com or authorized servers only):  
  <a href='#mibbit_test'
+
  <a href='#freenode/test'
  onclick='window.open("<nowiki>http://embed.mibbit.com/?channel=%23test&chatOutputShowTimes=true</nowiki>","","width=999,height=555")'>
+
  onclick='window.open("<nowiki>http://embed.mibbit.com/?server=irc.freenode.net&channel=%23test&chatOutputShowTimes=true</nowiki>","","width=999,height=555")'>
  our chat on irc.mibbit.com (popup)</a>
+
  our chat on Freenode (popup)</a>
 +
The script part must be all on one line. Replace "test" with the name of your own channel.
  
example for a link to open a channel on freenodethe using the full blown Mibbit version in a popup window:  
+
Example for a link to open the full blown Mibbit version in a popup window (using a secure connection):  
  <a href='#freenode_example'
+
  <a href='#mibbit_full'
  onclick='window.open("<nowiki>https://www.mibbit.com/?server=irc.freenode.net&channel=%23test</nowiki>","","width=999,height=555")'>
+
  onclick='window.open("<nowiki>https://www.mibbit.com/</nowiki>","","width=999,height=555")'>
  our chat on irc.freenode.net (popup)</a>
+
  mibbit full version (https, popup)</a>
The script part must be all on one line. Replace "test" with the name of your own channel.
 
  
  

Revision as of 09:56, 27 March 2008

Example to put a link to open the embedded Mibbit version in a popup window onto your web site (auto connects by default to irc.mibbit.com or authorized servers only):

<a href='#freenode/test'
onclick='window.open("http://embed.mibbit.com/?server=irc.freenode.net&channel=%23test&chatOutputShowTimes=true","","width=999,height=555")'>
our chat on Freenode (popup)</a>

The script part must be all on one line. Replace "test" with the name of your own channel.

Example for a link to open the full blown Mibbit version in a popup window (using a secure connection):

<a href='#mibbit_full'
onclick='window.open("https://www.mibbit.com/","","width=999,height=555")'>
mibbit full version (https, popup)</a>


For your personal use you can also paste

javascript:void(window.open("http://www.mibbit.com","","resizable,left=0,top=0,width=999,height=635"))

into the URL location input line and/or put it into a bookmarklet to open the full featured version. --HerculeP March 2008