Loading...
 

Tiki banners do not allow SCRIPT elements (even with HTML purifier disabled)

Status
Open
Subject
Tiki banners do not allow SCRIPT elements (even with HTML purifier disabled)
Version
12.x
15.x Regression
Category
  • Error
Feature
Banner
Resolution status
New
Submitted by
Rick Sapir / Tiki for Smarties
Lastmod by
Rick Sapir / Tiki for Smarties
Rating
(0)
Description

I want to use Tiki's banner system to manage hosted ads (such as Google Ads).

I created 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">
</script>


Upon saving, Tiki adds <X> to my code, breaking the SCRIPT elements:

<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">
</script>


This happens even if I HTML Purifier disabled.


Tiki should allow full HTML (including SCRIPT elements) within the HTML box for Ads. I understand the security implication of allowing SCRIPT elements, but only users with permission to create ads can do this.



I tried creating a SHOW instance, but received the following error:
Tiki Installer missing third party software files

Workaround

My workaround is to have Google Ads in a module and apply them to the pages by using the MODULE plugin. However, I can no longer:

  • Track clicks (from within Tiki)
  • Show/display the ad by time/date

Importance
8
Easy to solve?
9
Priority
72
Rating (deprecated)
(0)
Ticket ID
6020
Created
Wednesday 06 July, 2016 13:02:25 GMT-0000
LastModif
Wednesday 06 July, 2016 13:10:47 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools