
Useful and interesting modules for Drupal 6.xx + Tips and Tricks (Part III)
We continue what we started, and besides, over the time that has passed since the last review, many interesting modules have accumulated.
For those who missed the start, here are links to previous reviews: Part I and Part II
And according to tradition, advice.
For those who missed the start, here are links to previous reviews: Part I and Part II
- Autosave - automatic node saving;
- Better Formats - more flexible functionality for input formats, differentiation of use by role;
- Compact forms - the name speaks for itself: compact forms;
- Context - it is not entirely appropriate to compare with panels , but the point is the same: control and presentation of content on pages;
- Email registration - registration to a mailing address, not a nickname;
- Embedded Media Field - convenient insertion of images, audio and video;
- Facebook Connect - Log in to the site using Facebook ;
- Features - with the help of this module you can create your own modules for subsequent use on other sites (requires Spaces );
- Gravatar - Allows you to integrate Gravatar service into Drupal ;
- jwplayermodule - player from Longtail;
- Login Destination - controls the movement of pages after authorization;
- Monthly Archive by Node Type - Archive of entries, a necessary thing for a blog;
- Node form columns - the module allows you to place the contents of the form in columns;
- Save Draft - allows you to save the record as a draft;
- Todolist - a system for managing tasks and their distributions on Ajax;
- Twitter - allows you to send a saved post to Twitter;
- Vertical tabs - changes the appearance of node tabs to vertical;
- Views accordion - Display content as an accordion (JQuery accordion) using Views ;
- Views attach - the ability to attach a presentation to any type of material
- Views slideshow ddblock - create a slideshow using Views ;
- Views slideshow imageflow - Gallery as a slideshow;
- Views slideshow slider - content slider;
- Views slideshow - Slideshow of any type of material.
And according to tradition, advice.
We show the number of comments (if there are any, their number will appear; if not, nothing will appear, for example, this is done on Habré)
/**
* Preprocessor for theme('comment_wrapper').
*/
function ВАША_ТЕМА_preprocess_comment_wrapper(&$vars) {
$vars['hook'] = 'box';
$vars['attr']['id'] = 'comments';
$vars['attr']['class'] .= ' clear-block';
if ($vars['content'] && $vars['node']->type != 'forum' && $vars['node']->comment_count != 0) {
$vars['content'] = ''. t('Comments') .'
'. $vars['content'];
}
}
* This source code was highlighted with Source Code Highlighter.