If you would like to have dynamic content on custom pages follow these steps.
Add a new plugin under the hook "misc_start".
You can make the title whatever you wish.
Plugin PHP Code
PHP Code:
$getmembers = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE usergroupid='2' ");
while($member = $db->fetch_array($getmembers))
{
$members .= $member['username'] ."<br />";
}
In your custom template add the variable
$members
Now when yoursite.com/forums/misc.php?do=page&template=your_template It'll run the PHP code mentioned above.
If you know PHP then you'll know that all the data is being stored in the variable
$members.
Since your custom template contains that variable it'll parse the contents onto the page.