Welcome To Snipplr


Everyone's Recent Snippets



1 ... 182 183 184 185 186 ... 554
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 1067 posted 14 years ago by zachbrowne
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 1471 posted 14 years ago by zachbrowne
Used to retriev a index, for example to select a item on a combobox with the arrayCollection as dataProvider. Usage: comboBoxNames.selectedIndex = findIndex(arrayColNames, "field_on_array_collection", "value_to_compare_with_field_in_array_coll");...
0 800 posted 14 years ago by msdevweb
0 824 posted 14 years ago by javieren
0 790 posted 14 years ago by javieren
0 719 posted 14 years ago by javieren
0 833 posted 14 years ago by javieren
0 949 posted 14 years ago by laurenceosx
1 897 posted 14 years ago by roflman79
0 759 posted 14 years ago by nextneed
0 976 posted 14 years ago by dnkysp
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 1081 posted 14 years ago by chopbust
This is just a super simple setup for the new HTML5 elements. If you're not using a framework or a reset, then you can paste this into your stylesheet so the new elements will behave as expected.
2 970 posted 14 years ago by rewdy
0 909 posted 14 years ago by stephcode
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 1456 posted 14 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 1474 posted 14 years ago by crypticsoft
3 1138 posted 14 years ago by nielsenrc
This is especially useful to have appear in logs. While it is totally up to the JVM implementation what to return for the name, most seem to return a numeric process identifier.
0 857 posted 14 years ago by cruelfate
With this CSS to make the page 2 main content columns: .custom #content .sidebar {width:48%; margin-right:2%; float:left;}
1 798 posted 14 years ago by kristarella
0 792 posted 14 years ago by nosmk
0 815 posted 14 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 1295 posted 14 years ago by daveespionage
1 854 posted 14 years ago by myoffe
1 ... 182 183 184 185 186 ... 554