Posted by nezroy on March 22, 2007 at 3:26am
Jump to:
| Project: | Openads |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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?
Comments
#1
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
<?phpprint $scripts;
?>
in your template file? Are jquery.cs and drupal.js included?
#2
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
"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
Nema Problema :-)
#5