Differences

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

Link to this comparison view

en:customization:branch_1.5 [2005/11/20 22:16]
212.180.111.144 new tip "Display only positive number of user comments"
— (current)
Line 1: Line 1:
-====== Layout ====== 
-===== Hide galery title ===== 
-in **default_layout.css** : 
-<code>#theHeader { 
-  display: none; 
-}</code> 
-===== Hide the "quickconnect" connection form in the menu bar ===== 
-in **default_layout.css** : 
-<code>FORM#quickconnect { 
-  display: none; 
-}</code> 
  
-===== Set the margin of the page ===== 
-in **default_layout.css** : 
-<code> 
-BODY { 
-    margin: 5px; 
-} 
-</code> 
- 
-====== Behaviour ====== 
- 
-===== Display only positive number of user comments ===== 
- 
-in **''include/category_default.inc.php''**, (line 136) replace 
-<code php>$template->assign_block_vars( 
-  'thumbnails.line.thumbnail.nb_comments', 
-  array('NB_COMMENTS'=>$row['nb_comments']));</code> 
-by 
-<code php>if ($row['nb_comments'] > 0) 
-{ 
-$template->assign_block_vars( 
-  'thumbnails.line.thumbnail.nb_comments', 
-  array('NB_COMMENTS'=>$row['nb_comments'])); 
-}</code> 
 
Back to top
en/customization/branch_1.5.1132525008.txt.gz · Last modified: 2009/03/07 22:13 (external edit)
 
 
github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact