The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP Include Not Working in Plugin
I'm trying to include a php file in one of the templates for Bananalive's vbTournaments mod but have run into trouble. It's been a while since I've attempted something like this so I followed this guide: Including External Files but it still isn't working. If anyone could let me know what I'm doing wrong I'd greatly appreciate it.
/example.php contents: PHP Code:
Plugin: Product: vB Tournaments, Ladders and Leagues Manager Hook Location: global_start Title: Example Block Exec Order: 5 Code: PHP Code:
Edit: I forgot to mention that I added {vb:raw myincludedphp} to the tmnt_index_c template, and I tested plain text in the same spot to ensure I was outside an if/else statement. --------------- Added [DATE]1530212690[/DATE] at [TIME]1530212690[/TIME] --------------- Update: I still need to test my real code but I found the issue... a simple space. The code example from the manual contains an extra space in the preRegister that I didn't catch when substituting my variable name. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|