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 -> phpnuke 7.5
Author Message
mb24335
New Member
New Member



Joined: Nov 24, 2004
Posts: 4

PostPosted: Wed Nov 24, 2004 7:59 pm Reply with quote

Guys,

Am having a problem with a block in Nuke 7.5 where when I 'view' it in the Block Admin panel, it shows fine but when I activate it, no trace of it appears.

Not having an issue with any other blocks...

Can you think of any reason this could happen?

The text of the block file is:

Code:


<?php

$content = <<<_BIGAD_
  <scr ipt language='JavaScript' type='text/javascript' src='http://xxx.xxx.com/phpads/adx.js'></scri pt>
  <scr ipt 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://xxx.xxx.com/phpads/adjs.php?n=" + phpAds_random);
     document.write ("&amp;what=width:400,height:200&amp;source=newDOC&amp;target=_blank&amp;withText=1");
     document.write ("&amp;exclude=" + document.phpAds_used);
     if (document.referrer)
        document.write ("&amp;referer=" + escape(document.referrer));
        document.write ("'><" + "/scr ipt>");
   //-->
  </scr ipt><nos cript><a href='http://xxx.xxx.com/phpads/adclick.php?n=a114af5b' target='_blank'><img src='http://xxx.xxx.com/phpads/adview.php?what=width:400,height:200&amp;&amp;n=a114af5b' border='0' alt=''></a></noscr ipt>
_BIGAD_

?>


Thanks in advance...
-Michael
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Nov 24, 2004 9:47 pm Reply with quote

You are missing a ; after the closing _BIGAD_. Is that just a posting error?
 
View user's profile Send private message
mb24335







PostPosted: Wed Nov 24, 2004 9:54 pm Reply with quote

Well not a posting error, as I've tried it both with and without (again, works when 'viewing' in the admin console).. I had seen an example without the closing block and I had given it a try just for kicks.. Smile
 
Raven







PostPosted: Wed Nov 24, 2004 9:58 pm Reply with quote

Well, you do have to have it, regardless as to whether it works.

If you will post the real code it will be easier to debug it. I can't try it w/o the real deal.
 
mb24335







PostPosted: Wed Nov 24, 2004 10:18 pm Reply with quote

No worries,

Here's the code in it's entirety:

Code:


<?php

$content = <<<_BIGAD_
<scri pt language='JavaScript' type='text/javascript' src='http://67.18.178.164/phpads/adx.js'></scri pt>
<sc ript 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://67.18.178.164/phpads/adjs.php?n=" + phpAds_random);
  document.write ("&amp;clientid=125&amp;source=test&amp;target=_blank");
  document.write ("&amp;exclude=" + document.phpAds_used);
  if (document.referrer)
     document.write ("&amp;referer=" + escape(document.referrer));
     document.write ("'><" + "/scr ipt>");
//-->
</scr ipt><no script><a href='http://67.18.178.164/phpads/adclick.php?n=a0b9e6f8' target='_blank'><img src='http://67.18.178.164/phpads/adview.php?clientid=125&amp;source=test&amp;n=a0b9e6f8' border='0' alt=''></a></no script>
_BIGAD_;

?>


Thanks again....
M
 
Raven







PostPosted: Thu Nov 25, 2004 11:01 am Reply with quote

I tried it and I get a block with an image and the word FABLE on it. When I click on it I'm taken to microsoft.com.
 
mb24335







PostPosted: Thu Nov 25, 2004 12:42 pm Reply with quote

Raven wrote:
I tried it and I get a block with an image and the word FABLE on it. When I click on it I'm taken to microsoft.com.


Yep, thats waht it's supposed to do.... clearly something is screwed up on my side as it's just not getting picked up when i activate it... i just wanted to make sure there was nothing obviously wrong with the block...tks for testing..

-Michael
 
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 -> phpnuke 7.5

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 ©