TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 07:30:12 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 90
  • Total: 90

Chat statistics disappeared

Started by kira, May 24, 2005, 09:37:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kira

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

Bjørn

Sure. Do you have the code in question, and know where on the page you want it?

kira

*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" /></a>
      </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

just exchange this file in your Helios_mulit folder:

[attachment deleted by admin]

kira

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

Quote from: kira on May 24, 2005, 04:04:03 PM
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

Sorry--I meant the filename itself _BoardIndex.template.php_

kira

I am so retarded. Never mind. I just say random retarded things at regular intervals so just ignore me. Anyway thanks again.

Bjørn


kira

Hmmm...the main index page is suddenly loading very slowly. I don't suppose you have any idea why?

NightOwl

Quote from: kira on May 25, 2005, 01:27:34 AM
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

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

Yeah, I finally figured out the problem was with the chat server. Now it's working properly, so I am very happy!