I'm trying to publish affiliate ads (simple line java script code) via the text type. Text field is configured to use Full HTML with no Wysiwyg enabled. Normal text is displayed OK. If I made custom block with the javascript code it display the AD ok too.
Its there something I could do, to display the JS ads through SimpleAds?

Thanks a lot for answer.

Edit: On Ad node the JS ad execute and display as it should. But in block it doesnt. I tryed to turn off the ad rotation, but with no avail. Then I tryed the change of simpleads_block.tpl.php according to your advice in http://drupal.org/node/1368346#comment-5354452, ads strated to show up in appropriate block, but the rotation stops working - it show all ads in the group at once.

Comments

minnur’s picture

Status: Active » Needs review
veronicaseveryn’s picture

Status: Needs review » Active

Simple Ads module will give javaScript "Uncaught ReferenceError: _simpelads_load is not defined " in simpleads_block.tpl.php in Zurb Foundation Theme and the advertisement images will not load at all. Tried to run the same ad block in Bartik theme (basically, switched to another theme) - no issues at all, everything runs as supposed to (images load and rotate without any exceptions from javaScript side). What might be the issue?

minnur’s picture

@nika_severin, probably jQuery version incompatibility.

kevinquillen’s picture

Nope - the problem is that SimpleAds injects ads with Javascript. Themes like Zurb that load all scripts from the footer - simpleads javascript functionality has not yet been loaded.

Go into the template.php of your Zurb subtheme, copy in the hook_js_alter from the Zurb base theme, and change the scope to header. Clear the cache- SImpleAds will work.

grip media’s picture

The auto rotate function does not work with Zurb Foundation Theme...

will the fix suggested by kevinquillen work?

thanks!

cimo75’s picture

Hi
I am having the same problem trying to ad an Adsense ad to a simplead block. The Adsense ad works just fine when viewed in its node page but it doesn t show up when ebedded in a simplead block.
Any idea how to fix this?
S.

kevinquillen’s picture

Any javascript errors in the console?

cimo75’s picture

cimo75’s picture

Issue summary: View changes

Added some more information to clarify the problem.

minnur’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)