It was much easier on the old 6.4 boards to do everything in 1 file. Is there anyway to do that now?
How can I check to see if a user belongs to a specific group to display certain data to?
Also, I want to open a custom database table to display data from if the user belongs to a certain group.
For me this was easy with the old wrapper. Where do I put my php code for this?
Here is just a little sample of the code.
if ( (ereg ("-8-", $groups)) || (ereg ("-15-",$groups)) ) {
echo "<br>(Member access)";
} else {
echo "<br>Public access";
}
echo "</center><p>";
// Get all the info
$wowConnect = mysql_connect($config['dbserver'], $config['dbuser'], $config['dbpass']);
if ($wowConnect){
mysql_select_db($config['dbname'], $wowConnect);
}
thanks in advance for any help.