Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

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

Kort
#1 18. Januar 2010, 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 - создание сайтов, разработка плагинов и тем для Котонти

Dieser Beitrag wurde von Kort (am 18. Januar 2010, 06:46, vor 11 Jahre) bearbeitet
SunChase
#2 24. Januar 2010, 21:38
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
Kort
#3 24. Januar 2010, 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 24. Januar 2010, 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 25. Januar 2010, 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