Oh and Dean, I did what you said...
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'guild');
// precache templates used by all actions
$globaltemplates = array(
'members',
'treasury'
);
// precache templates used by specific actions
$actiontemplates = array(
'members' => array(
'guild_memberrow',
'guild_memberslist'
),
);
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'members';
}
require_once("./global.php");
if ($_REQUEST['do'] == 'members')
{
// build the query
/*
SELECT * FROM vb3_user WHERE '8' IN (membergroupids) ORDER BY username ASC
*/
$memberlistquery = $DB_site->query("
SELECT *
FROM " . TABLE_PREFIX . "user
WHERE '8' IN (membergroupids)
ORDER BY username ASC
");
$endtemplate = '';
// check if there are any members from this group
if ($DB_site->num_rows($memberlistquery) == '0')
{
eval('$endtemplate = "' . fetch_template('guild_error_nomembers') . '";');
}
// start getting the users
while ($memberlist = $DB_site->fetch_array($memberlistquery))
{
eval('$endtemplate .= "' . fetch_template('guild_memberrow') . '";');
}
// done
$templatename = 'guild_memberslist';
$navbits = array();
$navbits[$parent] = 'Guild Members';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template($templatename) . '");');
}
?>
Still returns nothing but an empty table.