Welcome To Snipplr


Everyone's Recent Snippets



1 ... 257 258 259 260 261 ... 552
You can get the last query by using the following code. Insert the first line before the query and TYPO3 will store each query. You can get the last query with the second line.
3 2314 posted 16 years ago by pogosheep
1 26004 posted 16 years ago by traeregan
Gets the date, pulls a list of upcoming events (posts from cat 6) and sorts by custom field \\\"event_date\\\" . Add to sidebar via [PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/).
0 2111 posted 16 years ago by hussong
Uses action hook of the hybrid theme framework to launch function that modifies the query on the archive page for category 6.\\r\\n\\r\\nSorts by the custom field \\\"event_date\\\" and compares it to the current date.\\r\\n\\r\\nBased on [goto11\\\'...
0 1829 posted 16 years ago by hussong
A small snippet on how to create a dynamic model in CakePHP (useful for global functions that need a model to function. IE functions defined in the AppController
0 1645 posted 16 years ago by stolkchris
If you're ever bothered by CakePHP's limited breadcrumbs support for displaying them use this to build your own!
2 1952 posted 16 years ago by stolkchris
Use this regex search in Dreamweaver's find/replace to remove any html tag attributes
1 5789 posted 16 years ago by bjornredemption
Track how long code takes to load by using a cross browser profiler. Useage : profiler("start"); //your js profiler.done("#profiler");
0 1581 posted 16 years ago by Meander365
This is dead handy. The purpose of the custom filter is to select all elements which have data attached. You can even find specific data.
1 2212 posted 16 years ago by Meander365
updated...
0 1716 posted 16 years ago by nathwill
Show the top tags by usage.
1 2336 posted 16 years ago by daipratt
Are you as tired as me of the default layout of 404 error pages? Well now you can easily create your own and refer to it like this:
4 2040 posted 16 years ago by Orlandoo
If you've transferred domain names or wish to redirect a specific page or pages without getting penalty from search engines such as Google, use the following code:
2 1517 posted 16 years ago by Orlandoo
If for some reason you would want to deny everyone or allow only a specific group of IP addresses to access your website, add the following code to your .htaccess file:
3 1898 posted 16 years ago by Orlandoo
It's possible to block all unwanted user agents that might be potentially harmful or perhaps just to keep the server load as low as possible.
1 1723 posted 16 years ago by Orlandoo
Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking.
4 1948 posted 16 years ago by Orlandoo
0 1677 posted 16 years ago by paschim
0 1538 posted 16 years ago by florin555
0 1377 posted 16 years ago by Mikushi
The solution to Project Euler [Problem 1](http://projecteuler.net/index.php?section=problems&id=1), written in Java as an example for my AP Computer Science class teaching internship.
1 1956 posted 16 years ago by itaiferber
gets you a date string for today in YearMonthDay formant like this 20100917
0 3827 posted 16 years ago by jlvallelonga
2 1592 posted 16 years ago by metoikos
Shows a month calendar, forward and backward navigation by month. Week numbers are shown at left col. Days and weeks are clickable. Days, weeks and months names are in Danish. Comments and suggestions are welcome
1 2665 posted 16 years ago by zafu
1 ... 257 258 259 260 261 ... 552