Invoke not working?

nezroy - March 22, 2007 - 03:26
Project:Openads
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The default ad blocks put a commented out java script code in the source and that's about it. Nothing comes from it. I tried uncommenting it and also sourcing in the mmm.js (which doesn't actually appear to be added anywhere either yet) and still nothing. Am I missing something obvious or is the current release version just not done?

#1

gerd riesselmann - March 22, 2007 - 09:05

The invoke function creates code like this:

<script language="JavaScript" type="text/javascript"><!--
  az_adjs([Number],'[String]');
--></script>

Note that the HTML-comments (<!-- and -->) do not affect the JavaScript code. Additionally, the module places code like this in the head section:

<script type="text/javascript"><!--
  var az_channel = "[Some Text]";
  var az_u = "[Some Url]";
  var az_us = "[Some Url]";
  var az_js = "[Some File]";
--></script>

And includes the mmm.js JavaScript file.

If the mmm.js file is missing, you probably are missing a

<?php
print $scripts;
?>

in your template file? Are jquery.cs and drupal.js included?

#2

nezroy - March 22, 2007 - 11:22

Right, sorry, the just threw me off. Forgot it gets ignored in the script tag. Up way too late to be troubleshooting this kind of thing :) Turns out I just had the wrong code for the zone I wanted, which was the source of all my problems.

#3

nezroy - March 22, 2007 - 11:23

"The [blank] just threw me off" was supposed to be "The <!-- --> just threw me off". Did I mention I've been up a long time? :)

#4

gerd riesselmann - March 22, 2007 - 11:48
Status:active» fixed

Nema Problema :-)

#5

Anonymous - April 5, 2007 - 12:01
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.