Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 54 55 56 57 58 ... 147
0 519 posted 13 years ago by ericmuyser
This will extract page handle between last slash and .html
0 613 posted 13 years ago by anagaiyahoocom
1 597 posted 13 years ago by Risse
probably confusing. it's my first class. not pretty but it works
0 980 posted 13 years ago by cdog
default facebook connect script
0 648 posted 13 years ago by cdog
While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian. [RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it onl...
0 647 posted 13 years ago by gryzzly
This is a php script to trigger a cpanel full backup to the servers home directory OR a remote ftp server
0 687 posted 13 years ago by leoj3n
get rid of plugins that add jquery without killing the admin
0 690 posted 13 years ago by mesh606
Dispaly a repeatable region using the Simple Fields wordpress plugin.
0 694 posted 13 years ago by mesh606
Bring in a file / image to your wp template
0 632 posted 13 years ago by mesh606
use this in the sidebar to show a top level page with child pages persistently
0 727 posted 13 years ago by mesh606
0 478 posted 13 years ago by NiReiC
CakePHP Interview Questions
0 921 posted 13 years ago by erraja_07
**Important: this snipplet has moved to Github.** - [Programmatically change the active theme in Drupal 6](https://gist.github.com/1973197) - [Programmatically change the active theme in Drupal 7](https://gist.github.com/1973201)
2 1474 posted 13 years ago by wildpeaks
To get the simplest squeeze page possible: no header, sidebars or footer. Paste the following PHP in custom_functions.php. The first function is the filter that returns “false” instead of returning the content that would normal be there (in the h...
0 1092 posted 13 years ago by zachbrowne
0 481 posted 13 years ago by nextneed
I made this function to render hidden form elements in a new page based on what was sent from the last form. This function can be used to preserve input from a long multiple-page form. What does it do: 1. Go through all the submitted POST eleme...
0 719 posted 13 years ago by chopbust
The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views. Note: You will want to change instances of "mysite_listings" with your own...
1 1101 posted 13 years ago by crypticsoft
Example shows how to register post types for : * Listings (defined as 'mysite_listings' with the rewrite slug 'lookup') * Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0 1168 posted 13 years ago by crypticsoft
With this CSS to make the page 2 main content columns: .custom #content .sidebar {width:48%; margin-right:2%; float:left;}
1 520 posted 13 years ago by kristarella
0 528 posted 13 years ago by nosmk
# function *formatArrayForDisplay* ## parameters: * **array** a 1- or 2-dimensional array for output * **mode** accepts **human** or **PHP** * **human** displays using `<pre>` tags and print_r * **PHP** displays PHP styl...
1 939 posted 13 years ago by daveespionage
Ordenamento de array para exibição em colunas múltiplas, via UL float.
0 513 posted 13 years ago by dessimoni
Here are some IDs for the default links WP 3.1 adds, found in /wp-includes/admin-bar.php: my-account / my-account-with-avatar : the first link, to your account. Note that the ID here changes depending on if you have Avatars enabled or not. my-blo...
0 599 posted 13 years ago by crs
1 ... 54 55 56 57 58 ... 147