web design and programming

Notice: I have recently made a commitment to not pursue web design any further. Although the rewards are numerous, and instantanous, I do not want to spend my life hunched over a computer. So until someone can figure out a way to code webpages while clinging to a rock face, sampling Javanese cuisine, or cycling across Mongolia, that's where you will find me (if all goes according to plan...)

I will continue to provide support for the code below, and for my current clients - but will not be taking on new projects.

Wordpress plugin(s) and code snippets

While designing pages with the uber-useful and FREE Wordpress program, I developed the following plugins for the needs of my clients. By popular demand, I am making them available here.

  • external database manager
  • This Wordpress plugin provides a framework for managing an external mySQL database from within Wordpress.

    The plugin:

    • adds an admin menu to perform simple add, edit, and delete functions on the database
    • adds a hook to insert a table pulled from the database into your posts.
    • (Note: this plugin requires understanding of mySQL and some intermediate programming knowledge)

    Get it here.

  • wpmu - send users to primary blog on login
  • For some reason, the default beahior of WPMU is to send users to the dashboard of the main blog when they log in. This little core-hack (know what this means) will instead route users to the dashboard of their primary blog when they log in.

    Caveats:

    1. Works on a blogs-in-subdirectory setup only
    2. Can be tweaked to send the user anywhere you damn-well please
    3. Core-hacks are dangerous - know what you are doing

    Code: Modify wp-login.php around line 485 to read:

    if ( !is_wp_error($user) ) { // If the user can't edit posts, send them to their profile. if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { $primary = get_usermeta($user->ID , 'primary_blog'); //get primary blog ID if ($primary && $primary != "1"){ //if the users have a primary blog, and its not the main blog... (may not be needed on all installs) $redirect_one = get_blogaddress_by_id( $primary ); //get their primary blog $redirect_to = $redirect_one ."wp-admin"; //tack on the wp-admin page } else $redirect_to = admin_url('profile.php'); // otherwise, do the "send to profile" thing that is default } wp_safe_redirect($redirect_to); exit(); }

    More information can be found here: http://mu.wordpress.org/forums/topic/13452

website design and hosting

Are you the only kid on the block without a website? Ready to show off your grandkids, dog, rapier wit, or political analysis to the world? Step right in...

  • (FREE) Wordpress install
  • Wordpress is the free, opensource blogging software behind millions of blogs on the web. Although it is simple to use, proper setup requires a little bit of tweaking.

    Simple Install: $25
    If you already have a host, and simply want Wordpress installed on it, I will set it up with the default themes, 1 additional theme of your choice, and 3 plugins (also of your choosing).

    FREE Install: Totally new to the web world? I will set up your domain and registration, and install Wordpress on Dreamhost -- for FREE. All you have to do is pay for the hosting. How is this possible? Because Dreamhost pays me for recommending their hosting services to you. Everyone wins.

  • website / blog design
  • Specializing in spare, simple, elegant approaches to web design, putting the least amount of clutter between you and your audience.

    • Custom Wordpress theme design
    • Custom web page design (css / php / javascript)

    Prices vary depending on complexity. Please inquire.