An example
here
If you want, then I will give code
diabloser (02.06.2013 / 18:08)
Qchat For Jcms v4
Думаю он и на пятой версии работать будет
diabloser, not working on my johncms 5.0.0 to many error
babybeel, Today I'll put it on your website, try to make it work
this chat modified from guestbook 5.0.0 , mod by nguprus.com
qchat biasanya pake penyesuaian versi terdahulu.i'm sorry my english is bad
Anyone to change this qchat code 4.4 to 5.0 , text on maninmenu , last 3 message?
<?
{
$roq = mysql_query("SELECT `qchat`.*, `users`.`name`, `users`.`rights`, `users`.`lastdate`, `users`.`sex`, `users`.`status`, `users`.`datereg`, `users`.`ip` , `users`.`browser` FROM `qchat` LEFT JOIN `users` ON `qchat`.`user_id` = `users`.`id` ORDER BY `time` DESC LIMIT 3;");;
while ($res = mysql_fetch_array($roq))
{
echo ceil(ceil($i / 2) - ($i / 2)) == 0 ? '<div class="c">' : '<div class="b">';
// icon seks
global $set_user, $realtime, $user_id, $admp, $home;
if ($set_user['avatar']) {
if (file_exists(($rootpath . 'files/users/avatar/' . $res['user_id'] . '.png')))
echo '<img src="' . $set['homeurl'] . '/files/users/avatar/' . $res['user_id'] . '.png" width="20" height="20" alt="' . $user['name'] . '" /> ';
else
echo '<img src="' . $set['homeurl'] . '/images/empty.png" width="20" height="20" alt="' . $user['name'] . '" /> ';
}
echo '<a href="' . $set['homeurl'] . '/users/profile.php?user=' . $res['user_id'] . '"><b>' . $res['name'] . '</b></a> ';
$ontimes = $res['lastdate'] + 300;
if ($realtime > $ontimes)
{
echo '<span class="red"><img src="../images/off.png" alt="OFF" /"></span>';
}
else
{
echo '<font color="#00AA00"><img src="../images/on.png" alt="ON" /"></font>';
}
require_once ($rootpath . 'incfiles/antilink.php');
echo ' ';
$post = antilink2(checkout($res['text'], 1, 1));
$post = functions::smileys($post, $res['rights'] >= 1 ? 1 : 0);
// text
if (mb_strlen($post) >= 100)
{
$post = mb_substr($post, 0, 150);
echo $post.' ';
}
else
{
echo $post;
}
echo '</div>';
++$i;
}
}
?>