gbox master
07-06-2009, 07:14 PM
i had another portal installed before i started using this
there was a new members module in that one and it showed the registrations from the last 20 or 30 members
is there such a module for vbadadvance also ?
if not is there anyone who can make this for vbadadvance ?
i think this is the code for it from the module i refer to ?
<?php
if(!class_exists('vBCMS_fetch_components'))
{
exit;
}
//=======================[ Stats Module ] ==================================
$threads = 0;
$posts = 0;
if($vbulletin->vbcmsoptions['statsmodul_newmenber'])
{
$lastmemberqu = $this->db->query_read_slave("
SELECT
userid, username, joindate
FROM " . TABLE_PREFIX . "user
ORDER by userid DESC
LIMIT " . intval($vbulletin->vbcmsoptions['statsmodul_newmenber']) . "
");
while($last = $this->db->fetch_array($lastmemberqu))
{
$last['date'] = vbdate($vbulletin->options['dateformat'], $last['joindate'], true);
eval('$lastbit .= "' . fetch_template('Portal_lastmember_bit') . '";');
}
$this->db->free_result($lastmemberqu);
}
$forumstats = $this->db->query_read_slave("
SELECT
threadcount, replycount
FROM " . TABLE_PREFIX . "forum
");
while($forum = $this->db->fetch_array($forumstats))
{
$threads += $forum['threadcount'];
$posts += $forum['replycount'];
}
$this->db->free_result($forumstats);
$totalthreads = vb_number_format($threads);
$totalposts = vb_number_format($posts);
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusernames = $vbulletin->userstats['newusername'];
$newuserids = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;
$recordusers = vb_number_format($vbulletin->maxloggedin['maxonline']);;
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('Portal_stats') . '";');
unset($lastmemberqu, $last, $lastbit, $forumstats, $forum);
/*======================================================================*\
?>
there was a new members module in that one and it showed the registrations from the last 20 or 30 members
is there such a module for vbadadvance also ?
if not is there anyone who can make this for vbadadvance ?
i think this is the code for it from the module i refer to ?
<?php
if(!class_exists('vBCMS_fetch_components'))
{
exit;
}
//=======================[ Stats Module ] ==================================
$threads = 0;
$posts = 0;
if($vbulletin->vbcmsoptions['statsmodul_newmenber'])
{
$lastmemberqu = $this->db->query_read_slave("
SELECT
userid, username, joindate
FROM " . TABLE_PREFIX . "user
ORDER by userid DESC
LIMIT " . intval($vbulletin->vbcmsoptions['statsmodul_newmenber']) . "
");
while($last = $this->db->fetch_array($lastmemberqu))
{
$last['date'] = vbdate($vbulletin->options['dateformat'], $last['joindate'], true);
eval('$lastbit .= "' . fetch_template('Portal_lastmember_bit') . '";');
}
$this->db->free_result($lastmemberqu);
}
$forumstats = $this->db->query_read_slave("
SELECT
threadcount, replycount
FROM " . TABLE_PREFIX . "forum
");
while($forum = $this->db->fetch_array($forumstats))
{
$threads += $forum['threadcount'];
$posts += $forum['replycount'];
}
$this->db->free_result($forumstats);
$totalthreads = vb_number_format($threads);
$totalposts = vb_number_format($posts);
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusernames = $vbulletin->userstats['newusername'];
$newuserids = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;
$recordusers = vb_number_format($vbulletin->maxloggedin['maxonline']);;
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] .= "' . fetch_template('Portal_stats') . '";');
unset($lastmemberqu, $last, $lastbit, $forumstats, $forum);
/*======================================================================*\
?>