1
rgc_gb_elite
How do I hack in PHP at the bottom of a theme?

OK. I am attempting to install this small bit of code at the bottom of a theme, so that it shows on every page. I have tried to insert it into a block with PHP property set. But no luck there.

So, I thought, well, I'll hack the Theme! After some crash course reading in the Smarty Site, I did come to the realization that it needed to be wrapped in <{php}> <{/php}>

Well, after doing this, and setting my general settings to check for template updates, I did not get any results back. I have a sneaky suspission that it may have to do with properly using XOOPS_ROOT_PATH, but I am not exactly sure what the proper formatting should be.
//Echo's do work, so I know the php wrap is correct.
echo "Test";

OUTPUTS:

Test

<tr>
    <
td height="30" align="center">
    <{
php}>
        
ini_set ("include_path"ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include (
'ad_network_400.php');
    echo 
$ad_network;
        <{/
php}>
    </
td>
  </
tr>


Any help would be greatly appreciated.

Login

Who's Online

149 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits