Welcome To Snipplr


Everyone's Recent Snippets



1 ... 46 47 48 49 50 ... 554
Disable (remove) some sidebars, or widgets at all in **Wordpress** on page template with suffix in the template name (*-no-widgets.php, *-no-sidebars.php)
1 836 posted 11 years ago by Internet-Uzver
To solve an issue for a blog main page in wordpress to display the latest post in its entirety and the remaining posts only the excerpt.
1 677 posted 11 years ago by rickahontas
A simple widget for displaying a single post in a dynamic sidebar. Originally developed to accommodate a WP user who wanted full control of which posts were displayed and what order they were on a certain page.
0 815 posted 11 years ago by chasecrawford
Gets "src" attributes from all "img" tags in RSS entries descriptions
0 1028 posted 11 years ago by alces
This script informs your visitor that a given page may be reached only from the page that you specify. Paste this code before the ending <head> tag on the page:
1 877 posted 11 years ago by apphp-snippets
One of the important things about user input is to verify that the user has supplied the email that you have requested. The function below allows you to verify email address with easy.
1 1087 posted 11 years ago by apphp-snippets
The function that closes window is very useful when you use a pop-up window on your page, because it allows the visitor to easily close the window. You can also do it several ways: to use a button, a text link or make the window closes automatically...
1 944 posted 11 years ago by apphp-snippets
This table is based on the ISO 2 letter (Alpha-2 code, ISO 639-1) and 3 letter (Alpha-3 code, ISO 639-2) Standard Codes for the Representation of Names of Languages.
0 1435 posted 11 years ago by rwt
Shell script written in bash which displays a menu giving the you ability to add, edit, modify, and delete users.
1 3336 posted 11 years ago by dego89
You may perform this work with two ways: pass it directly like described in sample #1 or use an anonymous function like its shown in sample #2.
0 1132 posted 11 years ago by apphp-snippets
This function allows you to pass two variables that represent ID of two elements on your page. What you click on one of them it hide it and shows another one.
1 746 posted 11 years ago by apphp-snippets
Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you m...
1 6249 posted 11 years ago by apphp-snippets
The snippet below was pulled from code that loads a list of names pulled from Active Directory into a listbox. This code will execute when the user double clicks on a name in the list box (lstResults) and stores it in a variable to be passed to anoth...
0 960 posted 11 years ago by mattvbiggs
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 1214 posted 11 years ago by adambundy
Uses CSS3 attributes and psuedo elements to create a simple play button for web interfaces.
0 937 posted 11 years ago by devowhippit
How to convert a drawable to a bitmap
0 901 posted 11 years ago by noloman
Use below SQL code and replace references within the theme files.
0 920 posted 11 years ago by ihatetomatoes
0 811 posted 11 years ago by fvanommen
0 795 posted 11 years ago by fvanommen
0 829 posted 11 years ago by fvanommen
0 837 posted 11 years ago by fvanommen
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will...
2 1240 posted 11 years ago by apphp-snippets
This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
0 1759 posted 11 years ago by apphp-snippets
You need a copy of your model and relations (ObjectStorage properties). In this example there is a model Product with property ProductAddition (1:n relation).
0 794 posted 11 years ago by FazzyX
Example of working with regexp sub-matches via Groovy way
0 1004 posted 11 years ago by alces
Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
0 1042 posted 11 years ago by alces
Use this plugin: http://wordpress.org/extend/plugins/members/ Settings are here: http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types http://codex.wordpress.org/Function_Reference/register_post_type Gravity Fo...
0 634 posted 11 years ago by ihatetomatoes
With increasing of popularity of WordPress script, Gravatars have become a really quite popular. Now you may easy integrate them into your own script as they provide a very easy to use API.
0 628 posted 11 years ago by apphp-snippets
1 ... 46 47 48 49 50 ... 554