kingkool68 - tagged with php http://www.kingkool68.com/feed en-us http://blogs.law.harvard.edu/tech/rss Sweetcron kingkool68@gmail.com Advanced Layout Templates In WordPress' Content Editor http://www.kingkool68.com/items/view/32236/advanced-layout-templates-in-wordpress-content-editor

Create unique content layouts that are editable by people who don't know HTML.

]]>
Wed, 28 Dec 2011 07:10:00 -0800 http://www.kingkool68.com/items/view/32236/advanced-layout-templates-in-wordpress-content-editor
phpDate | PHP date strings. Now quicker. And with magic. http://www.kingkool68.com/items/view/26034/phpdate-php-date-strings-now-quicker-and-with-magic

Easier to figure out which date string you need thanks to a handy dandy tool.

]]>
Fri, 26 Aug 2011 06:37:00 -0700 http://www.kingkool68.com/items/view/26034/phpdate-php-date-strings-now-quicker-and-with-magic
Using WordPress, MultiSite, P2 and More | Trepmal's Things http://www.kingkool68.com/items/view/23633/using-wordpress-multisite-p2-and-more-trepmals-things

Great addons for the P2 WordPress theme including email notifications for username mentions

]]>
Mon, 27 Jun 2011 19:23:00 -0700 http://www.kingkool68.com/items/view/23633/using-wordpress-multisite-p2-and-more-trepmals-things
Submit post and upload image from front-end - WordPress - Stack Exchange http://www.kingkool68.com/items/view/19388/submit-post-and-upload-image-from-front-end-wordpress-stack-exchange

How to handle posting and submitting images from the public facing fornt end of a WordPress site.

]]>
Mon, 28 Mar 2011 07:56:00 -0700 http://www.kingkool68.com/items/view/19388/submit-post-and-upload-image-from-front-end-wordpress-stack-exchange
Update Multiple Rows With Different Values and a Single SQL Query | Karl Rixon http://www.kingkool68.com/items/view/17615/update-multiple-rows-with-different-values-and-a-single-sql-query-karl-rixon

Use MySQL CASE to update multiple rows with different values all in one query.

]]>
Tue, 01 Mar 2011 14:35:00 -0800 http://www.kingkool68.com/items/view/17615/update-multiple-rows-with-different-values-and-a-single-sql-query-karl-rixon
24 ways: Calculating Color Contrast http://www.kingkool68.com/items/view/17228/24-ways-calculating-color-contrast

Equations for calculating the contrast of two colors.

]]>
Thu, 24 Feb 2011 09:59:00 -0800 http://www.kingkool68.com/items/view/17228/24-ways-calculating-color-contrast
24 ways: Life Beyond Media Queries http://www.kingkool68.com/items/view/13266/24-ways-life-beyond-media-queries

Tricks for enhancing a mobile version of a site tailored to iOS devices.

]]>
Thu, 16 Dec 2010 20:35:00 -0800 http://www.kingkool68.com/items/view/13266/24-ways-life-beyond-media-queries
WordPress Ajax Presentation http://www.kingkool68.com/items/view/10543/wordpress-ajax-presentation

How to use AJAX with WordPress using the wpAjax JavaScript class

]]>
Sun, 31 Oct 2010 15:34:00 -0700 http://www.kingkool68.com/items/view/10543/wordpress-ajax-presentation
Customize WordPress “Favorites” Menu | Trepmal's Things http://www.kingkool68.com/items/view/7729/customize-wordpress-favorites-menu-trepmals-things

Toss this into your functions.php file to add or remove items from the favorites menu (dropdown by Howdy greeting) in WordPress.

]]>
Tue, 31 Aug 2010 12:55:00 -0700 http://www.kingkool68.com/items/view/7729/customize-wordpress-favorites-menu-trepmals-things
Digg Technical Talks - Rasmus Lerdorf on Vimeo http://www.kingkool68.com/items/view/7482/digg-technical-talks-rasmus-lerdorf-on-vimeo

Lecture on PHP performance and how to debug bottle necks in your code.

]]>
Thu, 26 Aug 2010 10:18:00 -0700 http://www.kingkool68.com/items/view/7482/digg-technical-talks-rasmus-lerdorf-on-vimeo
WordPress Multi-Site Function List | HN.Net WordPress Plugins http://www.kingkool68.com/items/view/6880/wordpress-multi-site-function-list-hnnet-wordpress-plugins

WordPress MU function reference that still applies to Multi-sites in WordPress 3.0

]]>
Tue, 17 Aug 2010 13:36:00 -0700 http://www.kingkool68.com/items/view/6880/wordpress-multi-site-function-list-hnnet-wordpress-plugins
TCPDF Examples http://www.kingkool68.com/items/view/5268/tcpdf-examples

PHP class useful for generating PDFs from HTML/CSS.

]]>
Thu, 22 Jul 2010 08:18:00 -0700 http://www.kingkool68.com/items/view/5268/tcpdf-examples
Using the built in WordPress media uploader in custom forms - Forrst http://www.kingkool68.com/items/view/5170/using-the-built-in-wordpress-media-uploader-in-custom-forms-forrst

