Category Archives: Web Development

ExpressionEngine caching and performance

Free options: http://expressionengine.com/user_guide/general/caching.html $70 module: http://www.solspace.com/software/detail/static_page_caching/ Notes: Don’t turn on template caching for an embed template that will be called several times in a loop with dynamic parameters. you will just repeat the first result. Tag Caching works pretty well. The only limitation is that it’s time-based.

WP e-Commerce

This thing is a beast, but hopefully the best. I’ll try to collect my solutions and resources here. Template Tag Reference The best list of template tags I’ve found is on a third-party site: http://www.visser.com.au/wp-ecommerce/documentation/customisation/themes-and-templates/ Image uploader showing “HTTP Error” Most likely PHP running out of memory during the “Crunching” phase. But this might help: [...]

Checklist for a secure site (WIP)

SSL that covers transmitting credit card data Hosting allows secure transfer of credit card data Rewrite URLs to match that on SSL exactly (including “www” subdomain, if it’s on the certificate) No links to non-secure content or content on a different domain (the latter may depend on type of SSL, not sure) If using WordPress, [...]

Link directly to Google Maps driving directions

use this URL: http://maps.google.com/maps?daddr= Add the destination address as the value of the “daddr” variable with + in place of all spaces. You can also add an “saddr” variable for a start address (say someone entered their address in a form on your site).

Good god, can you make WordPress stop adding or removing p and br tags?

Shotgun approach Add this to your theme’s functions.php: remove_filter (‘the_content’,  ‘wpautop’); Scalpel http://www.adammershon.com/stop-wordpress-from-removing-br-and-p-tags/

Tim Thumb Image Resizing

A handy little tool for resizing images automatically. Caches images to limit processor speed. Very nice for when your users might be uploading their own images. Requires the gdLibrary be installed on your server. Here’s a handy script to check if it is. Basic implementation looks like this: <img src=”/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1″ alt=”"> Here’s a nice article on implementing [...]