Newbie question (6.4)

How do I paste ad code successfully into new blocks?....

Amazon - image etc appear in preview, but don't appear in block
Google - no preview, no block
Shopping Ads - appears on pages, etc, but not in new blocks, Negative word filter doesn't seem to work (Sony, etc)

thanks!
Michael the Frustrated
www.musementors.com

Comments

yelvington’s picture

Make sure you are using a filter that allows Javascript.

Michael Beechey’s picture

HTML code (Amazon, etc) shows fine in blocks and on node pages etc...

I'm using CCK...how do I put javascript code (ex Google) in a block/node? ...what filter do I use? (It works putting same code in the page...php file...)

thanks!

WorldFallz’s picture

One way to do it to set the input format to 'php code' and use the drupal_add_js function.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Michael Beechey’s picture

Sorry I'm a VeryNoob...where do I do those 2 steps?..I have the js snippet module, but still doesn't show.

thanks!

"The Earth is but one country and Mankind its citizens"
Bahá'u'lláh

WorldFallz’s picture

When you're adding a custom block, under the body textbox will be a collapsible fieldset named "input format". Expand it and select the 'php code' input format. If it doesn't appear there, you'll have to enable the php code module at admin/build/modules first. Then you can include your script with the drupal_add_js function I linked above (see the link for the exact syntax).

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Michael Beechey’s picture

Thanks for your patience!

OK for the first part..now....not sure how to use the syntax...where do I insert my script?

FYI :
http://drupal.org/project/jstools ..installed, but don't know how to use/access it...