The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
custom plugin that calls custom php, but only want php to fire on custom template?
Here's the scenario:
I made a custom php script that does some processing. I wanted to perform this processing only when a custom page was called. The PHP process is also outputting some HTML and other stuff that has to be displayed on the custom template. To do this, I created a custom plug that is called on 'global_start'. It looks like this: Code:
ob_start(); include('MYCUSTOMCODE.php'); $includedphp = ob_get_contents(); ob_end_clean(); Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $vbphrase[image_veri]</title> </head> <body> $header $navbar $includedphp $footer How do I make this custom PHP only fire when the custom template is being called? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|