Opening PHP files on Vbulletin page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frankenberrie
    Member
    • Dec 2002
    • 85
    • 2.3.2

    Opening PHP files on Vbulletin page?

    I have a PHP script that I would like to open in Vbulletin. Is there a way I can call it to open iin my vbulletin page?

    I want it to open between the nav bar and the footer. is this possible? Thanks!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu) -> phpinclude_start

    Use this code in that template:

    Code:
    ob_start();
    require("[color=red]yourfile.php[/color]");
    $your_variable = ob_get_contents();
    ob_end_clean();
    Change the red code appropriately. Now you can use this code in your templates to display the contents of the PHP file:

    Code:
    $your_variable

    Comment

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