Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code matches querysting data to form feilds on the page based on the feild name.
I've added the example querystring to the body of the page.
Found at: http://codingforums.com/showthread.php?t=198419
Code by: Old Pedant
0
987
posted 14 years ago by Carolyne
Drupal forms have their radio button options vertical (one on each line) by default. This will put them horizontally inline.
0
1302
posted 14 years ago by picxelplay
You can simply put it in your reset stylesheet. It visualizes the classic rotating gif while the document's images are coming from the server at page load.
3
1002
posted 14 years ago by claudiowebdesign
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
0
987
posted 14 years ago by cwd
Just a bit of essential code lines to start everytime from. // I don't use it :P
5
1219
posted 14 years ago by claudiowebdesign
Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.
0
1060
posted 14 years ago by madr
If you're importing nodes from a file and have pathauto setup, the existing paths for the nodes will be rewritten with pathauto. To avoid this, simply add the following to the node export array for each node:
0
905
posted 14 years ago by jonathanpglick
Sale Price/Variation custom
this code just work if all variation price is a same as product price
0
612
posted 14 years ago by haftim
Sale Price/Variation custom
this code just work if all variation price is a same as product price
0
554
posted 14 years ago by haftim
Counts the number of times that a file has been downloaded, using PHP and mySQL
0
871
posted 14 years ago by eme_dlr