Profile
Achievement
MikeyLikesIt's Recent Snippets
- All /
« Prev 1 Next »
In drupal, you can configure custom formats at:
http://yourdomain.com/admin/settings/date-time/formats/add
You can also use these in a custom php function like:
<?php>created, 'custom', "F jS, Y"); ?>
To look up more options see http://php.ne...
1
653
posted 14 years ago by MikeyLikesIt
This snippet allows admins to create menu items which do not link anywhere. This is most useful in situations where one wants to have dropdown menus where the parent item should not be a link.
This same method could be used to create non-linking...
1
820
posted 14 years ago by MikeyLikesIt
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.
find . -type d -exec chmod 755 {} \;
Similarly, the following will chmod all files only (and ignore the directories):
find . -...
1
818
posted 14 years ago by MikeyLikesIt
This is a method that I use to easily wrap an HTML container with nice curly quotes. I much prefer this method over using images because the quotes can be easily stylized using css fonts, colors, and sizes. Also, the markup is semantically correct.
1
975
posted 14 years ago by MikeyLikesIt
note that for the corners to work in IE, you need to install the htc code from http://code.google.com/p/curved-corner/
.curved {
-moz-border-radius:10px; /* Firefox */
-webkit-border-radius:10px; /* Safari and chrome */
-khtml-border-r...
4
973
posted 14 years ago by MikeyLikesIt