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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:56:01 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 304
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 307
  • Total: 307

Chat statistics disappeared

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

Previous topic - Next topic

0 Members and 3 Guests 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?