No, due to the configuration option 'quickreply' of this, it is easy to isolate the needed code from newbb and to integrate it on the same way to a target module.
will love to see this
No, due to the configuration option 'quickreply' of this, it is easy to isolate the needed code from newbb and to integrate it on the same way to a target module.
As in regard to MyComments, I thought it is only for tracking comments by a user
Each module in that site is heavily modified and requires a good knowledge of design and coding.
module communaute
demian wrote:
hipo..you can try this
https://xoops.org/modules/repository/singlefile.php?cid=89&lid=1303
its an old module..don't know if its safe to use...
i just tried it..it works..but maybe need more some tweak to improve it
screenshot
hope someone can update this module
1.https://xoops.org/modules/newbb/viewtopic.php?post_id=303282#forumpost303282
2.https://xoops.org/modules/newbb/viewtopic.php?post_id=303312#forumpost303312
$online_handler =& xoops_gethandler('online');
mt_srand((double)microtime()*1000000);
// set gc probabillity to 10% for now..
if (mt_rand(1, 100) < 11) {
$online_handler->gc(300);
}
if (is_object($xoopsUser)) {
$uid = $xoopsUser->getVar('uid');
$uname = $xoopsUser->getVar('uname');
} else {
$uid = 0;
$uname = '';
}
if (is_object($xoopsModule)) {
$online_handler->write($uid, $uname, time(), $xoopsModule->getVar('mid'), $_SERVER['REMOTE_ADDR']);
} else {
$online_handler->write($uid, $uname, time(), 0, $_SERVER['REMOTE_ADDR']);
}
include_once XOOPS_ROOT_PATH.'/footer.php';
$user_online = new XoopsUser($xoopsUser->getVar('uid'));
if ($user_online->isOnline())
{
$xoopsTpl->assign('user_online', true);
}
<td class="even"><{$users[i].avatar}></td>
<td class="even"><{$users[i].avatar}>
<{if $user_online == true}>
<br /> <span style='color:#ee0000;'>Online</span><br />
<{else}>
<br /> <span style='color:#000000;'>Offline</span><br />
<{/if}>
</td>
In China, some XOOPS 3.0 test sites are available and the new features are amazing. Thanks for phppp and all XOOPS developers. XOOPS is a masterpiece indeed.
I tried to apply the same code in the yogurt friends page to show if a friend is online/offline, but i failed.