Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Dacubz
Worker
Worker



Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois

PostPosted: Mon Sep 25, 2006 8:49 pm Reply with quote

I'm pulling my hair out trying to make a block out of this:

<scr ipt language='JavaScript' type='text/javascript'>
<!--
var m3_p = location.protocol=='https:'?'https:':'http:';
var m3_u = location.protocol=='https:'?'//www.the-epn.com/delivery/ajs.php':'//www.the-epn.com/delivery/ajs.php';
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.phpAds_used) document.phpAds_used = ',';
document.write ("<" + "script language='JavaScript'" );
document.write ("type='text/javascript' src='");
document.write (m3_p + m3_u + "?n=aa1d584e");
document.write ("&zoneid=80&withtext=1&block=1&blockcampaign=1");
document.write ("&exclude=" + document.phpAds_used);
document.write ("&loc=" + escape(window.location));
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ('&r=' + m3_r);
document.write ("&ct0=" + escape(document.phpAds_ct0));
document.write ("'><" + "/script>");
//-->
</scr ipt>
<noscript><a href='http://www.the-epn.com/delivery/ck.php?n=aa1d584e' target='_blank'><img src='http://www.the-epn.com/delivery/avw.php?zoneid=80&n=aa1d584e' border='0' alt='' /></a></nos cript>
I've used Dispal's creator, but no help. Can anybody enlighten me as to how this can be done?
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Sep 26, 2006 4:14 am Reply with quote

well stop pulling your hair out..
there are easier ways...

first make your block like this..

<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
ob_start();
include("ads.html");
$output = ob_get_contents();
ob_end_clean();
$content = $output;
?>



then put the java code in a ads.html page,upload that to the block folder and your done...
you should publish the block as center block.
 
View user's profile Send private message
Dacubz







PostPosted: Tue Sep 26, 2006 9:20 pm Reply with quote

It worked like a charm! Once again you've helped me greatly Hitwalker., thanks again! Cheers
 
hitwalker







PostPosted: Wed Sep 27, 2006 3:48 am Reply with quote

YW Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©