Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 103 104 105 106 107 ... 147
0 651 posted 15 years ago by garretjames
0 820 posted 15 years ago by gd6d
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 3032 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
A function for returning the ID of the current CMS page
1 884 posted 15 years ago by nate63179
Some shortcuts for retrieving URLs
0 795 posted 15 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 664 posted 15 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 732 posted 15 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 628 posted 15 years ago by nate63179
0 701 posted 15 years ago by yisreldov
via @kenrick1991
1 710 posted 15 years ago by rickfu
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 1883 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 760 posted 15 years ago by Nek
This function assumes a custom print.css located in the custom folder.
1 691 posted 15 years ago by thesislab
0 849 posted 15 years ago by gd6d
0 740 posted 15 years ago by gd6d
0 1065 posted 15 years ago by saturnxxi
0 673 posted 15 years ago by gd6d
Set up and array of filenames, which correspond to the file names of the images you are trying to randomize.
0 804 posted 15 years ago by paulgrenwood
1 ... 103 104 105 106 107 ... 147