Kihon Kata
07-04-2008, 02:39 PM
VB Coding Question: If I wanted to add more forums to this check, how would I do it? (novice coder here)
if ($foruminfo['forumid']=="57" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}Would it be like this?
if ($foruminfo['forumid']=="57,167,168" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}OR
if ($foruminfo['forumid']=="57" if ($foruminfo['forumid']=="167" if ($foruminfo['forumid']=="168" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}OR
if ($foruminfo['forumid']=="57"
if ($foruminfo['forumid']=="167"
if ($foruminfo['forumid']=="168"
AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}Any help would be appreciated
if ($foruminfo['forumid']=="57" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}Would it be like this?
if ($foruminfo['forumid']=="57,167,168" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}OR
if ($foruminfo['forumid']=="57" if ($foruminfo['forumid']=="167" if ($foruminfo['forumid']=="168" AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}OR
if ($foruminfo['forumid']=="57"
if ($foruminfo['forumid']=="167"
if ($foruminfo['forumid']=="168"
AND $vbulletin->userinfo['hsa']!=YES)
{
standard_error("You Must Apply For Access To This Forum.<br />Go Here To Apply: <a href=http://www.XXXXXXXX.com/forums/verifyage.php>Click Here</a>");
}Any help would be appreciated