I moved all of my js files to the bottom of the page for front-end performance improvement. After I did that, ads were no longer showing due to following js error:
ReferenceError: Can't find variable: _simpelads_load
This is because now simpleads.js is loaded after the function above called from templates/simpleads_block.tpl.php.
(for me)
<script type="text/javascript">
_simpelads_load('.simpleads-<?php print $tid; ?><?php if ($prefix) : ?>-<?php print $prefix; ?><?php endif; ?>', <?php print $tid; ?>, <?php print check_plain($ads_limit); ?>);
</script>
<?php
drupal_add_js("_simpelads_load('.simpleads-" . $tid . (($prefix) ? "-" . $prefix : "") . "', " . $tid . ", " . check_plain($ads_limit) . ");", array('type' => 'inline', 'group' => JS_THEME));
?>
*** Why is it _simpelads_load instead of _simpleads_load?
Closed: won't fix
1.9
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.