Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Chat mod issue - users not listed Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Chat mod issue - users not listed  This thread currently has 325 views. Print
1 Pages 1 Recommend Thread
Gaahl
July 10, 2009, 6:43am Report to Moderator Report to Moderator

Lurking...
E-Blah Member
Posts: 20
Posts Per Day: 0.02
Time Online: 1 days 1 hours 29 minutes
I'm using 10.3.6 and I installed the perl chat mod that Martin made some time ago. (http://www.eblah.com/forum/m-1170621715).

I edited Routines.pl like this:
Code
if($username eq 'Guest') {
		$userwelcome = $displayuser = qq~$rtxt[1], <strong>$rtxt[2]</strong>.~;
		$displayuser .= $userpm = qq~$rtxt[3] <a href="$surl\lv-login/" rel="nofollow">$rtxt[4]</a> $rtxt[44] <a href="$surl\lv-register/" rel="nofollow">$rtxt[5]</a>.~; ShowGuest();
	} elsif($lockuserout) {
		$userwelcome = $displayuser = qq~$rtxt[1] $rtxt[9] <strong>$username</strong>.~;
		$displayuser .= $userpm = $rtxt[7];
		$memberid{$username}{'md5upgrade'} = 1;
	} else {
		if(!$pmdisable) {
			if($pmmaxquota && $pmmaxquota-((-s"$members/$username.pm")/1024) < 0) { $userpm = qq~<strong><img src="$images/warning_sm.png" class="centerimg" alt="" /> $rtxt[67] <img src="$images/warning_sm.png" class="centerimg" alt="" /></strong>~; }
				else {
					$memberid{$username}{'pmnew'} = $memberid{$username}{'pmnew'} || 0;
					$memberid{$username}{'pmcnt'} = $memberid{$username}{'pmcnt'} || 0;
					$newpms = qq~ (<strong>$memberid{$username}{'pmnew'} $rtxt[11]</strong>)~ if($memberid{$username}{'pmnew'} > 0);
					$displayuser .= $userpm = qq~ $rtxt[10] <strong>$memberid{$username}{'pmcnt'}</strong>$newpms <a href="$surl\lv-memberpanel/a-pm/" title="$rtxt[12]">$rtxt[13]</a>.~;
				}
		} else { $displayuser .= $userpm = " $rtxt[54]"; }

to
Code
if($username eq 'Guest') {
		$userwelcome = $displayuser = qq~$rtxt[1], <strong>$rtxt[2]</strong>.~;
		$displayuser .= $userpm = qq~$rtxt[3] <a href="$surl\lv-login/" rel="nofollow">$rtxt[4]</a> $rtxt[44] <a href="$surl\lv-register/" rel="nofollow">$rtxt[5]</a>.~; ShowGuest();
	} elsif($lockuserout) {
		$userwelcome = $displayuser = qq~$rtxt[1] $rtxt[9] <strong>$username</strong>.~;
		$displayuser .= $userpm = $rtxt[7];
		$memberid{$username}{'md5upgrade'} = 1;
	} else {
		if(!$pmdisable) {
			if($pmmaxquota && $pmmaxquota-((-s"$members/$username.pm")/1024) < 0) { $userpm = qq~<strong><img src="$images/warning_sm.png" class="centerimg" alt="" /> $rtxt[67] <img src="$images/warning_sm.png" class="centerimg" alt="" /></strong></a><br /><a href="http://www.mysite.com/cgi-bin/cgichat/chat.pl?logIn=1" target="_blank">Chat room</a>~; }
				else {
					$memberid{$username}{'pmnew'} = $memberid{$username}{'pmnew'} || 0;
					$memberid{$username}{'pmcnt'} = $memberid{$username}{'pmcnt'} || 0;
					$newpms = qq~ (<strong>$memberid{$username}{'pmnew'} $rtxt[11]</strong>)~ if($memberid{$username}{'pmnew'} > 0);
					$displayuser .= $userpm = qq~ $rtxt[10] <strong>$memberid{$username}{'pmcnt'}</strong>$newpms <a href="$surl\lv-memberpanel/a-pm/" title="$rtxt[12]">$rtxt[13]</a><br /><a href="http://www.mysite.com/cgi-bin/cgichat/chat.pl?logIn=1" target="_blank">Chat room</a>.~;
				}
		} else { $displayuser .= $userpm = " $rtxt[54]"; }

The result is:
&

In settings file I have
$chatRefreshTime = 10;
$chatOnlineRefreshTime = 10;

The problem is that only the first user that enters the chat gets listed in the "Who's chatting" frame. Any ideas why?
Logged Offline
Private Message Private message
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Chat mod issue - users not listed

Thread Tags
eq,  i,  chat