- LiveChat
- Create/manage secure chat
- phpBB2 MOD
- phpBB3 MOD
- Drupal source code
- vBulletin source code
- Generic PHP source code
Mod for use in phpBB2
Download link: gagalive_chat_mod_1_0_1.mod
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
##############################################################
## MOD Title: GagaLive Chat MOD
## MOD Author: GagaLive < digirave@kmle.com > http://www.gagalive.com
## MOD Description: This phpBB mod adds a chat room to your forum (www.gagalive.com).
##
## MOD Version: 1.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: includes/page_header.php,
## templates/subSilver/overall_header.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Chat room creation is instaneous but if you wish to user secure chat rooms
## that has chat admins and create a secure chat room first at http://www.gagalive.com
## and get an authorization key
## Available commands for Chat admins:
## Send BANIP to a user as a message their IP will be banned for several hours.
## To clear all banned IPs send a message to yourself(or any user) as CLEARIP.
## To temporarily give chat administration access to another user send them a message as GIVEOP, and to take back administration access send TAKEOP.
## If you wish the recent chat log send a message to yourself(or any user) as CLEARLOG.
## Note that if the chat room is empty, the chat room is deleted and the IP ban list is also reset.
## Secure chat rooms(get from http://www.gagalive.com):
## chat rooms that start with @ allow anonymous chat, disallows anonymous nick change.
## chat rooms that start with @@ disallow anonymous chat, disallows anonymous nick change
## chat rooms that start with @@@ allow anonymous chat, allows anonymous nick change, logged in users have + prepended to nick
##
## IMPORTANT
##
## When adding the includes/page_header.php portions
## make sure to modify the area commented as OPTIONS TO EDIT
##
##############################################################
## MOD History:
##
## 2007-09-02 - GagaLive Chat MOD Version 1.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
# IMPORTANT: Some FIND commands only contain partial lines. Unless the script calls for an
# "IN-LINE ADD," always add new segments of code on separate lines. Also, before an In-Line
# Find, you'll often see a FIND. These FINDS are there to help you locate the lines where
# In-Line FIND will work.
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
</table></td>
</tr>
</table>
<br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
<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','{GAGAHEIGHT}','title','GagaLive chat room','src','http://en.gagalive.com/livechat1?&chatroom={GAGACHATROOM}&user={GAGANICK}&encrypt={GAGAUSERKEY}','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://en.gagalive.com/livechat1?&chatroom={GAGACHATROOM}&user={GAGANICK}&encrypt={GAGAUSERKEY}' ); //end AC code
</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="{GAGAHEIGHT}" title="GagaLive chat room">
<param name="movie" value="http://en.gagalive.com/livechat1.swf?&chatroom={GAGACHATROOM}&user={GAGANICK}&encrypt={GAGAUSERKEY}">
<param name="quality" value="high">
<embed src="http://en.gagalive.com/livechat1.swf?&chatroom={GAGACHATROOM}&user={GAGANICK}&encrypt={GAGAUSERKEY}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="{GAGAHEIGHT}"></embed>
</object></noscript>
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header')
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//!!!START OF GAGALIVE CHAT MOD
//OPTIONS TO EDIT
//chatroom: Chatroom name
// enter alphanumeric name for chat room and chat room creation will be instaneous
// secure chat rooms(room names that 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 = "@@@gaga";
//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 = "";
//gagaheight: Height of chat room in pixels
$gagaheight = 100;
function userKey($user, $roomKey) {
return md5(md5($user . $roomKey) . $roomKey);
}
$gagaadmin = preg_replace('/\s*,\s*/', ',', $gagaadmin);
$gagaadmins = split(',', $gagaadmin);
$userz = $userdata['username'];
//if you wish to use chat room nicks that are not the user name modify the line below
$usernickz = $userdata['username'];
if(strpos($chatroom, "@") == 0 && strlen($roomkey) > 1) {
$gagauserkey = userKey($usernickz, $roomkey);
foreach($gagaadmins as $value) {
if($userz == $value) {
$gagauserkey = md5(userKey($usernickz, $roomkey));
}
}
}
else {
$gagauserkey = '';
}
$usernickz = urlencode($usernickz);
if($usernickz == "Anonymous") {
$usernickz = "";
}
$template->assign_vars(array(
//modify this to the height of chatroom
'GAGAHEIGHT' => $gagaheight,
//modify this to the chatroom name
'GAGACHATROOM' => $chatroom,
'GAGANICK' => $usernickz,
'GAGAUSERKEY' => $gagauserkey
));
//!!!END OF GAGALIVE CHAT MOD
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
# EoM
