Suggestion Box
Add FreiChatX on jomla 2.5 multilanguages

Hi,
I need please to modifie FreiChatX in order to be multilanguages on jommla2.5 with communty builder

Hi, I need please to modifie FreiChatX in order to be multilanguages on jommla2.5 with communty builder

hi again,
I need also to create a module of user online with avatar de community builder.
Thank you.

hi again, I need also to create a module of user online with avatar de community builder. Thank you.

Sorry , but i could not understand what you meant by creating a module of user online
do you want the CB avatars of the users to be shown in the online user list ?

Sorry , but i could not understand what you meant by creating a module of user online do you want the CB avatars of the users to be shown in the online user list ?
Necessity is the mother of all inventions!

hello,
Yes i mean cb avatar of user, i coded some code but i doesn't work i will send to you de code.

this the code:
---------------------------------------------Code------------------------------------------------------------
<?php // no direct access
defined('_JEXEC') or die;

global $_CB_framework, $_CB_database, $ueConfig, $mainframe;

if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );

cbimport( 'cb.database' );
cbimport( 'language.front' );

function getNameFormatOnline($name,$uname,$format) {
if ( $format != 3 ) {
$name = str_replace( array("&amp;","&quot;","'","&lt;","&gt;"), array("&","\"","'","<",">"), $name );
}
SWITCH ($format) {
CASE 1 :
$returnName = $name;
break;
CASE 2 :
$returnName = $name." (".$uname.")";
break;
CASE 3 :
$returnName = $uname;
break;
CASE 4 :
$returnName = $uname." (".$name.")";
break;
}
return $returnName;
}

if (is_callable(array($params,"get"))) {
$class_sfx = $params->get( 'moduleclass_sfx');
$pretext = $params->get( 'pretext', "" );
$posttext = $params->get( 'posttext', "" );
} else {
$class_sfx = '';
$pretext = '';
$posttext = '';
}

$query = "SELECT DISTINCT a.username, a.userid, u.name, c.avatar"
."\n FROM #__session AS a, #__users AS u, #__comprofiler AS c"
."\n WHERE (a.userid = u.id) AND (a.guest = 0) AND (c.user_id = u.id) "
. "AND (a.client_id = 0)"
."\n ORDER BY " . ( ( $ueConfig['name_format'] > 2 ) ? "a.username" : "u.name" ) . " ASC";
$_CB_database->setQuery($query);
$rows = $_CB_database->loadObjectList();

$result = '';
if ( count( $rows ) > 0) {
$result .= "


\n";
if ( $pretext != '' ) {
$result = $pretext . "
\n" . $result;
}
$result .= $posttext;
} else {
$result .= _UE_NONE;
}
echo $result;

