Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
jasper1106
New Member
New Member



Joined: Aug 01, 2006
Posts: 11

PostPosted: Mon Sep 18, 2006 4:41 pm Reply with quote

Hi guys,

I have a javascript ad code to add to my site.

I have a left column -- stories -- right column

My $showbanner is above the stories.

I would like add the javascript code above the $showbanner.

The one problem is this code must be inserted between the site head tags to work.

How would I go about doing this?

Any help would be greatly received
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Mon Sep 18, 2006 7:02 pm Reply with quote

ok there are a few ways to do this...
but easiest way for you is to put it into your custom header.

here > > includes/custom_files/custom_head.php

the custom_head.php starts with <? and ends with ?>
after that you put the java part.
 
View user's profile Send private message
jasper1106







PostPosted: Tue Sep 19, 2006 5:03 am Reply with quote

Hiya Hit,

Thank you very much for your reply.

includes/custom_files/

I do not actually have a file called: custom_head.php

All thats located in that folder is an index sheet.

I have created a file :

<?

?>

javascript code is here


And uploaded it to the server.

The website loads but says "done with errors" and I have a gap at the top of my website.

Quote:
"line 17"
"ord is undefined"
"code 0"




This is between script tags at the top:

Code:
var axel = Math.random() + "";

var ord = axel * 1000000000000000000;





Line 17 of my code reads:


Code:
document.write('<A HREF="http://ad.doubleclick.net/jump/ak.site101.tmus/;tile=1;sz=728x90;ord=' + ord + '?" TARGET="_blank">');



___________

Now if I paste this into head tags on a standard .html document it works!

Sorry this is so complex I would paste the entire script but I found javascript wasn't allowed.

In my mind it's like phpnuke is clashing with the code. also I would need to echo it into the correct place above stories? Not sure how to do this though if you guys did get it to work.

Many Thanks!
 
hitwalker







PostPosted: Tue Sep 19, 2006 5:06 am Reply with quote

pm me some info where i can look..
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©