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
Comment #1
minnur commentedComment #2
veronicaseveryn commentedSimple 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?
Comment #3
minnur commented@nika_severin, probably jQuery version incompatibility.
Comment #4
kevinquillen commentedNope - 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.
Comment #5
grip media commentedThe auto rotate function does not work with Zurb Foundation Theme...
will the fix suggested by kevinquillen work?
thanks!
Comment #6
cimo75 commentedHi
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.
Comment #7
kevinquillen commentedAny javascript errors in the console?
Comment #8
cimo75 commentedhttp://drupal.org/node/1368346#comment-5354452 seems to work for me
Comment #8.0
cimo75 commentedAdded some more information to clarify the problem.
Comment #9
minnur commented