Wikka : Mod036fLastUsers

HomePage :: Categories :: Index :: Changes :: Comments :: Documentation :: Blog :: Login/Register

Wikka Mod 036

Type: Feature Addition

Credit:

WackoWiki


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....
Name Owned Pages Signup Date/Time
BrennanBibic . . . . . (0) (2009-01-08 11:06:02)
MaiGre . . . . . (0) (2009-01-03 16:28:33)
Tommy82Slade . . . . . (0) (2009-01-02 08:22:05)
VesprCom . . . . . (0) (2009-01-01 11:12:31)
LivingJC4all . . . . . (0) (2008-12-22 22:38:23)
JeToJedno . . . . . (0) (2008-12-20 15:04:47)
DiddyMac6499 . . . . . (0) (2008-12-18 17:47:48)
SocksFan . . . . . (1) (2008-12-16 23:27:55)
MvRao . . . . . (1) (2008-12-12 18:45:04)
GrahamKelly . . . . . (0) (2008-12-08 17:28:53)
UserElf . . . . . (0) (2008-12-06 17:02:56)
Chrisjuggl97 . . . . . (0) (2008-12-04 21:29:15)
QuietCha0s . . . . . (0) (2008-12-04 12:45:15)
FrRouge . . . . . (0) (2008-12-04 06:25:55)
VincentMayoux . . . . . (2) (2008-11-30 09:18:46)
PaulMerrick . . . . . (0) (2008-11-28 18:35:48)
RobertM . . . . . (0) (2008-11-23 12:04:19)
CalGath . . . . . (0) (2008-11-17 23:31:00)
FredZ . . . . . (1) (2008-11-16 10:27:53)
ChrisBassist . . . . . (0) (2008-11-11 19:18:58)
PaulPietras . . . . . (0) (2008-11-11 15:05:10)
ConFreon . . . . . (0) (2008-11-11 14:10:13)
AlexRust . . . . . (0) (2008-11-11 06:59:24)
AkulaCola . . . . . (0) (2008-11-10 21:24:31)
GlennJackman . . . . . (1) (2008-11-10 13:58:41)
JunJun . . . . . (0) (2008-11-06 10:53:41)
FalkSa . . . . . (0) (2008-11-04 12:30:42)
ScouBidou . . . . . (1) (2008-11-04 05:18:16)
XendranOblivion . . . . . (0) (2008-11-02 04:31:48)
JuLio . . . . . (0) (2008-11-01 13:12:30)
FraCardi . . . . . (0) (2008-10-31 11:24:54)
JericDante . . . . . (0) (2008-10-28 19:33:40)
NesQuick . . . . . (0) (2008-10-24 07:42:00)
AlUy . . . . . (0) (2008-10-24 04:31:03)
AkHon55632 . . . . . (0) (2008-10-23 17:15:46)
HiMikel . . . . . (0) (2008-10-19 15:35:15)
Member08214 . . . . . (0) (2008-10-19 11:44:31)
PierrotShinn . . . . . (0) (2008-10-16 13:43:07)
WikiRo . . . . . (0) (2008-10-10 09:55:35)
WikiPaty . . . . . (0) (2008-10-10 09:52:55)
EricKato . . . . . (0) (2008-10-07 18:13:08)
WikiRajni . . . . . (1) (2008-10-07 01:58:00)
LoopZilla . . . . . (1) (2008-10-05 04:03:55)
WiKiGary . . . . . (0) (2008-10-04 14:20:10)
ChrisBrown . . . . . (0) (2008-10-01 03:50:32)
LeandroS . . . . . (0) (2008-09-28 08:25:01)
LooPing . . . . . (0) (2008-09-28 07:35:44)
DeighacJ . . . . . (0) (2008-09-25 18:37:47)
BillB . . . . . (1) (2008-09-25 17:00:06)
WikiKan73 . . . . . (0) (2008-09-25 16:17:04)
Wikkakan73 . . . . . (0) (2008-09-25 14:15:42)
WikkaNerio . . . . . (0) (2008-09-25 14:12:09)
HughJones . . . . . (1) (2008-09-25 08:49:57)
JustAGuest . . . . . (0) (2008-09-25 08:42:56)
MitchMan . . . . . (0) (2008-09-21 18:42:50)
ThZa . . . . . (0) (2008-09-21 11:48:34)
JphVay . . . . . (0) (2008-09-20 04:14:00)
AltK . . . . . (0) (2008-09-19 07:46:21)
WikiParsons . . . . . (0) (2008-09-18 18:16:21)
JackBomber . . . . . (0) (2008-09-17 16:40:03)
ColinWork . . . . . (0) (2008-09-17 11:38:45)
MartinMisuth . . . . . (0) (2008-09-16 07:47:31)
ZorrunO . . . . . (0) (2008-09-15 22:46:02)
IsMn . . . . . (1) (2008-09-13 19:19:53)
AlexAndrychuk . . . . . (0) (2008-09-09 09:01:58)
Setz84 . . . . . (0) (2008-09-07 18:31:49)
BruningsHansen . . . . . (0) (2008-09-05 08:09:52)
TechnicalWriting . . . . . (1) (2008-08-30 12:04:34)
DanielAndersen . . . . . (0) (2008-08-29 16:31:53)
PeterPaon . . . . . (0) (2008-08-27 04:14:18)
JustinChelseyRicka . . . . . (0) (2008-08-25 16:28:17)
EnzoQui . . . . . (1) (2008-08-20 12:11:41)
EggBurt . . . . . (0) (2008-08-16 10:35:09)
BrianChicago . . . . . (0) (2008-08-14 09:48:56)
AntIrek . . . . . (0) (2008-08-14 04:51:36)
ToddMurtha . . . . . (0) (2008-08-13 18:36:30)
GiacomoFesti . . . . . (0) (2008-08-13 12:35:26)
JorgMuskens . . . . . (0) (2008-08-13 06:55:01)
MikeGeaney . . . . . (0) (2008-08-09 03:42:59)
ScottTimm . . . . . (0) (2008-08-07 09:44:53)
ElvargLow . . . . . (0) (2008-08-04 01:21:56)
MedGrad . . . . . (1) (2008-08-01 16:17:59)
ChipMillhouse . . . . . (0) (2008-07-31 23:47:18)
HolgerBoehm . . . . . (0) (2008-07-31 05:09:59)
JaredSlear . . . . . (0) (2008-07-29 20:47:31)
DeekMa . . . . . (1) (2008-07-28 05:09:48)
TaraBelle . . . . . (0) (2008-07-23 05:58:30)
SaBlakelore . . . . . (0) (2008-07-22 02:01:32)
GlenCoulthard . . . . . (1) (2008-07-20 23:51:01)
BobLeponge . . . . . (1) (2008-07-18 11:40:09)
AnishKNY . . . . . (0) (2008-07-16 20:49:23)
KeJi . . . . . (0) (2008-07-16 11:23:46)
DanDavis . . . . . (0) (2008-07-11 15:29:50)
AndyVilliger . . . . . (0) (2008-07-10 06:56:46)
AlbertogalaN . . . . . (0) (2008-07-08 16:32:24)
NipatJ . . . . . (0) (2008-07-06 21:59:30)
JoaoBoscoMelo . . . . . (0) (2008-07-02 15:41:36)
BjattaJr . . . . . (0) (2008-07-02 00:03:46)
AllezGo . . . . . (0) (2008-07-01 19:11:46)
RadiM . . . . . (0) (2008-06-28 07:19:49)
There are no comments on this page. [Add comment]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.2122 seconds