Welcome To Snipplr


Everyone's Recent Snippets



1 ... 64 65 66 67 68 ... 554
A simple code to read/write an XML file by using Cakephp 1.3.
0 1042 posted 12 years ago by tucq88
Reduces the string size according to the parameter that has been send and put '...' at the end of the new string
0 588 posted 12 years ago by Gianino
How does it work? This code checks/unchecks all checkboxes within the same fieldset. Simple and semantic. HTML Setup Add checkboxes however you like, just make sure they are within the same fieldset. <fieldset> <!--> <div><input>...
1 733 posted 12 years ago by dnnsldr
Here’s a handy bit of code that I use quite regularly, its particularly useful if your getting a response message from a form to notify the user that there data was sent, or comunicate an error and you want to fade the message out after a set time.
1 926 posted 12 years ago by dnnsldr
Add this code in the top of your index.php and set $page_url to your application final tab/app URL.
0 921 posted 12 years ago by Whiteagle
The awesome Geo Mashup Plugin for WordPress allows for auto-embedding a map showing the location of the Post, Page etc via Shortcode or adding a line of PHP into the Theme file/s. The code below, added as a Plugin, will make a map appear at the en...
0 1578 posted 12 years ago by ecksteing
Display Copyright
0 551 posted 12 years ago by evinweissenberg
//This will grab taxonomies three levels deep (parent, child, grandchild) and display them //in an accordion fashion. Parent is the header, then child with a checkbox, if checked, will //display grandchild taxonomies. //Uses jQuery Accordion (do...
0 794 posted 12 years ago by dnnsldr
//You cannot change the whole url without redirecting, what you can do instead is change the hash. //The hash is the part of the url that goes after the # symbol. //That was initially intended to direct you (locally) to sections of your HTML doc...
0 913 posted 12 years ago by dnnsldr
How to get users identity and principal in C#
0 1020 posted 12 years ago by toLL
Load jQuery and tell every div to be 100% width
0 1736 posted 12 years ago by cmndo
Class that convert arrays to csv format, downloads CSV files and saves to disk on server.
0 1043 posted 12 years ago by TimoZachi
This method will alloc the current class unless the device is a phone (also defined here). Then it will try to alloc the class with the suffix "Phone."
0 1047 posted 12 years ago by yar
I use this primarily for debugging purposes. This simply takes an array and creates an expandable item that prints the array out in a \<pre\> wrapping, making it easy to read. Very basic snippet.
0 1012 posted 12 years ago by ringo380
I needed away to redirect to a custom BP component upon login for users and this works great. Add this to your functions file. If you are the admin, it will redirect you to the wp-admin.
0 15222 posted 12 years ago by dnnsldr
Allows you to connect to different datasources. Very common to use something like this for development,staging and production deployments.
0 800 posted 12 years ago by evinweissenberg
This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs. Example request URLs to get products and categories: #...
0 1037 posted 12 years ago by crypticsoft
Twitter Clone v2.2.1 is the best available PHP clone of Twitter available online. Like our other products it is also extremely robust, user-friendly and very secured. Please visit http://itechscripts.com for this script and other FREE downloads.
0 969 posted 12 years ago by iTechScripts
Removing index.php to url. e.g. www.yourwebsite.com/index.php -> www.yourwebsite.com/
0 846 posted 12 years ago by zwebapp
Another popup jQuery plugin implementation complying with YAGNI.
0 866 posted 12 years ago by p-baleine
Solución para DIVs que colapsan. Simplemente agrega la clase group al elemento que colapsa y se mostrará su tamaño.
0 663 posted 12 years ago by hibam
Helps write data to the console screen.
1 724 posted 12 years ago by lookitstony
doesn't work in ie7/8
0 756 posted 12 years ago by kbrown
Add this to functions.php to enable the page-child function is_tree
0 625 posted 12 years ago by klagraff
Creating a static copy of a dynamic website
0 1433 posted 12 years ago by alexaivars
If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
0 1189 posted 12 years ago by bassdas
is not Code, is configuration steps for use COMPAQ DC 7900 for virtualization machines in 64 Bits
0 1209 posted 12 years ago by xavieraviles
Set the last parameter to the number of cores. End with 'killall perl'
0 694 posted 12 years ago by beaknit
= Rake Task for Rails * name: name of the task * desc: description of the task
0 962 posted 12 years ago by cliffbraton
This function, when placed in a theme's 'functions.php' file will insert a custom id attribute into the '<li>' elements generated by a 'wp_nav_menu' function based on the title of the element. It will make a WordPress page or category into a hyphen s...
0 1083 posted 12 years ago by SFLWebDev
1 ... 64 65 66 67 68 ... 554