05 Nov 2008

Uninstall Option for WordPress theme

Useful uninstall option “snippet” for your WordPress theme admin option. Basically, this reverts WordPress to the default theme and removes all theme settings from the database. Change option your_theme with your own:

global $wpdb;

delete_option('your_theme');
switch_theme('default', 'default');
wp_cache_flush();

wp_redirect('themes.php?activated=true');
exit();
04 Nov 2008

Untitled

Not updating for quite a long time. Well, I’m not the only one but almost everyone that I knew…

I wonder why? Other commitment maybe?

11 Jul 2008

WordPress Olive T-Shirt

WordPress Olive t-shirt

Grab yours at WordPress Shop now.

17 May 2008

k9

UPDATE: A newer version to support the latest version of WordPress (2.8) will be release soon. If you’re interested to get an early copy, do shoot me an email.

Download k9 WordPress theme. Only compatible with WordPress 2.5 and above.

Features

  • Custom Header
  • WordPress Widgets

Screenshot

10 May 2008

iTerm keep-alive

This is a note to self on how to enable iTerm keep-alive or anti-idle option.

  1. Open iTerm. Go to Bookmarks → Manage Profiles… .
  2. In Profiles window, browse to Terminal Profiles and expand the menu by clicking the triangle. Choose and click on Default.
  3. Tick the “When idle, sends ASCII code” and set its value to 20 (ASCII for space).
  4. Exit the Profiles window.
09 May 2008

WordPress Comment Form Skip Link

Skip link (or Skip Navigation link) for comment form is really important when your entry has a lot of comments. But there’s no point in having one when your comment form is just few pixel away after the entry.

This is how you can show the skip link if the comment reach n number of comments. Example below will make the skip link appear if 1) comment status is open 2) comment count is more and equal to 4.

  1. Open your Theme’s comments.php file.
  2. After (or anywhere you find suitable) paste these lines:
    
            Skip to comment form
    
    

    Example:

    to “

    Skip to comment form

    Don't forget to style the codes to match your layout.

  3. Finally, make sure that an element with ID attribute respond is added or assigned. For example:

    Leave a Reply

    Preferably right before the comment form.

    Using named anchor () is outdated but still possible.

30 Apr 2008

Iron Man

I’ve been listening to Black Sabbath’s “Iron Man” song over and over again.