+ Reply to Thread
Results 1 to 3 of 3

Thread: ads in php-fusion footer ?

  1. #1
    twoeagle is offline x10Hosting Member twoeagle is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    4

    ads in php-fusion footer ?

    I'm new to php and web-design.

    I've tried to ad the ad as described in http://forums.x10hosting.com/tutoria...hp-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();
    ?>

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: ads in php-fusion footer ?

    We don't officially support 3rd party scripts so I'm moving this to site management.

    -Corey

  3. #3
    Ace Frye is offline x10Hosting Member Ace Frye is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    4

    Re: ads in php-fusion footer ?

    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.

+ Reply to Thread

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  4. Don't Use Php Fusion!
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 15
    Last Post: 01-14-2006, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers