yea, that makes soo much sense. But I followed that tutorial (
https://vborg.vbsupport.ru/showthrea...n+powered+page) and made a PROVIDERS template and used the hook in there. Then all that providers.php does is call the template (the only reason I did this cause I wanted the vbulletin stuff (header navbar and footer) to be on the page (like
http://www.lvasp.com/forum/providers.php) If you want, take a look at this (its similar to what I'm trying to mimic)
http://www.lvasp.com/forum/reviews.php which was created also by a custom template (REVIEWS) and uses that pesky hook system. But when I plug the PHP code into the page which calls the template nothing happens, there is a way to do this without creating a template or using the hook system, but still having all the vbulletin stuff in it to.
Quote:
If you are not using a default vBulletin file there is no need to use the Hook and Plugin system. You have control of this file so you don't need Plugins, you put your PHP inside your PHP file. Using the Plugin system is pointless, you have a custom PHP file so you should use it. I'm not sure why you are using a providers_hook.php page as you don't even need that, you just need to put that code into the main PHP file.
|
I dont see how to plug the php code into the template directly, I get an error when I replace the $providers variable in the template (PROVIDERS) with the php code in providers_hook.php. I also tried pasting the code in providers_hook.php directly in the providers.php page into (at line 37 pf screenshot) but is that right?
Thanks and sorry for bugging you with this (again)
(Is my providers.php page ok how it calls the template, its attached too)