|
From: shane <sh...@lo...> - 2006-08-16 22:16:38
|
On Aug 16, 2006, at 5:42 PM, Naveen Garg wrote: > Thanks Shane, > that worked beautifully: http://www.slash.golguppe.com/article.pl? > sid=06/08/09/1828229 > > I would also like to be able to put story specific scripts / ads > such as this: > > <script type="text/javascript"><!-- > google_ad_client = "xxxxxx"; > google_ad_width = 120; > google_ad_height = 240; > google_ad_format = "120x240_as_rimg"; > google_cpa_choice = "xxxxx"; > google_ad_channel = "xxxxx"; > //--></script> > <script type="text/javascript" src="http:// > pagead2.googlesyndication.com/pagead/show_ads.js "> > </script> > > ;;is this possible with: > > replace into vars (name,value) values ('approvedtags_admin','b|i|p > |br|a|ol|ul|li|dl|dt|dd|em|strong|tt|blockquote|div|ecode|img|hr|big| > small|sub|sup|span|dfn|code|samp|kbd|var|cite|address|ins|del|h1|h2| > h3|h4|h5|h6|table|thead|tbody|tfoot|tr|th|td|pre|slash|center|object| > param|embed|script'); > > ;followed by > > update vars set value=concat(value,' > script:type,google_ad_client,google_ad_width,google_ad_height,google_a > d_format,google_cpa_choice,google_ad_channel') where > name='approvedtags_attr_admin'; > > You would need the 'script' tag to be allowed, and then an attributes of 'type' and 'src'. The first insert looks OK for this. The second you'd need script:type,src... etc. Shane -- My slashcode stuff: http://slash.lottadot.com/ Slashcode faq: http://slash.lottadot.com/slash-faq How to ask a question: http://www.catb.org/~esr/faqs/smart- questions.html#before |