Loading...
 

Tikiwiki-devel (mailman list mirror)


Tiki banners don't allow SCRIPT elements

posts: 3563

I logged a bug for this
(https://dev.tiki.org/tiki-view_tracker_item.php?itemId=6020) but maybe
someone has a quick fix... I've confirmed this bug in TIki 12 and 15
(although I was unable to create a Tiki Show instance when filing the
bug.

I want to create a Tiki Ad that uses a Google Ad element.

So, I create a new Tiki banner: tiki-edit_banner.php

In the Select ONE method for the banner: field, I selected Use HTML and
added the following script (from Google Ads):

<script type="text/javascript"><!-- google_ad_client = "ca-pub-3913918000422534"; /* Info Lettres 8 à 15 */ google_ad_slot = "8790064474"; google_ad_width = 728; google_ad_height = 90; //-->

</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> However, Tiki adds the to my <SCRIPT> elements, effectively breaking the ads. I have the HTML purifier disabled, but Tiki still ads the <X> to my banner ad HTML. Maybe this is an easy fix? Thanks, -R -- Rick Sapir http://ricksapir.com Twitter: @ricksapir Creating content — Managing information ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ TikiWiki-devel mailing list TikiWiki-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

posts: 2695 United States

This workaround might work for you...
Look at the code on...
http://sharebutton.net/

See how they split the closing script tag?

HTH
WizarDave

On Wed, Jul 6, 2016 at 8:17 AM, Rick Sapir <rick@ricksapir.com> wrote:

> I logged a bug for this
> (https://dev.tiki.org/tiki-view_tracker_item.php?itemId=6020) but maybe
> someone has a quick fix... I've confirmed this bug in TIki 12 and 15
> (although I was unable to create a Tiki Show instance when filing the
> bug.
>
> I want to create a Tiki Ad that uses a Google Ad element.
>
> So, I create a new Tiki banner: tiki-edit_banner.php
>
> In the Select ONE method for the banner: field, I selected Use HTML and
> added the following script (from Google Ads):
> > <script type="text/javascript"><!-- > google_ad_client = "ca-pub-3913918000422534"; > /* Info Lettres 8 à 15 */ > google_ad_slot = "8790064474"; > google_ad_width = 728; > google_ad_height = 90; > //-->
> </script> > <script type="text/javascript" > src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> > > > However, Tiki adds the to my <SCRIPT> elements, effectively breaking > the ads. > > I have the HTML purifier disabled, but Tiki still ads the <X> to my > banner ad HTML. > > > Maybe this is an easy fix? > > Thanks, > > -R > > > -- > Rick Sapir > http://ricksapir.com > Twitter: @ricksapir > > Creating content — Managing information > > > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > ___ > TikiWiki-devel mailing list > TikiWiki-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > -- God Bless WizarDave Akins Webmaster http://Infowars.wiki/ Because there's a war on for your mind... http://MajorNews.com/ Government and Utiltity Knowledge Base (Very Early Stages) http://JESUSaves.com/ OnLine Christian Community http://jabi.com/ Just Another Bright Idea - Pronounced jab eye


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.