I've been trying to figure this out for hours and hours when it should be so simple. I just want to include some php files in the template.
The manual for vbulletin 5 refers to "Plug Ins" but there is no use of that word in the admincp. The only thing I can find in the admincp is to disable or enable hooks. I can't find anywhere to add custom hooks or how to do it. The manual has this text:
"
Including a PHP file:
1. Create a Plug-in for global_start with these contents:
ob_start();
include('path/to/this/file/myfile.php');
$includedphp = ob_get_contents();
ob_end_clean();
Replace the path and filename with the correct path and filename of the PHP file you want to include. The code in myfile.php will execute and any output generated by this script will be stored in $includedphp.
2. Place {vb:raw includedphp} in one of your templates, such as header, navbar, FORUMHOME, depending upon where you want the contents of your PHP file to appear.
"
It's hard to tell if this is even the manual for vBulletin 5 connect. There is also no way to link to the page because of the way it's designed. However, it does say "Next: Introduction to vBulletin 5 Connect" at the bottom of the page, so I'm pretty sure it's a vb5 connect guide.
So after I right that code to call the php file. Where do I put it? How do I add it as a hook/plugin?
I tried adding php code in the template, but that doesn't work. I just want to call some php files. How can I do this? Where is documentation on adding hooks with include php files? I can't find any information on this related to vbulletin 5 connect.
The manual for vbulletin 5 refers to "Plug Ins" but there is no use of that word in the admincp. The only thing I can find in the admincp is to disable or enable hooks. I can't find anywhere to add custom hooks or how to do it. The manual has this text:
"
Including a PHP file:
1. Create a Plug-in for global_start with these contents:
ob_start();
include('path/to/this/file/myfile.php');
$includedphp = ob_get_contents();
ob_end_clean();
Replace the path and filename with the correct path and filename of the PHP file you want to include. The code in myfile.php will execute and any output generated by this script will be stored in $includedphp.
2. Place {vb:raw includedphp} in one of your templates, such as header, navbar, FORUMHOME, depending upon where you want the contents of your PHP file to appear.
"
It's hard to tell if this is even the manual for vBulletin 5 connect. There is also no way to link to the page because of the way it's designed. However, it does say "Next: Introduction to vBulletin 5 Connect" at the bottom of the page, so I'm pretty sure it's a vb5 connect guide.
So after I right that code to call the php file. Where do I put it? How do I add it as a hook/plugin?
I tried adding php code in the template, but that doesn't work. I just want to call some php files. How can I do this? Where is documentation on adding hooks with include php files? I can't find any information on this related to vbulletin 5 connect.
Comment