🌍
English
This shows you the differences between two versions of the page.
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> |