?>
----------------------------------------------------------------------------------------------------------------
Thinks
hello, Yes i mean cb avatar of user, i coded some code but i doesn&#039;t work i will send to you de code. this the code: ---------------------------------------------Code------------------------------------------------------------ &amp;lt;?php // no direct access defined(&#039;_JEXEC&#039;) or die; global $_CB_framework, $_CB_database, $ueConfig, $mainframe; if ( ! file_exists( JPATH_ADMINISTRATOR . &#039;/components/com_comprofiler/plugin.foundation.php&#039; ) ) { echo &#039;CB not installed&#039;; return; } include_once( JPATH_ADMINISTRATOR . &#039;/components/com_comprofiler/plugin.foundation.php&#039; ); cbimport( &#039;cb.database&#039; ); cbimport( &#039;language.front&#039; ); function getNameFormatOnline($name,$uname,$format) { if ( $format != 3 ) { $name = str_replace( array(&quot;&amp;amp;&quot;,&quot;&amp;quot;&quot;,&quot;&#039;&quot;,&quot;&amp;lt;&quot;,&quot;&amp;gt;&quot;), array(&quot;&amp;&quot;,&quot;\&quot;&quot;,&quot;&#039;&quot;,&quot;&amp;lt;&quot;,&quot;&amp;gt;&quot;), $name ); } SWITCH ($format) { CASE 1 : $returnName = $name; break; CASE 2 : $returnName = $name.&quot; (&quot;.$uname.&quot;)&quot;; break; CASE 3 : $returnName = $uname; break; CASE 4 : $returnName = $uname.&quot; (&quot;.$name.&quot;)&quot;; break; } return $returnName; } if (is_callable(array($params,&quot;get&quot;))) { $class_sfx = $params-&amp;gt;get( &#039;moduleclass_sfx&#039;); $pretext = $params-&amp;gt;get( &#039;pretext&#039;, &quot;&quot; ); $posttext = $params-&amp;gt;get( &#039;posttext&#039;, &quot;&quot; ); } else { $class_sfx = &#039;&#039;; $pretext = &#039;&#039;; $posttext = &#039;&#039;; } $query = &quot;SELECT DISTINCT a.username, a.userid, u.name, c.avatar&quot; .&quot;\n FROM #__session AS a, #__users AS u, #__comprofiler AS c&quot; .&quot;\n WHERE (a.userid = u.id) AND (a.guest = 0) AND (c.user_id = u.id) &quot; . &quot;AND (a.client_id = 0)&quot; .&quot;\n ORDER BY &quot; . ( ( $ueConfig[&#039;name_format&#039;] &amp;gt; 2 ) ? &quot;a.username&quot; : &quot;u.name&quot; ) . &quot; ASC&quot;; $_CB_database-&amp;gt;setQuery($query); $rows = $_CB_database-&amp;gt;loadObjectList(); $result = &#039;&#039;; if ( count( $rows ) &amp;gt; 0) { $result .= &quot;&amp;lt;ul class=&#039;mod_login&quot;.$class_sfx.&quot;&#039;&amp;gt;\n&quot;; // style=&#039;list-style-type:none; margin:0px; padding:0px; font-weight:bold;&#039; foreach($rows as $row) { $result .= &quot;&amp;lt;li&amp;gt;&amp;lt;a href=&#039;&quot; . $_CB_framework-&amp;gt;userProfileUrl( (int) $row-&amp;gt;userid ) . &quot;&#039; class=&#039;mod_login&quot;.$class_sfx.&quot;&#039;&amp;gt;&amp;lt;img src=&#039;/images/comprofiler/&quot;. $row-&amp;gt;avatar . &quot;&#039; border=&#039;0&#039; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&quot; . &amp;lt;a href=&#039;&quot; . $_CB_framework-&amp;gt;userProfileUrl( (int) $row-&amp;gt;userid ) . &quot;&#039; class=&#039;mod_login&quot;.$class_sfx.&quot;&#039;&amp;gt;&quot;.htmlspecialchars(getNameFormatOnline($row-&amp;gt;name,$row-&amp;gt;username,$ueConfig[&#039;name_format&#039;])).&quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;\n&quot;; } $result .= &quot;&amp;lt;/ul&amp;gt;\n&quot;; if ( $pretext != &#039;&#039; ) { $result = $pretext . &quot;&amp;lt;br /&amp;gt;\n&quot; . $result; } $result .= $posttext; } else { $result .= _UE_NONE; } echo $result; ?&amp;gt; ---------------------------------------------------------------------------------------------------------------- Thinks

But FreiChat shows CB avatar by default , why are you trying to make a module for it ?

But FreiChat shows CB avatar by default , why are you trying to make a module for it ?
Necessity is the mother of all inventions!

hi,
I know that freichat has avatar of community builder, the avatars of freichat appear when user clic on chat, but for me i need also module who's online appear like gmail or facebook, always show avatars of all user online. thank you.

hi, I know that freichat has avatar of community builder, the avatars of freichat appear when user clic on chat, but for me i need also module who&#039;s online appear like gmail or facebook, always show avatars of all user online. thank you.

If i am not mistaken facebook and gmail works same as FreiChat i.e they don't have any additional module showing online friends except the chatbox in the bottom right .

But if you need any module like that , there will be plenty of who is online modules for Joomla / CB , why are you trying to make your own ?

If i am not mistaken facebook and gmail works same as FreiChat i.e they don&#039;t have any additional module showing online friends except the chatbox in the bottom right . But if you need any module like that , there will be plenty of who is online modules for Joomla / CB , why are you trying to make your own ?
Necessity is the mother of all inventions!
95
6
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft