The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
VB Coding Question: If I wanted to add more forums to this check, how would I do it? (novice coder here)
Code:
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>");
}
Code:
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>");
}
Code:
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>");
}
Code:
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>");
}
|
|
#2
|
|||
|
|||
|
PHP Code:
|
|
#3
|
||||
|
||||
|
Make sure you put in your other bit of code.
PHP Code:
|
|
#4
|
|||
|
|||
|
Thanks, this worked!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|