Welcome To Snipplr


Everyone's Recent Snippets



1 ... 163 164 165 166 167 ... 554
Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element. This shows how you can just create a single function and in the event handler callback just call that...
0 656 posted 13 years ago by anagaiyahoocom
simply add s4-notdlg to the class of the element that you don't want to appear in dialog boxes. See example.
0 954 posted 13 years ago by rumremix
The "inherit" aspect of this did not always work for me. For example, font-family may need to be explicitly specified in the generated css (in place of "inherit"). But this just takes a couple seconds. Simply search for "family" and replace "inherit"...
1 1052 posted 13 years ago by rumremix
function for determining the section ID of a given page. Good to include in a templatetools.php file inside of a template to set up some custom conditional logic
0 859 posted 13 years ago by beneberle
Another version for my old Order by Rand function now it includes some PHP
0 646 posted 13 years ago by aamirrajpoot
0 648 posted 13 years ago by zealmurapa
Put in head tag
0 814 posted 13 years ago by stephcode
Get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)
0 974 posted 13 years ago by zingo
Call Taxonomy anywhere on a template (without link)
0 844 posted 13 years ago by zealmurapa
Returns the video id for any type of youtube url that holds one.
2 1263 posted 13 years ago by KabuqueJoe
0 840 posted 13 years ago by zealmurapa
0 609 posted 13 years ago by zealmurapa
strip html on loop
0 667 posted 13 years ago by zealmurapa
0 1094 posted 13 years ago by zealmurapa
Go to the Windows command line by going to Start -> Run and typing in cmd. You need to change directory to the MySQL bin directory. On my version, the directory is c:\wamp\bin\mysql\mysql4.1.22\bin. Therefore, the command to change to this dire...
0 781 posted 13 years ago by TheJasonParker
post thumbnail function and display as background if function exists
0 775 posted 13 years ago by zealmurapa
1 ... 163 164 165 166 167 ... 554