News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

October 21, 2019, 12:09:06 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3756
  • Latest: Ocean
Stats
  • Total Posts: 189111
  • Total Topics: 20766
  • Online Today: 145
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 60
Total: 61

Author Topic: Chat statistics disappeared  (Read 6033 times)

0 Members and 1 Guest are viewing this topic.

kira

  • Guest
Chat statistics disappeared
« on: May 24, 2005, 02:37:46 AM »
Hi there. I installed Helios, which I like very much. The only problem is now the board doesn't display the chat statistics (users currently in chat) on the main board. When I tried to copy and paste Chat statistics code from an old Theme it just made the board go black.

Can you help?



Kira
http://www.kirafics.net/forum/index.php
« Last Edit: May 24, 2005, 02:52:39 AM by kira »

Bjørn

  • Guest
Re: Chat statistics disappeared
« Reply #1 on: May 24, 2005, 03:04:34 AM »
Sure. Do you have the code in question, and know where on the page you want it?

kira

  • Guest
Re: Chat statistics disappeared
« Reply #2 on: May 24, 2005, 03:35:40 AM »
*Falls before you, worshipping your holy codefulness* Yay! You answered.

Here is the code from the old Theme Board:

// Chat Stats
   echo '
   <tr>
      <td class="catbg" colspan="2">', $txt['chatStats'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
      <a href="', $scripturl, '?action=chat">
            <img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" />[/url]
      </td>
      <td class="windowbg2" width="100%">
         <BR>There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
         <script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
         <span class="smalltext">';


And as far as where to put it, it doesn't matter, at the bottom of the board where the users online are listed would be good. 

Bjørn

  • Guest
Re: Chat statistics disappeared
« Reply #3 on: May 24, 2005, 05:38:53 AM »
just exchange this file in your Helios_mulit folder:

[attachment deleted by admin]

kira

  • Guest
Re: Chat statistics disappeared
« Reply #4 on: May 24, 2005, 09:04:03 AM »
Wow. It works. But I don't know why it works--why does the file have those _ things around it? *shrugs*

Anyway, cool! I worship you forever!! Thank you so much!

Bjørn

  • Guest
Re: Chat statistics disappeared
« Reply #5 on: May 24, 2005, 09:26:41 AM »
Wow. It works. But I don't know why it works--why does the file have those _ things around it? *shrugs*

Anyway, cool! I worship you forever!! Thank you so much!

you're welcome. :)

What do you mean with "_ things" ?...

kira

  • Guest
Re: Chat statistics disappeared
« Reply #6 on: May 24, 2005, 09:58:15 AM »
Sorry--I meant the filename itself _BoardIndex.template.php_

kira

  • Guest
Re: Chat statistics disappeared
« Reply #7 on: May 24, 2005, 10:33:22 AM »
I am so retarded. Never mind. I just say random retarded things at regular intervals so just ignore me. Anyway thanks again.

Bjørn

  • Guest
Re: Chat statistics disappeared
« Reply #8 on: May 24, 2005, 12:41:10 PM »
:) ok.

kira

  • Guest
Re: Chat statistics disappeared
« Reply #9 on: May 24, 2005, 06:27:34 PM »
Hmmm...the main index page is suddenly loading very slowly. I don't suppose you have any idea why?

NightOwl

  • Guest
Re: Chat statistics disappeared
« Reply #10 on: May 25, 2005, 01:29:43 PM »
Hmmm...the main index page is suddenly loading very slowly. I don't suppose you have any idea why?

It was those 2 javascripts use by the chat mod cause those timeout lags. I think you need to comment out that chat status in board.index.php before the chat provider fix that.

This is the problem of Chat mod.

Kindred

  • Guest
Re: Chat statistics disappeared
« Reply #11 on: May 25, 2005, 09:06:24 PM »
to be more specific... (and this has been commented on at the SMF site, too)

everywherechat.com moved servers a day or two ago now. The new server has a different IP address and the new address has not yet propogated through the DNS servers. So, when your site uses those javascripts to request information from the everywhere.com server, it finda a null IP address. It continues to try and get information from NULL until it eventuially times out (30-60 seconds, usually)
This causes a lag on the display of any page that calls those javascripts (for most people, just boardindex.template.php.

According to the owner of everywherechat.com, the server is moved and the DNS is propogating. It should be resolved in 48-72 hours from noon on 5/25.
In the mean time, either comment out the chat status lines or put up with the lag.

kira

  • Guest
Re: Chat statistics disappeared
« Reply #12 on: June 01, 2005, 08:24:24 PM »
Yeah, I finally figured out the problem was with the chat server. Now it's working properly, so I am very happy!