ads in php-fusion footer ?

twoeagle

New Member
Messages
4
Reaction score
0
Points
0
I'm new to php and web-design.

I've tried to ad the ad as described in http://forums.x10hosting.com/tutorials/28043-how-insert-ads-php-fusion.html without getting it to work.

It says to Find Code: <body bgcolor='$body_bg' text='$body_text'>\n";
but I don't find this code anywhere.
I tried to add the:
Code: echo "<center><script type=\"text/javascript\" src=\"http://x10hosting.com/adserve.js?advanced\"></script></center>\n";

under the code line "render_footer(false);"
without luck

Here is the code in the file footer.php:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }


render_footer(false);

echo "</body>\n</html>\n";


if (iADMIN) {
$result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time()-360)."'");
$result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time()-1209600)."'");
$result = dbquery("DELETE FROM ".$db_prefix."vcode WHERE vcode_datestamp < '".(time()-360)."'");
$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");
}


mysql_close();


ob_end_flush();
?>
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
We don't officially support 3rd party scripts so I'm moving this to site management.

-Corey
 

Ace Frye

New Member
Messages
4
Reaction score
0
Points
0
Add
Code:
echo "<center><script type=\"text/javascript\" src=\"http://x10hosting.com/adserve.js?advanced\"></script></center>\n";

just before

Code:
echo "</body>\n</html>\n";

This will work for all x10 ads, simply change "advanced" to your username, static, advanced, or corporate accordingly.
 
Top