The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Trying to get file includes working, but without any luck. Have followed instructions here:
http://www.vbulletin.com/docs/html/t..._externalfiles So, in short, have created a php file, "example_include.php" with the contents: Code:
<?php echo 'Include success!!'; ?> 2. Created new plug-in: Code:
ob_start();
include('example_include.php');
$includedphp = ob_get_contents();
ob_end_clean();
Checked plug-in is active (and plugin feature generally is enabled). 3. Added {vb:raw includedphp} to the header under common templates. 4. Enabled debug to view that the file has in fact been included: Quote:
Any ideas out there please? |
|
#2
|
||||
|
||||
|
don't you need the path adding?..
|
|
#3
|
|||
|
|||
|
First, you need to pre-register the variable.
|
|
#5
|
|||
|
|||
|
Thanks ForumsMods, that's cracked it. Really had me stumped as there was nothing about this in the online manual.
Sorry BirdOPrey5 - feel free to move it to the appropriate discussion. Can vBulletin do that? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|