wolfe
03-22-2007, 10:07 AM
hi i was woundering if there was a mod out to stop users going in forums above there age rating
like if its a adult jokes forum if the user is under 18 they get an error message and also members get in.
i tried sumit like this as a plug in and got errors
if ($ageinfo = $vbulletin->db->query_first("
SELECT user.age
FROM " . TABLE_PREFIX . "user AS user
WHERE user.userid = $bbuserinfo[userid]"));
{
if ($ageinfo < 101 & $forumid == 19)
{
eval(standard_error(fetch_error('invalidid','You Are Under 18'));
}
like if its a adult jokes forum if the user is under 18 they get an error message and also members get in.
i tried sumit like this as a plug in and got errors
if ($ageinfo = $vbulletin->db->query_first("
SELECT user.age
FROM " . TABLE_PREFIX . "user AS user
WHERE user.userid = $bbuserinfo[userid]"));
{
if ($ageinfo < 101 & $forumid == 19)
{
eval(standard_error(fetch_error('invalidid','You Are Under 18'));
}