Revision [17211]

This is an old revision of Mod036fLastUsers made by JavaWoman on 2007-07-07 14:46:47.

 

Wikka Mod 036

Type: Feature Addition

Credit:

Wacko Wiki


Modified the lastusers action from WackoWiki to work with Wikka and added the table formatting. -- JsnX

<?php

if ($stat===0) $limit = 1000;
else $limit = 100;

if (!$max || $limit<$max)
  $max = $limit;

$last_users = $this->LoadAll("select name, signuptime from ".$this->config["table_prefix"]."users order by signuptime desc limit ".(int)$max);

$htmlout = "<table width=\"50%\" border=\"0\" cellpadding=\"3%\">\n".
  "  <tr>\n".
    "   <th><u>Name</u></td>\n".
    "   <th><u>Owned Pages</u></td>\n".
    "   <th><u>Signup Date/Time</u></td>\n".
  "  </tr>\n";

foreach($last_users as $user)
{
 $htmlout .= "  <tr>\n";
 if ($stat!=="0") $num = $this->LoadSingle("select count(*) as n from ".$this->config["table_prefix"]."pages where owner='".$user["name"]."' AND latest = 'Y' AND comment_on = ''");
 $htmlout .= "  <td>".$this->Link($user["name"])."</td>\n   <td>".($stat!=="0"?" . . . . . (".$num["n"].")":"")."</td>\n    <td>(".$user["signuptime"].")</td>\n";
 $htmlout .= "  </tr>\n";
}

$htmlout .= "</table>\n";

print($htmlout);

?>



Lastest users....
Recently registered users
Username Owned pages Signup date/time
WikkaInstaller 0 (2020-04-20 17:01:16)
ThePLG 1 (2019-08-30 08:57:30)
FooBar2 0 (2019-08-29 23:23:20)
CowNinja 0 (2018-12-01 17:13:25)
OeMunoz 2 (2016-12-06 18:10:58)
Onion 0 (2015-02-18 18:43:37)
RamonitaifDumololb 0 (2014-12-25 13:47:09)
VinceliEscamillath 0 (2014-12-25 13:42:32)
KeishayuJuergensxx 0 (2014-12-25 13:23:00)
RufusrfRochati 0 (2014-12-25 13:18:04)
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki