Hey guys this is really wierd

Status
Not open for further replies.

blade

New Member
Messages
272
Reaction score
0
Points
0
hey guys hows everyone , any way problem is i got me a new theme k for my site and its nice an all but im gonna keep it But! when the site loads you cant see your banner its there like if you go on the site and see as its loading up its there but when the theme kicks in it disapears . ino i done it right its just been since i got the theme up and i really wanna keep this theme cause i like it but if you guys dont see the banner your gonna suspend me is there a way round this little mishap probably if so id really like to no ....o and btw the link is www.dj-blade.tk

and any help will be apreciated Thanks all
 

oab

New Member
Messages
918
Reaction score
0
Points
0
i cant see the ads at all when the site is loading....

whats your site about?
 

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36
the ads is at the bottom... you need to put it in the header file not the footer file...
 

blade

New Member
Messages
272
Reaction score
0
Points
0
its in the header file im not that dumb lol but i can see it at the top wen its loading but the theme covers it and i cant get it to be veiwed again thats why im here asking this question!

Heres what my_header.php says:

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2004 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. */
/************************************************************************/

include("ipban.php");

/*
This file is to customize whatever stuff you need to include in your site
when the header loads. This can be used for third party banners, custom
javascript, popup windows, etc. With this file you don't need to edit
system code each time you upgrade to a new version. Just remember, in case
you add code here to not overwrite this file when updating!
Whatever you put here will be between <head> and </head> tags.
*/

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





and ino for a fact that this is completly right cause on my last theme it works brilliant but i really like the theme i have now and for some reason it just dont agree with the adds if u no of a way i can get it to show cause i really dont wanna be suspeneded or anything so please help out ;)
 
Last edited:

blade

New Member
Messages
272
Reaction score
0
Points
0
any kind of help would be nice guys ???? ( sorry for double post )
 

blade

New Member
Messages
272
Reaction score
0
Points
0
Thanks lol would be good if i could get my banner up so they dont suspend me ( im not saying u will im just saying thats what it could resort to sonner or l8r) but thanks for your comments ;)
 

GameAccounts

New Member
Messages
40
Reaction score
0
Points
0
I don't code really at all, but should it be like this:


Code:
<center><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></center>
 
<?php

/************************************************** **********************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2004 by Francisco Burzi */
/* [url="http://phpnuke.org/"]http://phpnuke.org[/url] */
/* */
/* 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. */
/************************************************** **********************/

include("ipban.php");

/*
This file is to customize whatever stuff you need to include in your site
when the header loads. This can be used for third party banners, custom
javascript, popup windows, etc. With this file you don't need to edit
system code each time you upgrade to a new version. Just remember, in case
you add code here to not overwrite this file when updating!
Whatever you put here will be between <head> and </head> tags.
*/
?>

i might be wrong, but doesnt the ad need to load before phpnuke? if not..look for a module that adds a banner slot in your php nuke.
 

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36
blade i will help you first thing tomorrow.. i also have php nuke site... set me a PM that will pop up when am next online... i will have all the details and where you can put the banner correctly..
 

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36
the file below is called header.php it is in the folder where the main index.php is located
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);
}
[B]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";[/B]

?>
 

blade

New Member
Messages
272
Reaction score
0
Points
0
nope that dont work at all m8 sorry anything else ? this is really frustrating!

Edit: rite now they show but on www.dj-blade.tk the home page its at the bottom and i didnt want it at the bottom can someone tell me a tag i can stick on to make it at the top and not in the the theme :S
 

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36
In the pre post.. i had bolded the ads code... I have now moved it

the file below is called header.php it is in the folder where the main index.php is located
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 "<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";
    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);
}

?>
 

blade

New Member
Messages
272
Reaction score
0
Points
0
nope sorry now it dont work it shows me 2 banners when it loads up and they are hidden now as well so what am i gonna do now can corey auvee just go into my account and see i have it there they no il have it but i can understand they need to see it on the site thats ok i dont mind thats what i want but it just aint happenen :(

Edit: do this and ul see what i see www.dj-blade.tk and keep presing refresha nd look in the background and ul see the banners ok then watch the theme cover it
 
Status
Not open for further replies.
Top