David Bisset: Web Designer, Coder, Wordpress Guru

Web 2.0, Php, MySQL, HTML, CSS, Wordpress, Javascript, iTouch iPod, iPhone, Adobe…

Archive for the ‘Coding’ Category

CSS Teaser Box

456 Berea Street’s technique is to use one graphic. By the way, a CSS Teaser Box is just a regular box done in CSS.

  • 0 Comments
  • Filed under: Coding
  • This gives the end user the ability to upload, crop, and resize their image from within their Web browser with JavaScript, PHP, and ImageMagick.

  • 0 Comments
  • Filed under: Coding
  • CSS: Accessible Image Replacement

    Great point in this Choose an accessible image replacement method link, pointing out that image replacement still isn’t being done right for the most part.

    In most cases you can and should use an image replacement method that avoids that problem. On the few occasions when I need image replacement I turn to either the Gilder/Levin Method as described by Dave Shea or, if the replaced text is linked and CSS support for IE/Mac is required, the Gilder Levin Ryznar Jacoubsen IR method.

  • 0 Comments
  • Filed under: Coding
  • I need to start bookmarking more of these CSS tips. Here’s one for using Maximum and Minimum Height and Width in Internet Explorer.

  • 0 Comments
  • Filed under: Coding
  • Introduction to “robots.txt”

    A basic, but great “need the answer in five seconds” page about robots.txt files. Good bookmark.

  • 0 Comments
  • Filed under: Coding
  • Mapstraction is a library that provides a common API for various javascript mapping APIs to enable switching from one to another as smoothly as possible. Developers can code their applications once, and then easily switch mapping provider based on project needs, terms and conditions, and new functionality.

    Update: Here’s a tutorial on how easy it can be to incorporate Mapstraction.

  • 0 Comments
  • Filed under: Coding
  • Getting ZenCart Working On GoDaddy

    GoDaddy hosting is evil if you’re a web developer and don’t know what they limit. Sometimes getting open source software installed and working (or some of it’s features afterwards) can be a pain. Zencart can be installed, but it’s Authorize.NET payment module might not work because of cURL. I stumbled on a possible solution. I’m repeating it here, just so I can make sure it’s in my database.

    Add the following to the cURL routine in authorizenet_aim.php.

    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    // The line below was posted on Godaddy's support site,
    // but did not work for me
    //curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
    // This line worked for me instead
    curl_setopt ($ch, CURLOPT_PROXY,"64.202.165.130:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 45);

    Also bookmarking zenCart’s forum here. Also, since i work with zenCart I decided to open up a whole category on it. Got to bookmark more tips.

  • 0 Comments
  • Filed under: Coding, ZenCart
  • Safari CSS Reference

    Safari CSS Reference on Apple’s site. [ via Ajaxian ]

  • 0 Comments
  • Filed under: Coding
  • BambooInvoice 0.8.3 Preview - Not only a great web app, but made with PHP MVC framework CodeIgniter.

  • 2 Comments
  • Filed under: Coding
  • HTML Emails: CSS And Other Tips

    The release of Outlook 2007 earlier this year (using the Word rendering engine instead of Internet Explorer) makes building html emails even more horrible. This is the first good link i’ve encountered so far with css and html tips how to ensure your HTML emails look great and get delivered.

  • 0 Comments
  • Filed under: Coding
  • This is a VERY slick Javascript class for Mootools that “adds accessible and unobtrusive date pickers to your form elements”. One of the best visual calendars / date pickers i’ve seen for html forms - although i still need to check out how flexible it is, including the CSS.

  • 0 Comments
  • Filed under: Coding
  • Cannibalizing a Contemporary Collection of htaccess Hotlink-Protection Methods to Create the Ultimate htaccess Anti-Hotlinking Strategy.

  • 0 Comments
  • Filed under: Coding
  • Stupid htaccess Tricks

    Perishable Press has one of the biggest sections I’ve ever seen devoted to .htaccess. Bookmarkable.

  • 0 Comments
  • Filed under: Coding
  • A CSS fix for Graphical Input Submit Button Off-Set, which has been a CSS pain in the butt for me in some html/css projects.
    .submit { vertical-align: middle; *vertical-align: text-bottom; }

  • 1 Comment
  • Filed under: Coding
  • I’m currently using a year-old solution, but interested in other authorization libraries for CodeIgniter. Michael Wales seems to have created one, so bookmarking for future reference.

  • 1 Comment
  • Filed under: Coding
  • SimplePie is a code library, written in PHP, intended to make it easy for people to manage RSS and Atom feeds. Seems to intergrate with CakePHP and CodeIgniter, and there’s even a Wordpress plugin. Here’s a little more on the CodeIgniter intergration.

  • 1 Comment
  • Filed under: Coding
  • rapyd framework

    PHP rapyd framework, nice “add-on” for Codeignitor. It’s as “sub-framework”, and also a “component repository”.

  • 0 Comments
  • Filed under: Coding
  • mod_rewrite Cheat Sheet

    mod_rewrite Cheat Sheet

    The mod_rewrite cheat sheet is designed to act as a reminder and reference sheet, listing useful information about mod_rewrite. It includes a list of flags for the RewriteRule and RewriteCond directives, list of server variables, a regular expression guide and several examples of common rules

  • 0 Comments
  • Filed under: Coding
  • PHP Cheat Sheet

    PHP Cheat Sheet - Another Great Printable Item from ILoveJackDaniels.com.

  • 0 Comments
  • Filed under: Coding
  • CSS Cheat Sheet

    A printable CSS cheat sheet listing all selectors (as of CSS 2.1) and properties.

  • 0 Comments
  • Filed under: Coding
  • Writing Secure PHP

    Yeah, it’s from 2004 but it holds alot of still valid examples.

  • 0 Comments
  • Filed under: Coding
  • PHP5 MVC Framework: Kohana

    Kohana is a PHP5 framework that “uses the Model View Controller architectural pattern. It aims to be secure, lightweight, and easy to use”. Claims to have come from CodeIgnitor, which is my current framework of choice, so i’m bookmarking to check out later.

  • 0 Comments
  • Filed under: Coding
  • JavaScript: Keyboard Events

    A great and recent (Oct. 07) article covering many different browsers.

    This document summarizes the results of some browser tests done while attempting to implement key stroke handling code in JavaScript. It documents inconsistancies in the way different browsers implement keyboard events.

  • 0 Comments
  • Filed under: Coding
  • URI vs. URL: Clearing Up Confusion

    I get this question sometimes when i’m working with fellow php coders, and i’ve always felt is difficult to explain.

    A URI identifies a resource either by location or name.

    A URL is a URI but a URI is not a URL. A URL is a specialization of URI that defines the network location of a specific representation for a given resource.

  • 0 Comments
  • Filed under: Coding
  • Lots of AJAX, DHTML and JavaScript Libraries to explore. Bookmarkable.

  • 0 Comments
  • Filed under: Coding
  • AJAX Based PHP5 MVC Framework

    Zephyr sparked my interest - if you aren’t using php5 yet, start today.

  • 0 Comments
  • Filed under: Coding
  • Tooltip scripts with CSS and/or Ajax - something i wanted to get a list together for. If you have one to add, drop a comment.

  • 1 Comment
  • Filed under: Coding, My Lists
  • jQuery Crash Course

    This is basically “jQuery For Dummies”. Great link, bookmarkable.

  • 0 Comments
  • Filed under: Coding
  • SWFAddress is a small, but powerful library that provides deep linking for Flash and Ajax. According to the site it allows “Bookmarking in a browser or social website, Sending links via email or instant messenger, Finding specific content with the major search engines, Utilizing browser history and reload buttons”. [ via ajaxian ]

    jQuery Plugin List

    I’m bookmarking this “ultimate jQuery Plugins List”, with over 240+ items, for future use.

  • 0 Comments
  • Filed under: Coding
  • Nice Web Forms Using CSS

    Some great tips here for improving the look of html forms via css.

  • 1 Comment
  • Filed under: Coding
  • Everyone is linking to Jeffrey Zeldman’s excellant essay, so why shouldn’t I?

    The trouble is, web design, although it employs elements of graphic design and illustration, does not map to them. If one must compare the web to other media, typography would be a better choice. For a web design, like a typeface, is an environment for someone else’s expression.

  • 0 Comments
  • Filed under: Coding, Web 2.0
  • CSS: Inline Image Quotes

    Using images for blockquotes, but not using inline images in CSS.

  • 0 Comments
  • Filed under: Coding
  • With a few lines of CSS? Could be that easy.

  • 0 Comments
  • Filed under: Coding
  • How to Size Text in CSS

    How, using CSS, do you allow designers to retain accurate control of typography, without sacrificing the user’s ability to adjust his or her reading environment? Another great A List Apart article. Looks like EMS is the way to go if you want to cover most/all bases.

  • 0 Comments
  • Filed under: Coding
  • Twitter Updates