Author Archives: admin

How to Edit Pages in WordPress

This is a basic guide to editing existing pages on a WordPress site. Log in Log in at [YOUR SITE URL]/wp-admin/ with your admin username and password. WordPress Usernames and passwords are case-sensitive, so be careful. After your initial login, you can edit the details of your user account (such as email or password) by [...]

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, [...]

Open External Links in a new Window via jQuery

$(document).ready(function(){ $(‘#content a[href^="http:"], #content a[href^="https:"]‘).click( function() { window.open( $(this).attr(‘href’) ); return false; }); });

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 [...]

WordPress as a CMS

Making your own theme Easy breezy. The minimum you need are index.php and style.css files. As long as you have the right code in your stylesheet, your theme should show up in the picker in the admin area. This doc has all the basics: http://codex.wordpress.org/Theme_Development. Don’t forget to add <?php wp_head(); ?> right before the </head> [...]

Bumpy Brush Problem

Brush strokes are sometimes bumpy like this: This can be fixed by dropping the spacing percentage in the brushes palette: Voila: Warning: lower spacing percentages are resource suckers. Your lines will be smoother, but your brush strokes will lag behind your actual cursor movement.