The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
Lynne helped me setup this hook (global_start) to exclude displaying sponsor images on register.php: Code:
if (THIS_SCRIPT != 'register') {
ob_start();
include('/home/user/domain.com/forums/sponsors.php');
$includedphp = ob_get_contents();
ob_end_clean();
}
Thanks Lynne! Now I'm trying to also exclude showing the images in a specific forum. I think there's an <if> statement I can use, but I'm not sure. How would I add the forum number "f=59" to the exclusion? Thanks in advance for any tips! Keith |
|
#2
|
||||
|
||||
|
You might be able to just add "AND $forumid != 59" to the condition.
|
|
#3
|
|||
|
|||
|
Worked perfectly, thanks as always Lynne!
For anyone interested I added the code in red:Code:
if (THIS_SCRIPT != 'register' AND $forumid != '59') {
ob_start();
include('/home/user/domain.com/forums/sponsors.php');
$includedphp = ob_get_contents();
ob_end_clean();
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|