1
I am writing a PHP script that gives the user a choice of a flash banner, image banner, or no banner... it works by reading a profile field I created for it from the database.
I have been working for a while on this script, and had it checked by many experts, and the script itself appears to be valid... however, the real problem I have is I can't seem to find anywhere in the entire XOOPS 2.2 to include this script so that it will show up in the header.
First I tried renaming theme.html to theme.php (and also changing the value for this in /class/theme.php), then
I included the file in place of where the banner was.
It did not work at all, like it wasn't getting included.
Next I tried including the script directly in /header.php,
it either did not show up, or gave me a "Fatal error: call to a member function on a non-object".
I REALLY need to know where and how I can include this script so that it will be placed at the top of the page.
If you need to see my script, it is
here.
It is a PHP file, but renamed to .TXT so that you can view it.
If you can point out something wrong in it, please tell me.