Total Articles 22
- Entry URL : http://www.gagalive.com/live/110330
- Trackback URL : http://www.gagalive.com/live/110330/trackback
I'm not sure if Im not understanding the concept behind how this chat works or if I'm just not doing this correctly. What I want is a chat in which I can add to my forum that can 'grab' the Forum Member ID and set it as the Chat Nick ID. Does this do this or will a member of my forum just have to enter their member name? If so, after they enter their Member ID/Nick will this ID always appear when they go to the chat page due to IP or something of that nature? Also, I want to stop anonymous users from being able to chat unless they are amember of the forum already. I have read myself around in circles on this site, but I'm not sure how to make this happen or nearly happen the way I want. I want a chat where members of my forum can chat with their own Member IDs when logged into the forum/chat, and 'hold' these IDS as only theirs, and anonymous users can not post until they sign up with the forum. Is this possible? Am I making any sense lol?
Here is a link to what I have done so far: http://qpsychics.com/forum/chat.php
Here is a link to what I have done so far: http://qpsychics.com/forum/chat.php
-
2008.02.01 23:51> I want is a chat in which I can add to my forum that can 'grab' the Forum Member ID and set it as the Chat Nick ID
Yes, that is actually the main point of our chat service. see the mod for phpbb3 at http://www.gagalive.com/live/livechatexamplephpbb3
> Also, I want to stop anonymous users from being able to chat unless they are amember of the forum already
Create a chat room at http://www.gagalive.com/live/livechatadmin and use the chat room that starts with ###
(the chat room that starts with ### allows anonymous chat, allows anonymous nick change, logged in users have + prepended to nick)
To summorize, gagalive chat supports exactly what you want to do.
have a nice day.
-
2008.02.02 08:07Yeah, see, that's the problem here, I installed that MOD, phpBB3, and that's where the confusion is coming in, it's not forcing the Member IDs. It only sets me as Guest_4869 and not my user name no matter what account I login to. Also, I'm not understanding why you're suggesting this option
>(the chat room that starts with ### allows anonymouschat, allows anonymous nick change, logged in users have + prepended tonick)
because I don't want to allow anonymous (non-members of my forum) to chat until they sign upwith the forum.
Please help.
-
2008.02.03 03:25> because I don't want to allow anonymous (non-members of my forum) to chat until they sign upwith the forum.
oops... my mistake.
what i meant to say was
the chat room that starts with ## disallows anonymous chat, disallows anonymous nick change
use the chat room name that starts with ##
> , it's not forcing the Member IDs. It only sets me as Guest_4869 and not my user name no matter what account I login to
which would probably mean you are applying the mod improperly.
have a nice day.
-
2008.02.04 07:41This is how I have functions.php setup:
----------------------------------------------------------------------------------------------------
//!!!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
// note: for secure chat rooms that start with ### authorization keys are optional
// secure chat rooms require creation at http://www.gagalive.com
$chatroom = "##QP Live Chat";
//roomkey: Secure chat room authorization key
// use only when using secure chat rooms that start with #, otherwise leave blank
$roomkey = "581f0f2012099fdb3481d71f6ee2f818";
//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 = 500;
//End of options
$gagaadmin = preg_replace('/\s*,\s*/', ',', $gagaadmin);
$gagaadmins = split(',', $gagaadmin);
$userz = $user->data['username'];
$usernickz = $user->data['username'];
function userKey($user, $roomKey) {
return md5(md5($user . $roomKey) . $roomKey);
}
$userkey = userKey($usernickz, $roomkey);
foreach($gagaadmins as $value) {
if($userz == $value) {
$userkey = md5(userKey($usernickz, $roomkey));
}
}
$usernickz = urlencode($usernickz);
if($user->data['user_id'] != ANONYMOUS) {
$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>';
}
$template->assign_vars(array(
'SITE_DESCRIPTION' => $config['site_desc'] . $chathtml
));
//!!!END OF GAGALIVE CHAT MOD
---------------------------------------------------------------------------------------------------
Chat.html
-----------------------------------------------------------------------------------------------
<!-- INCLUDE overall_header.html -->
<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="400" title="QP Live Chat">
<param name="movie" value="http://www.gagalive.com/livechat1.swf?chatroom=##QP Live Chat " />
<param name="quality" value="high" />
<embed src="http://www.gagalive.com/livechat1.swf?chatroom=##QP Live Chat " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="400"></embed>
</object>
<!-- INCLUDE overall_footer.html -->
----------------------------------------------------------------------------------------------------------
and chat.php
----------------------------------------------------------------------------------------
<?php
/**
*
* @package phpBB3
* @version $Id: chat.php,v 1.37 2007/10/05 14:30:06 acydburn Exp $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$mode = request_var('mode', '');
// Load the appropriate faq file
switch ($mode)
{
case 'bbcode':
$l_title = $user->lang['BBCODE_GUIDE'];
$user->add_lang('bbcode', false, true);
break;
default:
$user->add_lang('faq', false, true);
break;
}
// Pull the array data from the lang pack
page_header($l_title);
$template->set_filenames(array(
'body' => 'chat.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
----------------------------------------------------------------------------------------------
Do you see any immediate errors that could be causing this problem?
-
2008.02.05 14:33Anyone? Suggestions?
-
2008.02.22 02:21Yep. ;-)
The php code at the top (in the functions.php file) specially configures the chat call to pass on the username information into the chat window when it opens. It stores this information in the variable 'SITE_DESCRIPTION'.
But you're never actually calling that variable, so that information is sitting there without being used. Here's what I'd suggest to you.
In the first file, change the line:
'SITE_DESCRIPTION' => $config['site_desc'] . $chathtml
to:
'CHATCODE' => $chathtml
Then in your chat.html file delete everything between the two includes and simply replace it with:
{CHATCODE}
That should fix it.
| No. | Subject | Author | Hits | Votes | Date |
|---|---|---|---|---|---|
| 22 |
Removing lines shown when connected
|
celacg42 | 137 | Aug 07, 2008 | |
| 21 |
Chat with LaTeX
|
trashbox | 907 | 1 | Jun 23, 2008 |
| 20 |
FF3 Problem
|
WoodyRoundUp | 892 | Jun 18, 2008 | |
| 19 |
Chat history
|
Latrodectus | 461 | Jun 03, 2008 | |
| 18 |
Drupal6
|
ibebored | 480 | May 25, 2008 | |
| 17 |
private chat & firefox 3
|
kiakanpa | 1047 | May 20, 2008 | |
| 16 |
smilies
|
kiakanpa | 475 | May 20, 2008 | |
| 15 | Updates have been rolled out~ | digirave | 699 | May 16, 2008 | |
| 14 |
not workin g in internet explorer
|
caslor | 1189 | May 01, 2008 | |
| 13 |
Private "channel"
|
crashie | 1160 | Apr 29, 2008 | |
| 12 |
help
|
fs | 867 | Apr 01, 2008 | |
| 11 |
Username font color
|
colin | 1249 | Mar 07, 2008 | |
| 10 |
Problem with fontcolor and bgcolor
|
Brle | 932 | Feb 16, 2008 | |
| 9 |
GagaLive does not work over a http proxy?
|
Alves | 901 | Feb 06, 2008 | |
| 8 |
Chat room update: added private 1:1 chat, secure chat rooms start with @ instead of #
|
digirave | 3807 | Feb 03, 2008 | |
|
PhpBB3
|
qpsychics | 1480 | Feb 01, 2008 | ||
| 6 |
Hi! I do have a problem
|
rukawa1990 | 800 | Jan 13, 2008 | |
| 5 |
Help with Phpbb3 mod
|
deskalada | 1130 | Jan 13, 2008 | |
| 4 |
MOD for phpBB 3 is now available.
|
digirave | 2773 | Sep 01, 2007 | |
| 3 |
MOD for vBulletin is now available
|
digirave | 1592 | Sep 01, 2007 |

