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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 353
  • Total: 353

FlashChat User

Started by Sakuragi, November 01, 2005, 07:24:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ash

pretty cool javascript generator, that will create the code you;re looking for:

http://javascript.internet.com/generators/popup-window.html

there are about a millin different variations of this code.  You can also try Dynamic drive, I have found alot of cool code generators there in the past.

eminent

nope, that didnt work for the phpbox..

dodok

I have good solution for implementing "who is in the chat". Make sure to backup file first.
TPortal stats box already have "who is online".
If you wont to show "who is in the chat" in same window, than u need to edit TPortalBlocks.template

find this code:
foreach($online['users'] as $user){
echo $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];

echo '<br />';
   }
echo '</div>';
         }
       }


Replace fith:
foreach($online['users'] as $user){
echo $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];

echo '<br />';
   }
echo '</div>';
         }
       // --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], 'Users currently in chat:<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---
}


Works for me! 8)


ash

appears this only works on the default theme?  I have cs-dark loaded and the new code didnt appear to affect the stats block.

thanks for the post though!!!!

dodok

Quote from: ash on August 23, 2007, 01:52:41 PM
appears this only works on the default theme?  I have cs-dark loaded and the new code didnt appear to affect the stats block.

thanks for the post though!!!!

But I use this with Mirage theme. Did u integrated FlashChat in you theme? Link for tutorial. http://www.daniel15.com/forum/index.php/topic,856.html   

First u must integrate flashchat in you theame.
Code that I posted up, is just to show who is in chat in TPortal stats box .

ash

I have.  I use a basic Iframe to post the "whos in chat".  There afre alot of features that just dont work with the cs-dark theme.  Ive learned to work around them.  This I assume, is just another one  :/

This website is proudly hosted on Crocweb Cloud Website Hosting.