Ads in my PHPNuke header?

Status
Not open for further replies.

Jordan Knezevic

New Member
Messages
146
Reaction score
0
Points
0
Hey guys, my site is clanfbi.x10hosting.com and I'm waiting for it to be changed to o24.x10hosting.com, in the mean type i need some help adding the x10Corporate ad to my header beside the logo on the left (in the empty space to the right). Heres my header.php:

PHP:
<?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['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");

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

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
	echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }

    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    include("includes/my_header.php");
    echo "\n\n\n</head>\n\n";
    themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}

?>

And heres the ad code so you don't have to go and get it!

PHP:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:1&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->

</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>
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
A simple search for "php + ads" or even a quick look in the tutorials section would yield Placing Ads in Various Pages. You have to add to the ad code for it to work in PHP pages.

I will help you, but just realize that the support is for the actual ads. We are not really responsible for positioning the ad where you want. But basically the reason I'm saying this is because it's basically guesswork unless you actually make the website or have done it before. Just try sticking it in places like before an image header or something like that.
 

Jordan Knezevic

New Member
Messages
146
Reaction score
0
Points
0
My bad I was looking, must have missed that. :redface:

I need help putting the ads into my header. I do not know where to add them. The code for my header is in the first post. Can someone please add this into it so that it appears on my site header in the empty space to the left. My site is: http://o24.x10hosting.com/

Use the x10Corporate code that is in the link Chris provided for me.

Sincerely,
Jordan Knezevic
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
please be patient and do not bump within 24 hours, if possible :wink:
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
First of all, have you tried placing it in different places? Like I said, this is a guess work type of thing. You are going to have to try. If you did, then my bad, but just try then ask.
 
Status
Not open for further replies.
Top