Monday, 2018-07-23, 10:32 AM
Exploit Hackers
Main Registration Login
Welcome, Guest · RSS
HomePage
Mediaplayer
Login Area
Tag Board
Our poll
Rate my site
Total of answers: 3
Statistics

Total online: 1
Guests: 1
Users: 0
 IRC

// Please DON'T use this code if you don't fully understand it!
session_start(); // and similar stuff
$nick = empty($_SESSION['user_name']) ? 'Wdg' : $_SESSION['user_name'];
$server = "irc.synirc.net"; // default: irc.mibbit.net
$room = "MibChat"; // w/o # or %23 !
//(^- above vars only for this example)
$uri = "https://widget.mibbit.com/" .
"?nick=$nick_%3F%3F" . // each %3F(=?) will be replaced by a random digit
"&customprompt=Welcome%20to%20$server/$room" .
"&customloading=maybe%20you%20need%20to%20close%20other%20Mibbit%20windows%20first..." .
"&settings=c76462e5055bace06e32d325963b39f2"; // etc.
if (!empty($room)) {$uri .= '&channel=%23' . $room;}
if (!empty($server )) {$uri .= '&server=' . $server;}
// IE needs a proper header:
?>
my chat on <br /> <?php echo empty($server) ? 'irc.mibbit.net' : $server; ?>




advanced embedded mibbit widget example




(no spaces, interpunctuation or leading ciphers in your /nick name)

type /help to learn about special commands




if you link/open this in a new window you avoid unintentional leaving the chat when hitting the back button/key:
myMibbit

== Here's a safe and easy way to integrate the Mibbit widget with your PHP enabled website ==
Just copy and paste the following code, into any one of your PHP scripts, where you would like the Mibbit widget to be shown - Provided by [http://www.urchat.net/ URChat] - [[User:OzJD|OzJD]] 21:55, 6 November 2009 (UTC)
//- Begin config of Mibbit widget - Edit below as required.
$mibbitframe['widgeturi']="http://widget.mibbit.com/"; #Only change this if Mibbit Widget URL changes (Unlikely) - Do not add a "?".
$mibbitframe['height']="600px"; #Set this to the desired height of Mibbit widget
$mibbitframe['width']="800px"; #Set this to the desired width of Mibbit widget
$mibbit['authmethod']="nickserv"; #Set this to the nickname authentication method (as per Mibbit widget specs)
$mibbit['autoConnect']="false"; #Set this to true if you would like Mibbit to automatically connect (Not recommended)
$mibbit['channel']="#Main"; #Set this to the room(s) you would like the user to join, if more than one, separate by comma ie. #Main,#Test
$mibbit['charset']="UTF-8"; #Set this to the default character set (Recommended: UTF-8)
$mibbit['customloading']="Connecting to a random URChat server"; #Set this to a custom message displayed to user whilst attempting to connect
$mibbit['customprompt']="Welcome to URChat"; #Set this to a custom message displayed on the initial Mibbit widget screen
$mibbit['debug']="false"; #Set to true to show debug window (not recommended for live websites)
$mibbit['nick']="Guest_?????"; #Set this to the default nickname, a "?" generates a random number
$mibbit['noServerMotd']="false"; #Set to true to hide the server MOTD file
$mibbit['noServerNotices']="false"; #Set to true to hide server notices
$mibbit['noServerTab']="false"; #Set to false to show the server tab in Mibbit widget
$mibbit['promptChannelKey']="false"; #Set to true to ask user for channel key
$mibbit['promptPass']="true"; #Set to true to ask user to enter nickname password
$mibbit['server']="irc.urchat.net"; #Set this to your server
$mibbit['settings']=""; #Set this to your Mibbit widget preferences settings key (if you have one)
//- End config of Mibbit widget - YOU SHOULD NOT THE SECTION BELOW BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!
foreach ($mibbit as $key => $value) {
$mibbitframe['widgetparams']=$mibbitframe['widgetparams'].$key."=".rawurlencode($value)."&";
}
echo "";
?>

== Resizing an iframe to fill the available window space ==

Add the onload and id attributes as shown below to your iframe tag.

Add the following javascript in the section of your webpage:

If you have questions, ask molkmin in the #help channel on the Mibbit.net IRC.
--[[User:Molkmin|Molkmin]] 17:41, 25 February 2009 (UTC)

[[Category:Code]][[Category:Widget]]
{{DEFAULTSORT:Advanced Iframe}}

Copyright Exploit Hackers © 2018 All Rights Reserved
Search
Calendar
«  July 2018  »
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
Entries archive
Hit Counter
Website counter
Make a free website with uCoz