Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2011, 07:50 PM
Member
 
Join Date: Jan 2011
Posts: 56
Default 123FlashChat & JomSocial: Showing users

I have version 9.2 integrated with JomSocial on my site and with that, a specific problem.

With other chats that I have used, I managed to turn off the area that shows who is in the chat at that moment. What happens is that people first look at who is chatting, and then decide to join in or not.

Consequently, there are less and less people logging in (experienced chat operators might recognise this problem).

So, how do I turn this off? I would have opened a ticket but I thought this information might be helpful to others.


F.


BTW guys, there must be a way to get rid of the spammers here. I have done it - I'm sure you can!
Reply With Quote
  #2 (permalink)  
Old 12-22-2011, 07:31 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default Codes

HI,

We can not implement this now, and we did not add this option, please understand, but I think you can refer to the steps, maybe you can add it, thanks.

Quote:

Step 4, Modify Template to show Chat Status:

The following code to be added:

<!--123 Flash Chat-->
<div class="cModule 123flashchat">
<h3><span>123 Flash Chat</span></h3>
<?php

require_once(JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'helpers' . DS . 'chat.php');

$cfg = getConfig();
if ($cfg->server!=2 && $cfg->full_screen==1)
{
$clientSize = 'fullscreen=1';
}
else
{
$clientSize = 'width=' . $cfg->client_width . 'px,height=' . $cfg->client_height . 'px';
}
$clientSize = "'" . $clientSize . "'";
if ($cfg->chat_status)
{
$status = getStatus();
if($cfg->server != 2)
{
echo ($status['rn'] ? $status['rn'] : '0') . ' <b>rooms</b>, ' . ($status['cn'] ? $status['cn'] : '0') . ' <b>connections</b>, ';
}
echo $status['ln'] . " <b>logins</b>";

//if(isset($rooms))
if ($cfg->room_list && ($cfg->server != 2))
{
$rooms = getRooms();
echo "<br /><br /><b>Rooms:</b><br />";

if(!$rooms)
{
echo "None";
}
else
{
$xa = '';
foreach($rooms as $room)
{
$js = '';
$app =& JFactory::getApplication();
if (!$app->getCfg('sef_suffix'))
{
$url = 'index.php?tmpl=component&option=com_chat&view=cha t&room=' . $room['id'];
$url = "'" . $url . "'";
$open = "'" . '123_flash_chat' . "'";
$js = !($cfg->present_mode) ? '' : ('onclick="window.open(' . $url . ',' . $open . ',' . $clientSize . ');return false;"');
}
echo $xa . '<a href="index.php?option=com_community&view=chat&roo m=' . $room['id'] . '" ' . $js . ">" .$room['name'] ."</a>(" . $room['count'] . ")";
$xa = ";<br />";
}
}
}

//if(isset($users))
if ($cfg->user_list)
{
$users = getUsers();
echo "<br /><br /><b>Users:</b> ";
if(!$users)
{
echo "None";
}
else
{
$xb = '';
foreach($users as $user)
{
echo $xb . $user['name'];
$xb = ', ';
}
}
}
}
if ($cfg->chat_status != 0)
{
echo '<br/>';
}
$ss = '';
$app =& JFactory::getApplication();
if (!$app->getCfg('sef_suffix'))
{
$url = 'index.php?option=com_chat&view=chat&tmpl=componen t';
$url = "'" . $url . "'";
$open = "'" . '123_flash_chat' . "'";

$ss = !($cfg->present_mode) ? '' : ('onclick="window.open(' . $url . ',' . $open . ',' . $clientSize . ');return false;"');
}
echo '<br/><a href="' . CRoute::_('index.php?option=com_community&view=cha t') . '" style="float: left"' . $ss . '><b>Chat Now!</b></a><br/><br/>';
?>
</div>
<!--123 Flash Chat-->

For example:

(1) show chat status in home page:

Open: Admin Panel ->Components->Jom Social ->Templates ->Select using Template

Select File: frontpage.index.php

Find: <?php $this->renderModules( 'js_side_bottom' ); ?>

Before it add the code we provide.

(2) show chat status in profile page:

Open: Admin Panel ->Components->Jom Social ->Templates ->Select using Template

Select File: profile.index.php

Find: <?php echo $friends; ?>

After it add the code we provide.


In Admin Panel ->Components->Jom Social ->Templates ->Select using Template ->frontpage.index.php
or
Admin Panel ->Components->Jom Social ->Templates ->Select using Template ->profile.index.php

find this codes:

if($cfg->server != 2)
{
echo ($status['rn'] ? $status['rn'] : '0') . ' rooms, ' . ($status['cn'] ? $status['cn'] : '0') . ' connections, ';
}
echo $status['ln'] . " logins<dl class='profile-right-info'>

replace it with these codes:

echo "<dl class='profile-right-info'>


2
Go to admin panel -> Components -> 123flashchat ->chat settings -->
Basic Settings -->Show User List -->no.

Reply With Quote
  #3 (permalink)  
Old 12-22-2011, 08:18 PM
Member
 
Join Date: Jan 2011
Posts: 56
Default

Admin, your answers always put a smile on my face

I will have a go at this coming weekend. It is not something that needs to be added, it is something that needs to be removed.

Anyroad, I'll have a go. Merry Xmas to all of the team!


F.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:43 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.