News: September 21st, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.4! GET IT NOW!!!

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

November 14, 2019, 07:39:31 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189259
  • Total Topics: 20772
  • Online Today: 435
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 47
Total: 47

Author Topic: Chat statistics disappeared  (Read 6056 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?