![]() |
PHP Hook not working
I have a hook on vb 3.5 which is the following:
product: vbulletin hook location: ajax_start Title: adverts Plugin PHP code: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('myfootball-ads.php'); echo $ad_network; ?> Plugin Active: Yes and this works fine when i put the $ad_network code in the footer, but its not showing up when i put it on the new version of vb version 3.6 BETA 4. Why is this? Thanks in advance. |
No idea, the hook hasn't moved - it does however seem a very odd hook to use for adding things to your footer ?
|
Quote:
I've created a php file called ads.php and put the code (in the first post) into it and it works. I just don't understand why it doesn't work now? Is it all correct for it to be displayed in the footer template? i've put the code above into a file www.myfootballforum.com/ads.php and it works fine so why isn't the hook above working? Its doing my head in. |
Sorry but I'm still confused, why are you using (or trying to use) the hook ajax_start ?
|
Isn't that the first hook location given to you? I'd imagine that he didn't select a location, rather just left it as is. I believe the correct hook location for you would be global_start, assuming you want whatever you're trying to display on every footer of every page.
|
All times are GMT. The time now is 07:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|