Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Had many people ask me how I display all posts in a category when they click on the category link in the header @<a href="http://www.vagrantradio.com">http://www.vagrantradio.com</a>.
There's a lot more involved, but here's the quick and dirty;
0
1868
posted 16 years ago by vagrantradio
Add a classname of js to the document body to style browsers with javascript enabled differently
1
1512
posted 16 years ago by lwcooper
By using hook_form_alter, you can add your own callback functions to any Drupal form.
These functions will be called when Drupal validates the form and when Drupal submits it.
In example below, a module called 'simple_checkout' adds its own hand...
1
1823
posted 16 years ago by berkes
JavaScript
jQuery LimitCharWidth: Allows you to collapse the inner text so that it adjust into specific width.
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1
1828
posted 16 years ago by jaff
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings.
Usage: Ass...
0
1249
posted 16 years ago by rareyman
Just a simple snippet on how to reverse a string using a for loop.
0
1420
posted 16 years ago by alvincrespo