The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
No idea, the hook hasn't moved - it does however seem a very odd hook to use for adding things to your footer ?
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
Sorry but I'm still confused, why are you using (or trying to use) the hook ajax_start ?
|
#5
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|