How to insert ads in...

Status
Not open for further replies.

HackerDragon

New Member
Messages
14
Reaction score
0
Points
0
Hi! I have a .php site (http://hackylive.exofire.net) and I know I have the ads on the site, but it is in a banner at the bottom of hte page. I don't have to scroll down at all to see it, but maybe I am just using a computer with better screen resolution. If this is no all right, how do I move it up to the top? The php code I am using is:

<?php
function ads_getmoduleinfo(){
$info = array(
"name"=>"Ads",
"author"=>"`%Simon Welsh",
"version"=>"1.0.0",
"category"=>"General",
);
return $info;
}
function ads_install(){
debug("Installing module.");
module_addhook("footer-home");
return true;
}
function ads_uninstall(){
debug("Uninstalling module.");
return true;
}
function ads_dohook($hookname, $args){
global $session;
switch($hookname){
case "footer-home":
rawoutput("<div align='center' ><script type=\"text/javascript\" src=\"http://x10hosting.com/adserve.js?Hacky\"></script></div>");
break;
}
return $args;
}
?>
 

matfor1

New Member
Messages
54
Reaction score
0
Points
0
vWar. I figure since x10 is free, most clan sites use free hosting.... I dunno if it's worth your time, since I don't know anybody who uses it... I do, though! If ya like I'll figure it out myself and post a tutorial?
 

vinlec

New Member
Messages
2
Reaction score
0
Points
0
Isn't it possible to incorporate those ads directly on the script installer that you offer??
 

laupkram

New Member
Messages
32
Reaction score
0
Points
0
just go to your account panel and look for the link "advertisement codes"
 

ziggyx2003

New Member
Messages
5
Reaction score
0
Points
0
To Esteban,

Thank you very much for your ad in coppermine instructions. Worked beautifully.

Zig
 
Status
Not open for further replies.
Top