Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
table with image on one side, products info on the other.
includes some CSS from Tablizer that has been modified.
0
820
posted 12 years ago by dcoxdesigns
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0
826
posted 12 years ago by symsec
Standard hasClass, addClass, and removeClass functions.
- reworked so that jsLint is happy about them
- removeClass function trims things after removing a class name
- tests help to ensure that all common use-cases are covered
2
1347
posted 12 years ago by pmw57
In the examples, below, Step1 is the id given to the element. If the element is set to runat="server", when it is rendered on the page, the id will change dynamically to something like ctl00$PlaceHolderMain$Step1. But the actual value may change. To...
0
1183
posted 12 years ago by rumremix
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0
1456
posted 12 years ago by i-am-andy
Get current url. Include domiain. For example :http:// localhost/root_folder.
0
1271
posted 12 years ago by tucq88
This code allows quick access to the dnn state/region listings..
0
820
posted 12 years ago by box86rowh
Just an example showing how to minimise the mixture of HTML and PHP in a view.
0
734
posted 12 years ago by JonnySnip3r
Simulate the $_GET array from php in javascript to get url parameters this way:
url= http://localhost/?var1=example
$_GET['var1'] will return "example"
Just copy and paste the code.
2
1122
posted 12 years ago by sergiazow
I've updated Mad Current Event to work with Joomla vs 2.5.6.
Just replace the contents of mod_madcurrentevent.xml with the following code.
0
1040
posted 12 years ago by mrjohnmain
Quite useful snippet to log all events triggering occuring in your app. Because it uses event.global array, it logs custom events as well as native ones
For developpement use only, disable it before migrating to production environement.
1
582
posted 12 years ago by mandawan
Place the function in your functions.php file of your theme...
Then, simply call like this: wp_paginate('', 3);
The first param is optional, the second dictates how many pages before and after the current page link will show...
0
726
posted 12 years ago by thewickedchemist
This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
0
806
posted 12 years ago by VisionHive