Welcome To Snipplr


Everyone's Recent Snippets



1 ... 219 220 221 222 223 ... 553
Code taken from comment by 'William Jockusch' in the URL.
1 3655 posted 15 years ago by yannxou
0 1491 posted 15 years ago by focal55
Put in /sites/default/settings.php
0 1406 posted 15 years ago by resting
0 1038 posted 15 years ago by closer
1 1473 posted 15 years ago by focal55
Automatically add a class to the body tag on each page. Remember to add <?php> to your body tag in the page.tpl.php file. You can also override or insert PHPTemplate variables into the templates with this function.
1 1413 posted 15 years ago by focal55
0 1227 posted 15 years ago by focal55
0 1371 posted 15 years ago by focal55
0 1384 posted 15 years ago by focal55
Drupal Messages with a nice green color
1 1524 posted 15 years ago by focal55
Drupal messages with a nice orange color
1 1427 posted 15 years ago by focal55
Just my personal favorite defaults
1 1396 posted 15 years ago by focal55
1 1451 posted 15 years ago by focal55
0 1291 posted 15 years ago by focal55
this thing works except of course for IE which makes the bold text make a little jump like effect in the end. If anyone has a solution please let me know :) cheers! Johanna
0 1281 posted 15 years ago by epictree
0 1272 posted 15 years ago by ichnoweb
Simple function that filters out any duplicate items in an array.
7 3572 posted 15 years ago by Nettuts
When adding a link to a form say for instance a login form you can use drupal_get_destination() to return the user to the page they were on when they finish loging in. This show you how to do this programatically in a link l(); function.
0 1556 posted 15 years ago by Onfire60
Not extensively tested, but seems to work in my sample project. uses the class I posted here: http://www.snipplr.com/view/46669/minimist-c-errorlogging-class/
1 3258 posted 15 years ago by kyrathaba
Resize images that are greater than 800x600 and place them in the "small" directory.
0 1453 posted 15 years ago by Carolyne
Found on the Ubuntu forum: http://ubuntuforums.org/showthread.php?t=1355021 Renames files to 0001.jpg, 0002,jpg etc You can insert a prefix here: "prefix-$j.jpg"
0 1368 posted 15 years ago by Carolyne
0 1320 posted 15 years ago by hejaaa
1 1813 posted 15 years ago by hejaaa
0 1450 posted 15 years ago by bionic
Right at the bottom
1 1950 posted 15 years ago by bionic
Improving WordPress performance with changes to .htaccess
1 1378 posted 15 years ago by sdxxx
"We should always be looking for ways to improve the functionality of our blogs. One of the easiest ways to improve our blog functionality and speed is to leverage browser caching."
1 1723 posted 15 years ago by sdxxx
1 ... 219 220 221 222 223 ... 553