Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Core Labs / Archive / Small enhancement for Whosonline plugin

Kort
#1 2010-01-18 06:33
Open whosonline.php and edit as follows:
...
$row['user_birthdate'] = sed_date2stamp($row['user_birthdate']);
$x=sed_xg();
$t->assign(array(
...
Open whosonline.tpl & edit as follows:
<!-- BEGIN: WHOSONlINE_ROW1_IS_ADMIN -->
	<td>{WHOSONlINE_ROW1_USER_ONLINE_LOCATION}</td>
	<td class="centerall"><a href="admin.php?m=tools&amp;p=ipsearch&amp;a=search&amp;id={WHOSONlINE_ROW1_USER_ONLINE_IP}&amp;{PHP.x}">{WHOSONlINE_ROW1_USER_ONLINE_IP}</a></td>
<!-- END: WHOSONlINE_ROW1_IS_ADMIN -->
and
<!-- BEGIN: WHOSONlINE_ROW2_IS_ADMIN -->
	<td>{WHOSONlINE_ROW2_USER_ONLINE_LOCATION}</td>
	<td class="centerall"><a href="admin.php?m=tools&amp;p=ipsearch&amp;a=search&amp;id={WHOSONlINE_ROW2_USER_ONLINE_IP}&amp;{PHP.x}">{WHOSONlINE_ROW2_USER_ONLINE_IP}</a></td>
<!-- END: WHOSONlINE_ROW2_IS_ADMIN -->
This gives you links to a detailed ip info by ipsearch rather than plain ip-address.
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти

Dit bericht is bewerkt door Kort (2010-01-18 06:46, 10 jaren ago)
SunChase
#2 2010-01-24 21:38
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
Kort
#3 2010-01-24 21:45
This is just so smaart! Normally you don't want to get a complete info on the IP. Besides, it's good to stay within the website for a simple task.
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти
SunChase
#4 2010-01-24 23:29
yep.Maybe your right,but my method is also good ;)
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
rayblo
#5 2010-01-25 00:39
what about not setting names as desc but time being online as desc??
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch