Announcement

Collapse
No announcement yet.

Getting PHP code to parse in Forum Blocks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting PHP code to parse in Forum Blocks

    Hi guys,

    Been pulling my hair out trying to get my banner code to work in the forum blocks. I've set it to PHP, I've tried a bunch of different ideas, nothing works. I'm running this obviously on my old 3.8 board which is way different, but want it to work on 4.2.2.

    Any ideas how to make this code work? I've tried everything, seems like it should be very easy.

    <?php
    include_once('scripts/125_adverts.php');
    echo "<div align='center'>$bannerAd</div>";
    ?>

    Another code I tried was this...

    ob_start();
    include_once('scripts/125_adverts.php');
    echo "<div align='center'>$bannerAd</div>";
    $output .= ob_get_contents();
    ob_end_clean();

    Thanks!

  • #2
    vBulletin.org is the place to get support on custom code.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X