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
Sure. Do you have the code in question, and know where on the page you want it?
*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.
just exchange this file in your Helios_mulit folder:
[attachment deleted by admin]
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!
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" ?...
Sorry--I meant the filename itself _BoardIndex.template.php_
I am so retarded. Never mind. I just say random retarded things at regular intervals so just ignore me. Anyway thanks again.
:) ok.
Hmmm...the main index page is suddenly loading very slowly. I don't suppose you have any idea why?
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.
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.
Yeah, I finally figured out the problem was with the chat server. Now it's working properly, so I am very happy!