mcyates
10-20-2006, 08:16 PM
I have a hook which displays 5 text links at the bottom of my main forum and this is:
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('myfootball-ads.php'); echo $ad_network;
That works fine. Its using the hook location global start.
The problem is, when i try to create a new hook for the archive which uses this code:
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('myfootball-ads.php'); echo $ad_network2;
The hook location is archive_complete and its just not working.
Any help would be appreciated.
Thanks in advance
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('myfootball-ads.php'); echo $ad_network;
That works fine. Its using the hook location global start.
The problem is, when i try to create a new hook for the archive which uses this code:
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('myfootball-ads.php'); echo $ad_network2;
The hook location is archive_complete and its just not working.
Any help would be appreciated.
Thanks in advance