Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
2
3029
posted 15 years ago by acosonic
As you can probably see I use the Sociable plugin on this blog. I recently realized that the Digg link was broken. Here is the fix:
0
956
posted 15 years ago by captbaritone
Automatically prepends the path of the store's skin to create a full url
0
732
posted 15 years ago by nate63179
Once the automatic button placement for the ShareThis plugin has been deactivated, this function added to custom_functions.php will place the button on single posts only (not the home page).
1
929
posted 15 years ago by thesislab
This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"
3
1881
posted 15 years ago by adamcoulombe
Add the code below to custom_functions.php to restore Thesis Options and Design Options to their defaults. Keep in mind that this has no effect on custom.css, or the other functions in custom_functions.php.
2
969
posted 15 years ago by thesislab
Create log.txt in scripts directory and set permissions to 0666 before use.
0
759
posted 15 years ago by Nek
This function assumes a custom print.css located in the custom folder.
1
689
posted 15 years ago by thesislab
Set up and array of filenames, which correspond to the file names of the images you are trying to randomize.
0
803
posted 15 years ago by paulgrenwood