Idle Xero (idlexero) wrote in lj_everywhere,
Idle Xero
idlexero
lj_everywhere

User stats...

Can someone tell me why this code won't work on my index.bml:



$now-600)) {
my $db = LJ::get_db_reader();
$LJ::CACHE_STAT_ACCTS = $db->selectrow_array("SELECT statval FROM stats WHERE statcat='size' AND statkey='accounts'")+0;
$LJ::CACHE_STAT_ACCTS_ACTIVE = $db->selectrow_array("SELECT statval FROM stats WHERE statcat='size' AND statkey='accounts_active'")+0;
$LJ::CACHE_STAT_ACCTS_TIME = $now;
}
return unless $LJ::CACHE_STAT_ACCTS && $LJ::CACHE_STAT_ACCTS_ACTIVE;
return <<"END_BOX";

$LJ::CACHE_STAT_ACCTS
$LJ::CACHE_STAT_ACCTS_ACTIVE

END_BOX

}
_code?>


Also...I might as well ask while I'm here, are the graphics on the stats.bml a LiveJournal.com only thing, or am I not doing something I should be doing?
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 7 comments