Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:changes_in_2.5 [2013/01/30 12:19]
mistic100 [MySQLi]
dev:changes_in_2.5 [2013/05/13 14:32] (current)
plg [Jquery UI 1.9] jquery.ui.button must be declared to use jquery.ui.dialog
Line 8: Line 8:
 <code> <code>
 {if !empty($cats_navbar)} {if !empty($cats_navbar)}
-  {assign var=navbar value=$cats_navbar} +  {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
-  {include file='navigation_bar.tpl'|@get_extent:'navbar'}+
 {/if} {/if}
 </code> </code>
Line 17: Line 16:
 <code> <code>
 {if !empty($thumb_navbar)} {if !empty($thumb_navbar)}
-  {assign var=navbar value=$thumb_navbar} +  {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$thumb_navbar}
-  {include file='navigation_bar.tpl'|@get_extent:'navbar'}+
 {/if} {/if}
 </code> </code>
Line 45: Line 43:
 We'll have backward naming compatibility for 2.5 version only! We'll have backward naming compatibility for 2.5 version only!
  
 +If you use jquery.ui.dialog, you will have to explicitely require jquery.ui.button too.
 ===== Password hash ===== ===== Password hash =====
  
Line 133: Line 132:
 $conf['pem_languages_category'] = 8; $conf['pem_languages_category'] = 8;
 </code> </code>
 +
 +Protection of originals images:
 +<code>
 +// one of '', 'images', 'all'
 +//TODO: Put this in admin and also manage .htaccess in #sites and upload folders
 +$conf['original_url_protection'] = '';
 +</code>
 +the value 'all' is not recommended if you have videos
  
 ===== MySQLi ===== ===== MySQLi =====
-We introduce MySQLi support in Piwigo 2.5, replacing MySQL (still available as a fallback). The only main change is that ''pwg_db_connect()'' doesn't return the ''link_identifier'' anymore. (it was not useable with other SQL methods anyway)+We introduce MySQLi support in Piwigo 2.5, replacing MySQL (still available as a fallback). 
 + 
 +  * ''pwg_db_connect()'' doesn't return the ''link_identifier'' anymore. (it was not useable with other SQL methods anyway) 
 +  * **mysql_* functions are broken** 
 +  * mysql_fetch_array must be replaced by pwg_db_fetch_row or pwg_db_fetch_assoc 
 + 
 +See details on [[http://piwigo.org/forum/viewtopic.php?id=21514|forum,     [Piwigo 2.5+] use of mysql_* function is forbidden]] 
 + 
 + 
 +===== Ajax loading enhancement [themes] ===== 
 + 
 +New theme variable 
 +  'img_dir'      => 'themes/default/images',  
 +to separate icons and images 
 + 
 +New icons 
 +  * for thumbnails.tpl, mainpage_categories.tpl and comment_list.tpl: {$themeconf.icon_dir}/img_small.png displays a "neutral picture" to notify the visitor something should be there during the Ajax loading of the thumbnails 
 +  * for thumbnails.tpl, mainpage_categories.tpl, picture_content.tpl and comment_list.tpl: {$themeconf.icon_dir}/errors_small.png displays an error picture if the Ajax loading failed 
 +  * for thumbnails.tpl, mainpage_categories.tpl, picture_content.tpl and comment_list.tpl: {$themeconf.img_dir}/ajax_loader.gif display a animated gif to show that at least one picture is loading 
 + 
 +New div 
 +  * for thumbnails.tpl, mainpage_categories.tpl and comment_list.tpl: <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> is the customizable div which display the gif: by default the position is absolute at the top right corner 
 + 
 +Check the diff of those tpl files for further info 
 + 
 +If your theme has $themeconf['load_parent_css'] = false (like Simple), then add in your theme.css: 
 +<code css>/* Loader gif new in 2.5 */ 
 +.loader { 
 +  display: none; 
 +  position: fixed; 
 +  right: 0; 
 +  bottom: 0; 
 +}</code> 
 + 
 +To summarize, 3 new icons customizable and 4 tpl files changed. **These are just enhancements, so your old 2.4 code will still work**
 
Back to top
dev/changes_in_2.5.1359544754.txt.gz · Last modified: 2013/01/30 12:19 by mistic100
 
 
github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact