- LiveChat
- Create/manage secure chat
- phpBB2 MOD
- phpBB3 MOD
- Drupal source code
- vBulletin source code
- Generic PHP source code
vBulletin modification (tested with version 3.6)
To use a secure chat room allowing nick linkage to phpBB and specify admins who have IP ban/kick access etc
Create a secure chat room and recieve an authorization key using Create/manage secure chat room
open the file global.php which is located in the main vBulletin directory
find the line
eval('$header = "' . fetch_template('header') . '";');
and add below it the following code
//!!!S START OF GAGALIVE CHAT MOD
//Modify options below
//chatroom: Chatroom name
// enter alphanumeric name for chat room and chat room creation will be instaneous
// secure chat rooms(room anems start with @) allow nick linkage with membership system and for security require authorization key
// secure chat rooms require creation at http://www.gagalive.com
$chatroom = "Chatroom Name";
//roomkey: Secure chat room authorization key
// use only when using secure chat rooms that start with @, otherwise leave blank
$roomkey = "";
//gagaadmin: Chat room administrator IDs here. For multiple adminstrators seperate with ,(commas)
// only available when using secure chat rooms that start with @, otherwise leave blank
$gagaadmin = "";
//heightz: Height of chat room in pixels
$heightz = 100;
//End of options
$gagaadmin = preg_replace('/\s*,\s*/', ',', $gagaadmin);
$gagaadmins = split(',', $gagaadmin);
$userz = $vbulletin->userinfo['username'];
$usernickz = $vbulletin->userinfo['username'];
$userkey = userKey($usernickz, $roomkey);
foreach($gagaadmins as $value) {
if($userz == $value) {
$userkey = md5(userKey($usernickz, $roomkey));
}
}
$usernickz = urlencode($usernickz);
if($vbulletin->userinfo['username'] != "Unregistered") {
$chathtml = '<center><script src="http://en.gagalive.com/Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script type="text/javascript"> AC_FL_RunContent(\'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\',\'width\',\'100%\',\'height\',\''.$heightz.'\',\'title\',\'GagaLive chat room\',\'src\',\'http://en.gagalive.com/livechat1?&chatroom='.$chatroom.'&user='.$usernickz.'&encrypt='.$userkey.'\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'http://en.gagalive.com/livechat1?&chatroom='.$chatroom.'&user='.$usernickz.'&encrypt='.$userkey.'\' );</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%>" height='.$heightz.'" title="GagaLive chat room"> <param name="movie" value="http://en.gagalive.com/livechat1.swf?&chatroom='.$chatroom.'&user='.$usernickz.'&encrypt='.$userkey.'"><param name="quality" value="high"><embed src="http://en.gagalive.com/livechat1.swf?&chatroom='.$chatroom.'&user='.$usernickz.'&encrypt='.$userkey.'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="'.$heightz.'"></embed></object></noscript>';
}
else {
$chathtml = '<center><script src="http://en.gagalive.com/Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script type="text/javascript"> AC_FL_RunContent(\'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\',\'width\',\'100%\',\'height\',\''.$heightz.'\',\'title\',\'GagaLive chat room\',\'src\',\'http://en.gagalive.com/livechat1?&chatroom='.$chatroom.'\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\'http://en.gagalive.com/livechat1?&chatroom='.$chatroom.'\' );</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%>" height='.$heightz.'" title="GagaLive chat room"> <param name="movie" value="http://en.gagalive.com/livechat1.swf?&chatroom='.$chatroom.'"><param name="quality" value="high"><embed src="http://en.gagalive.com/livechat1.swf?&chatroom='.$chatroom.'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="'.$heightz.'"></embed></object></noscript>';
}
$header = $header . $chathtml;
function userKey($user, $roomKey) {
return md5(md5($user . $roomKey) . $roomKey);
}
//!!!END OF GAGALIVE CHAT MOD
