You may have spotted that for some Drupal themes in some versions of Firefox the titles on fieldsets are sometimes not there ... This little CSS snippet should solve the problem ... fieldset legend {display:block; }
Drupal's handling of RSS's feeds is generall excellent, BUT sometimes it's nice to add a bit of explanation text to the standard orange feed icon. Add this little snippet to your template.php file and you can add a bit of text to your Drupal feed icon. function phptemplate_feed_icon($url) { if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) { return ''. $image. ' RSS feed'; } }
There are times when it's necessary to add some additional markup to a particular menu item, for example a link to DrupalMinds might need a strong tag around the Drupal portion. This can be achieved in a couple of ways, both using a very similar theme override. Option 1 The first method is to allow HTML in the title of all menu items - while this is nice and easy, it does mean that you...
File this one under "slightly annoying but can't be helped", after a fun day of upgrading sites to 5.4 we find that 5.5 has been released! Fixing a fairy hefty bug in the taxonomy term RSS feeds introduced by 5.4 you can't really not upgrade ... at least we know what we will be doing today :)
A quick one that came up today, we all know about the login redirect module, which automatically redirects the user to a specific page when they login ... but what about at logout? Its a common scenario, you want to display a nice 'come back soon' message when one of your lovely users does the unthinkable and logs out. One solution would be to create a new module, implement hook_user and then invoke a drupal_goto...
Its been a day for Drupal releases. The most important for our clients is the release of Drupal 5.4, which fixes a possible SQL injection vulnerability (its one of those obscure ones which shouldn't affect too many people hopefully). More exciting for us developers is the release of Drupal 6 Beta 4 (download, play, test and submit bugs people!), there can't be many more betas before the big day ...
Well, who would have thought it - the tiny village of Barrow Gurney is busy making tech news! http://science.slashdot.org/article.pl?sid=07/12/04/2148215
We are excited to get the chance to work with the guys down at companyX on a number of exciting Drupal projects. We can't go into too many details yet, but watch this space ...
By default the Drupal event module will provide a nice calander block, listing the days of the week accross the top using 3 letter abbreviations (mon, tue etc). This little theme snippet will override this default behaviour and display the first letter of each day of the week (i.e. M T W) etc. Pop the following into your template.php file and you should be in business function phptemplate_event_calendar_month($op, $header, $rows, $attributes = array(), $caption =...
TinyMCE has a habit of popping up right where you don't want it - the log field on a node edit page is a good example. Lucklily it is a relatively easy job to theme out tinymce for a particular textarea. The following theme override should go into your template.php file function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) { switch($textarea_name){ case 'nodewords-description': case 'edit-nodewords-description': unset($init); return $init; break; default: return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running); } } Just...