Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
845
posted 14 years ago by MikeyLikesIt
Removes wordpress auto <p> tags from content...additional line to clean curly quotes as well.`
0
822
posted 14 years ago by scribbleitdesigns
Place in your theme's functions.php file. This removes the generator altogether, not just the version....making it more secure than simply removing the filter...
0
617
posted 14 years ago by scribbleitdesigns
This is a custom function to place in your theme's "functions.php" file that will override the typical 1.3.2 version of jQuery included in wordpress with the latest 1.4.2 version (and any future release for that matter). This does not effect the admi...
0
990
posted 14 years ago by scribbleitdesigns
Permet d'ajuster la taille d'une image ou swf en fonction de son ratio et de celui de son conteneur.
1
893
posted 14 years ago by ions
use this to convert the oracle time stamp into a character.
0
1058
posted 14 years ago by mprabhuram
Tag Description
total total pages for the query
page current page of the query
records total number of records for the query
rows an array that contains the actual data
id the unique id of the row
cell an...
0
651
posted 14 years ago by elijahmanor
You will be prompted for a password after issuing this command
1
999
posted 14 years ago by beneberle
Replace filename with the name you want to give the zip file. The .zip extension is automatically appended to the end of the filename. Replace inputfile1 and inputfile2 with the names of the files you wish to include in the zip archive. You can inclu...
2
1211
posted 14 years ago by beneberle
Un ejemplo de como hacer un resice del formulario conjunto a todos los controles.
0
1487
posted 14 years ago by keidash
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
1062
posted 14 years ago by MikeyLikesIt
Check to see if HTTP POST variable exists before doing something with it.
0
1043
posted 14 years ago by jonkemp
I removed several properties from my custom Profile class, and wanted to clean out the data from the aspnet\_Profile table. This code will remove all unwanted data from the PropertyNames and PropertyValuesString columns of aspnet\_Profile. Note this...
2
1182
posted 14 years ago by mmfusion