A PHP class for displaying the built in media uploader tools in custom forms

]]>
Thu, 15 Jul 2010 07:38:00 -0700 http://www.kingkool68.com/items/view/5170/using-the-built-in-wordpress-media-uploader-in-custom-forms-forrst
Object-Oriented PHP for Beginners | Nettuts+ http://www.kingkool68.com/items/view/5102/object-oriented-php-for-beginners-nettuts

Good reference for creating a class in PHP and extending it and what not.

]]>
Thu, 08 Jul 2010 11:58:00 -0700 http://www.kingkool68.com/items/view/5102/object-oriented-php-for-beginners-nettuts
PHPXref 0.7: WordPress http://www.kingkool68.com/items/view/4935/phpxref-07-wordpress

WordPress source code browser. Good for documentation and reference.

]]>
Thu, 24 Jun 2010 14:29:00 -0700 http://www.kingkool68.com/items/view/4935/phpxref-07-wordpress
YOURLS: Your Own URL Shortener http://www.kingkool68.com/items/view/3508/yourls-your-own-url-shortener

PHP Scripts/WordPress plugin for making your own URL shortener complete with stats.

]]>
Fri, 16 Apr 2010 07:04:00 -0700 http://www.kingkool68.com/items/view/3508/yourls-your-own-url-shortener
A Solution For The WordPress Gallery - - WP Engineer http://www.kingkool68.com/items/view/3132/a-solution-for-the-wordpress-gallery-wp-engineer

How to modify WordPress' Gallery HTML shortcode

]]>
Mon, 15 Mar 2010 14:02:00 -0700 http://www.kingkool68.com/items/view/3132/a-solution-for-the-wordpress-gallery-wp-engineer
Parsing tweets with PHP : Five Minute Argument http://www.kingkool68.com/items/view/3119/parsing-tweets-with-php-five-minute-argument

a very simple chunk of code to auto-link the following parts of a tweet:

* URLs (into direct links)
* hashtags (link to a twitter search for that hashtag)
* usernames (link to that user’s profile page)
]]>
Mon, 15 Mar 2010 08:06:00 -0700 http://www.kingkool68.com/items/view/3119/parsing-tweets-with-php-five-minute-argument
Dummyimage.com Gets New Features http://www.kingkool68.com/items/view/3059/dummyimagecom-gets-new-features

Ever since the surge of interest in my pet project dummyimage.com I’ve been meaning to add some new features. Today is the International Day of Awesomeness (which coincides with Chuck Norris’ birthday) and I couldn’t think of a better time to unveil DummyImage.com’s new functionality to the public.

Here is a run down of the changes: Specify Custom Colors You can choose the background and foreground colors of the dummy image right in the url using a 6,3,2, or even 1 character hexcode. Don’t worry if you forget to do this as dummy image will default to gray and black. Add Your Own Text A lot of people wanted to be able to add their own text to a dummy image to better communicate what it is representing. Now using the &text= parameter you can. A Better Typeface Arial be damned! Font geeks cringed at my basic choice of a font. Some seemed worried about my distribution of the most popular font on Earth. Now both camps can be happy as I’m now using the completely free and open M+ Font. I also changed the X in the middle of the images to a multiplication sign × as pointed out by Erinah and Dave Cortright. Standard Image Sizes Dummyimage.com is a useful prototyping tool and a lot of prototypes and wireframes have ad positions. Instead of memorizing dimensions you can now bring up ad sizes by their industry-standard name like largerectangle, skyscraper, and fullbanner. You can even customize the colors, text, and formats of theses sizes as well. Pick Your Format Before you could add any image format extension to the url but my script would still generate a GIF image everytime. Now you can generate proper PNG, JPG, and GIF images and drag them into another app trouble free.

And with these new features I figured it was time to give the site a proper, though still simple, design. Rather than bury how these features work in long, boring text I made a little tool that shows you everything you need to know with minimal fuss. Not a fan of change? Don’t worry, you can still use Dummyimage.com to generate place holder images exactly the same way you have always been doing it. So thank you to everyone who has e-mailed me, tweeted me, left a comment on a post somewhere or otherwise provided feedback on dummyimage.com. I’m glad so many people found it as useful as I think it is. Keep the ideas and dummyimage variations coming. I’m sure this thing could be better. a

]]>
Wed, 10 Mar 2010 06:21:00 -0800 http://www.kingkool68.com/items/view/3059/dummyimagecom-gets-new-features
PHP Form Validation functions « Web Collections http://www.kingkool68.com/items/view/2829/php-form-validation-functions-web-collections

Handy functions for scrubbing PHP input clean and sanitizing it.

]]>
Fri, 19 Feb 2010 13:37:00 -0800 http://www.kingkool68.com/items/view/2829/php-form-validation-functions-web-collections