I already posted this very same question in Natural disasters forum (developers of the WebChat module), but I also post it here, if someone had the same problem, and solved.
Is there a way that 2 different users from the same IP, enters the same chat room?
If yes, which file or configuration I need to edit in order to do that.
Thanks.
Be happy. :P
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- craigh responded to »Using PageUtil::addVar() to load script code« 03:29 PM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Webchat 0.6: Users from the same IP
-
- Rank: Software Foundation
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 3814
check here
--
regards from germany
..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::.. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 103
Here is the solution:
On the folder module NS-WebChat, find the index.php file, open with any PHP or text editor, and go directly to line 233, you will find this piece of code:
Code
$q = mysql_query("select u.name, u.uid, u.ip, r.name from ".$prefix."_chatuser as u left join ".$prefix."_chatroom as r on u.rid = r.rid where u.name='$username' or u.ip='$ip'");
Change to this:
Code
$q = mysql_query("select u.name, u.uid, u.ip, r.name from ".$prefix."_chatuser as u left join ".$prefix."_chatroom as r on u.rid = r.rid where u.name='$username' ");
And... voilá... your users will connect from the same IP
Hope this helps. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Mar 21, 2004
- Posts: 123
I seem to remember trying that fix in WebChat and it not working. Anyways, now that most people are using SPChat instead has anybody looked into fixing the problem for SPChat.
Here is what I've found:
include_once(_SPCHAT_INCLUDEPATH.'inc/chatwindow.inc.php');
if (spchat_auth_is_kicked($username) === true)
{
$errmsg = sprintf(_YOUKICKED, $username, $ip);
} else {
$spchat_user_table = $pntable['spchat_user'];
$spchat_user_column = &$pntable['spchat_user_column'];
$spchat_room_table = $pntable['spchat_room'];
$spchat_room_column = &$pntable['spchat_room_column'];
$SQL = "SELECT $spchat_user_column[name],
$spchat_user_column[uid],
$spchat_user_column[ip],
$spchat_room_column[name]
FROM $spchat_user_table
LEFT JOIN $spchat_room_table ON ($spchat_user_column[rid] = $spchat_room_column[rid])
WHERE $spchat_user_column[uid]=$uid";
$result = $dbconn->Execute($SQL);
if(!$result->EOF) {
$user_is_in_any_room = true;
list($u_name, $u_id, $u_ip, $r_name) = $result->fields;
} else {
$user_is_in_any_room = false;
}
$result->Close();
If you look at the line I have in bold, my hunch is that if we remove that it will work. I've found that often users from large ISP's seem to have the same IP address when they connect to chat. I haven't been able to test this yet, but I will follow up here when I get confirmation. If anybody else tries this and finds that it works please reply. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 275
phishhead5000
If you look at the line I have in bold, my hunch is that if we remove that it will work.
after all this time, that line is still in the code, and people are still having problems.
did this fix solve the issue for you?
- Moderated by:
- Support
