This page details major change since the previous release (2.5), effects these might have on your code and what you can do about those.
Sharon to add details
Linda to add details
If you make heavy use of HTML in your report descriptions you may need to modify the whitelist options in config.php
/** * Allowed HTML tags in report description and other large text fields * * Formated is based on http://htmlpurifier.org/live/configdoc/plain.html#HTML.Allowed */ $config['allowed_html'] = "a[href|title],p,img[src|alt],br,b,u,strong,em,i,h2,h3,h4,h5,h6"; /** * Allowed iframe URLs in report description and other large text fields * * Formated is based on http://htmlpurifier.org/live/configdoc/plain.html#URI.SafeIframeRegexp */ $config['safe_iframe_regexp'] = '%^http://(www.youtube.com/embed/|player.vimeo.com/video/|w.soundcloud.com/player)%'; |
plugin::add_javascript() - use Requirements::js()
plugin::add_stylesheet() - use Requirements::css()
plugin::remove_javascript() - use Requirements::block()
Allows themes to specify CSS/JS files to include through readme.txt
Theme Name: Default Description: Version: 1.0 Author: Ushahidi Author Email: team@ushahidi.com Demo: http://www.ushahidi.com CSS: base,accordion,slider,style JS: |
If your main theme CSS file was name 'style.css' this will now be overriding the default style.css.
If you still need the default theme CSS to be included just rename your CSS file to something else.
The following CSS files will be included automatically: base.css, style.css, _default.css
To use a different CSS file name, add it to readme.txt in your theme.
If you have problems with CSS / JS compression after the upgrade, you can disable this feature in application/config/requirements.php
Review the github issue here:#792 .
For additional information, review the CSV upload guide and the XML Upload guide
Full details of changes are available in the changelog