background preloader

WordpPress

Facebook Twitter

RGB-to-Hex Color Converter. RGB-to-Hex Conversion Question: How do I convert RGB values of a color to a hexadecimal string? Answer: The RGB-to-hexadecimal converter algorithm is simple: make sure that your values are in the range 0...255, convert R, G, B to hex strings, and then concatenate the three hex strings together. Convert RGB to Hex color values here: function rgbToHex(R,G,B) {return toHex(R)+toHex(G)+toHex(B)} function toHex(n) { n = parseInt(n,10); if (isNaN(n)) return "00"; n = Math.max(0,Math.min(n,255)); return "0123456789ABCDEF".charAt((n-n%16)/16) + "0123456789ABCDEF".charAt(n%16); } Notes: The script parses the input R, G, B values as integers using the standard function parseInt(string,10); the second, optional argument 10 specifies that the value must be parsed as a decimal number.

RGB/hex codes for named colors supported in most browsers are listed below: See also: Comprehensive URL Canonicalization via htaccess for WordPress-Powered Sites. Permalink URL canonicalization is automated via PHP in WordPress 2.3+, however, for those of us running sites on pre-2.3 versions or preferring to deal with rewrites directly via Apache, comprehensive WordPress URL canonicalization via htaccess may seem impossible. While there are several common methods that are partially effective, there has not yet been available a complete, user-friendly solution designed specifically for WordPress.

Until now.. In this article, I share my “secret” htaccess URL canonicalization formula. I originally developed this method in July of 2007, and have been using it successfully on a variety of WordPress-powered sites since that time. Thus, having verified the effective performance of this technique, I feel confident in sharing it with the open-source community. But first, a bit of context.. What is URL canonicalization? Technically speaking, a canonical URL is the definitive URL for any given web page. Conclusion. .htaccess tricks and tips.. part two: url rewriting with mod rewrite.

Corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay! <ifModule> more clever stuff here </ifModule> redirecting and rewriting "The great thing about mod_rewrite is it gives you all the configurability and flexibility of Sendmail. The downside to mod_rewrite is that it gives you all the configurability and flexibility of Sendmail. " - Brian Behlendorf, Apache Group One of the more powerful tricks of the .htaccess hacker is the ability to rewrite URLs. This enables us to do some mighty manipulations on our links; useful stuff like transforming Very Long URL's into Short, Cute URLs, transforming dynamic ? Make no mistake, mod_rewrite is complex. The way that rules can work one minute and then seem not to the next, how browser and other in-between network caches interact with rules and testing rules is often baffling, maddening.

Very little here is my own invention. RewriteRule (.*)\.htm $1.php beginning rewriting.. simple rewriting httpd.conf. Top News Headlines, Daily News, Latest Updates, News and Information on the Internet. Powered by… « the//web//list. One News: Popurls AllTop Clone for WordPress | Premium WordPress Themes - PremiumWP. One News is a WordPress theme that allows you to turn your WordPress site into a news aggregator similar to Popurls or Alltop.

One News comes in a basic free version or a premium version which contains a lot more goodies. Light Style Dark Style One News Premium Features Price: Single Use Package: $49 Multi Use Package: $199 Demo & Release Page | Purchase Rate this theme: [ratings] Fuzzy SEO Booster. Quick and Easy Apple.com Style Breadcrumb Trail for WordPress | Mtekk's Crib. Almost a year ago, Janko Jovanovic, posted a guide on how a little xHTML and CSS can duplicate the Apple.com store breadcrumb trail. Today, I’m going to show you how to apply Janko’s code to WordPress using Breadcrumb NavXT. Ok, now with the requirements. You’ll need a WordPress blog (everyone should be running 2.8.1 by now), and Breadcrumb NavXT 3.2.1 (or newer). First up, the xHTML. Place this code where you want the breadcrumb trail to show up, I recommend placing it in your theme’s header.php file.

Line by line this is setting the font to the Arial/Helvetica family at the 11px size for the breadcrumb trail. Next we should get rid of those ugly bullet points next to each breadcrumb. This code will remove the bullet points next to each breadcrumb, cause the breadcrumbs to line in order from left to right and to keep 10 pixels of padding between each of them. Line by line this code will set the anchor height to 30 pixels. Time to change a few settings in the Breadcrumb NavXT page. Put icon inside input element in a form. Quick Tip: Making a Fancy WordPress Register Form from Scratch. Tutorial: Creating Custom Write Panels in WordPress | Function Web Design & Development Blog -

Concrete5 - Free CMS | Open Source Content Management System. 15 Best Wordpress Cheat Sheets For Designers And Developers. WordPress is the best blogging platform. You can find a lot of free wordpress themes and plugins to enhance your blogging experience but still for some reasons you may need to tackle with the coding of your wordpress blog. If you are aware of WordPress tags and codes, you can easily do anything with your wordpress blog. This article provides a list of best 15 WordPress cheat sheets that will help you in developing your wordpress theme and plugin as well as these are helpful in SEO of your blog. If you are a WordPress coder or developer, you might like to download these cheat sheet and use it for your future reference. 1.

WordPress cheat sheet for designer Source : Download PDF 2. Complete WordPress Cheat Seet Source : Download PDF 3. WordPress Template Designer CheatSheet Source : Download PDF 4. The WordPress Help Sheet Source :Download PDF 5. Advanced WordPress Help Sheet Source : Download PDF 6. WordPress CSS Cheat Sheet Source 7. WordPress Template TAG Reference Guide Source 8. 9. 10. 11. 12. 40+ Invaluable PHP Tutorials and Resources. 9 Tips For Working with MySQL Databases. MySQL is one of the most popular relational database management systems (RDBMS) around, with over 6 million installations. It’s a fantastic choice for any new developer, because of its open source nature, wide support and abundance of tutorials available on the subject. Here are some great tips and tools (beside phpMyAdmin) to improve your MySQL coding, and to help you save time.

Installing SQL If you’re a newbie to the server side coding arena, don’t worry. Installing SQL is very, very simple. Ok, well if you do it the geeky way it could take you hours, but there are several scripts out there that come packaged with an SQL installer. Mac only PHP, SQL & Apache Installer Windows, Linux & Mac installer A windows only LAMP installer MySQL Server 5.1 If you just want MySQL server, and like using command line then this might suit you. For info on how to install and work with the MySQL server, check this NetTuts tutorial: Everything You Need to Get Started With MySQL. SQL Tips 1- Optimize your code. Elastic Theme Editor | Change the way you think about WordPress themes.