AD code in phpNuke!?

Status
Not open for further replies.

Vr3nuhm

New Member
Messages
172
Reaction score
0
Points
0
I use phpNUKE... but how can I place the corporate banner at the top of every page??
 

Dark.Cobra

New Member
Messages
62
Reaction score
0
Points
0
o0slowpaul0o said:
Just place it in the footer.

Hast to be at the top of every page.

In both nuke's (like with most CMS) there's banner options. I cant remember which one of the two, (i think its PHP-Nuke) it allows you to use your own coding for a banner. Go to the admin control and look under "Banners". If my memory is correct, it should place it at the top of every page.

If you're still developing the site and its not functional yet, you could try e107 which allows easy set-up of the ads.
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
Dark.Cobra said:
o0slowpaul0o said:
Just place it in the footer.

Hast to be at the top of every page.

In both nuke's (like with most CMS) there's banner options. I cant remember which one of the two, (i think its PHP-Nuke) it allows you to use your own coding for a banner. Go to the admin control and look under "Banners". If my memory is correct, it should place it at the top of every page.

If you're still developing the site and its not functional yet, you could try e107 which allows easy set-up of the ads.

Thats very truth. I bet you are a fan of e107 too :happy:
 

repusmod

New Member
Messages
502
Reaction score
0
Points
0
It is easy... You have to put it in "header.php" and the add will apear on all pages you have and that people can see..

Header.php top code without ad
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

Header.php top code with ad
Code:
<?php
echo "<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>\n"; echo "<script language='JavaScript' type='text/javascript'>\n"; echo "<!--\n"; echo "if (!document.phpAds_used) document.phpAds_used = ',';\n"; echo "phpAds_random = new String (Math.random());\n"; echo "phpAds_random = phpAds_random.substring(2,11);\n"; echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n"; echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n"; echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n"; echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n"; echo "if (document.referrer)\n"; echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n"; echo "document.write (\"'><\" + \"/script>\");\n"; echo "//-->\n"; echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'> <img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a> </noscript></center>\n";
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

Ad over content or if you want in middle.

Header.php bottom without ad
Code:
online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}

?>

Header.php bottom witht ad
Code:
online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}
echo "<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'> </script>\n"; echo "<script language='JavaScript' type='text/javascript'>\n"; echo "<!--\n"; echo "if (!document.phpAds_used) document.phpAds_used = ',';\n"; echo "phpAds_random = new String (Math.random());\n"; echo "phpAds_random = phpAds_random.substring(2,11);\n"; echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n"; echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n"; echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n"; echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n"; echo "if (document.referrer)\n"; echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n"; echo "document.write (\"'><\" + \"/script>\");\n"; echo "//-->\n"; echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'> <img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a> </noscript></center>\n";
?>

That is how you have to do... Good Luck..
 
Status
Not open for further replies.
Top