Theme Bugfix: TechnoHolic, SoftwareHolic, GenkiTheme (Fixed Width)

June 30th, 2008 Blog

Found some XHTML invalidation in comments.php file across the three themes, resulting in missing or extra < /ol > tag. It occurs when 1) there’s only comments and no trackbacks, or 2) there’s only trackbacks but no comments. Not a major issue as most browsers will still render the page correctly. If you have not modified the comments.php, simply download the new theme pack and replace only the comments.php for your blog.

Download GenkiTheme (Fixed Version)
Download SoftwareHolic
Download Technoholic (same comments.php for both free and premium edition)

Share This | Read on | No Comments


How to Show Only Parent Category in a Post

June 23rd, 2008 Blog

Parent category: WordPress
Child category: —- WordPress Themes
Child category: —- WordPress Plugins
Child category: —- WordPress Tips

When you use the_category() template function, it displays both the parent category and any child/subcategories under it. With the above example you will see something like “Filed in WordPress, WordPress Themes, WordPress Plugins, WordPress Tips”.

Sometimes you prefer less clutter and hide all the child categories. Unfortunately the_category() does not have any optional parameters like child=0 or depth=-1. The below code may be a few lines long but does the job well. To be used within The Loop.

$parentscategory ="";
foreach((get_the_category()) as $category) {
    if ($category->category_parent == 0) {
        $parentscategory .= ' <a href="' . get_category_link($category->cat_ID) . '" title="' . $category->name . '">' . $category->name . '</a>, ';
    }
}
echo substr($parentscategory,0,-2);
Share This | Read on | 38 Comments


Redesigning Theme for BlogShopr

June 16th, 2008 Blog

A preview of a wordpress theme in progress. Been working on the redesign for BlogShopr – Singapore Online Shopping. Planning to convert blogshopr from a blog shops aggregator to a blog shops membership directory.

I think this theme is my most colorful theme to date. After all, blogshopr’s visitors are mainly young ladies in their teens. Probably will name it Shopaholic after my recent “Holic” series, namely SoftwareHolic and Technoholic ;)

Like the new theme? Too colorful? Too cutesy?

Share This | Read on | 3 Comments


Get $60 Discount + $48 Coupon Code on Lunarpages Web Hosting

June 7th, 2008 Blog

*[1 June 2009] Offer no longer available. View more webhosting plans here.

Now you can save $60 off for any new 24 month hosting plan. Simply signup with my referral link and earn $60 cashback, credited into your PayPal account.

Lunarpages solutions are at the forefront of industry standards, and are powered by Dell PowerEdge servers, the most innovative and secure servers in the industry. The most popular Basic Web Hosting package is an incredible value package:

  • Unlimited Storage Space!
  • Unlimited Bandwidth
  • Free Domain Name for Life
  • Hosting for UNLIMITED Websites on 1 Massive Plan
  • MySQL, PHP, PERL, ASP, Python, JSP, and Ruby on Rails

How much you will save on Lunarpages Hosting Plans?

Personal Website: $4.95/month (only $2.45/month with $60 cash rebate for 24 month plan)
Microsoft Hosting: $9.95/month (only $7.45/month with $60 cash rebate for 24 month plan)

Procedure

What you need to do

  1. Check that your cookies are enabled (how to)
  2. Click on this link and signup at Lunarpages. Don’t close this window yet. After signing up, come back to this page.
  3. Send an email to “webmaster@ericulous.com” with subject as “Lunarpages Cashback”
    Copy, paste and edit the following in your email message

    ID: lunarpages05190223
    Name: < enter your name >
    PayPal email: < enter your paypal email >
    Domain name: < enter your domain name >

What I will do when I receive your email

  1. Verify that your order is recorded in my system
  2. Verify that Lunarpages has accepted your order and you have not cancelled your account (may make take up to 45 days)
  3. Credit $60 cashback to your Paypal

Terms & Conditions

- Only for new 2 year hosting plans signup
- Requires a PayPal account. Signup up for a free account at http://paypal.com
- You must have cookies enabled on your web browser to qualify for this rebate. Otherwise I will not be able to verify that you went directly from my site to Lunarpages to purchase the plan. I recommend that you clear your cookies before clicking on the link and that you do not go to other websites until after you have finished purchasing your web hosting plan.

Tags: discount coupon, cheap web hosting, rebate, cashback

Share This | Read on | 22 Comments


Cheap Webhosting with Unlimited Storage/Bandwidth/Domains

May 27th, 2008 Blog

Maybe I’m being slow here but while browsing for webhosts today, I noticed that a lot of them are offering unlimited everything! Disk space, bandwidth, addon domains.. The webhosting business sure is cut-throat competitive with such dirt cheap price. I just hope my blogs won’t suffer in the long run with overloaded servers. Meantime I’ll just enjoy the free upgrades :)

Some of the cheap webhosts, sorted by lowest monthly price

PS: for existing Bluehost users, you can send a support ticket to request for the free upgrades.

Share This | Read on | 8 Comments


Theme Update: OneNews

May 23rd, 2008 Blog

Fixed one of the common complaint of layout breaking when unable to retrieve feed. Instead of displaying the lengthy “Warning: array_slice(): The first argument should be an array…”, a simple message “Feed may be down” is shown.

List of updates for OneNews Theme v1.5

  • Display “Feed may be down” message instead of “Warning: array_slice(): The first argument should be an array”, which breaks the layout
  • Tested on WP 2.5
  • Fix fat top banner in IE (style.css and styleb.css)
  • Upgrade Exec-PHP plugin to version 4.7
  • Upgrade flickrRSS plugin to version 4.0

Grab the latest version of OneNews package

For existing theme user who prefer to do manual upgrade, below are the code/file changes. Remember to backup first.

1. Display “Feed may be down” message
In your post (you may refer to post.txt for comparison)
search every instance of

$rss = fetch_rss

insert a blank line below and add

if ($rss) {

search for every instance of

echo '</ul>';

and replace with

}
else {
print 'Feed may be down';
}
echo '</ul>';
</pre?

<strong>2. Deprecated rss-functions.php file</strong>
In your post (you may refer to post.txt for comparison)
find
<pre class="brush: php; gutter: true; first-line: 1; highlight: []; html-script: false">
<?php require_once(ABSPATH . WPINC . '/rss-functions.php'); ?>

replace with

<?php require_once(ABSPATH . WPINC . '/rss.php'); ?>

3. Fat top banner in IE
In style.css and styleb.css
find

div#banner-nav-center {
	width: 980px;
	margin:0 auto 0 auto;
	padding: 0.6em 10px 2em 10px;
}

replace with

div#banner-nav-center {
	width: 980px;
	height: 18px;
	margin:0 auto 0 auto;
	padding: 0.6em 10px 0.6em 10px;
}

4. Updgrade flickrss and Exec-PHP plugin
a. deactivate plugins
b. delete plugin files
c. update plugin files (in folders)
d. activate new plugins

Share This | Read on | 2 Comments


Comment on High PR Blogs for Free Linkbacks

May 20th, 2008 Blog

Raman commented on the post “Linkbacks from High PR Blogs“, saying that the blog compiling the list was suspended by WordPress.com. A year ago, doing a review in exchange for a linkback was the rage. Until the google smackdown in July/August. So that list is probably redundant now.

The “in” thing to get free linkbacks now is posting comments on high PR blogs, preferably with dofollow. So here are some complied lists (dofollow not guaranteed):

Update: even more lists at “Make Money Online By Blog Commenting

While you can be lazy and post thank-you-i-love-your-blog one liner type comment, it is recommended that your comments be relevant to the blog post. Less the author delete your half-hearted attempt.

It can get pretty tedious after a while: visit blog, verify dofollow, post comment. Rinse and repeat. And these compiled list may not be up-to-date. Here’s where Fast Blog Finder can help us to reduce the load. Watch this video to see it in action.

There are two editions available:

  • Fast Blog Finder Free Edition
    - freeware, requires registration
    - search results limited to 50 blogs for each keyword phrase
  • Fast Blog Finder Gold Edition
    - commercial, $49
    - get 25% discount at SoftwareHolic
Share This | Read on | 71 Comments


Easier and Faster Ways to Upgrade to WordPress 2.5.1

April 26th, 2008 Blog

Oh no.. not another minor upgrade!

Did that thought cross your mind when you found out that WordPress 2.5.1 was released? I know I did.. given that I have 6 blogs to attend to.

If you installed WordPress using Cpanel/Fantastico, you can probably wait a few more days before doing a fuss-free upgrading (though some users have reported problems with this method).

You can also install the WordPress Automatic Upgrade plugin which, in Keith’s word, helps you to easily upgrade your wordpress installation to the latest version provided by wordpress, without having to download or upload any files. This plugin has proven useful for those who got it to work.

I promise myself to try out Keith’s plugin one day but for now, I’m still doing manual upgrading. I just feel more secure and in control :)

To shave time off the manual upgrade method, you can upload the changed files (98 files) instead of the whole 2.5.1 package (531 files). That should therotically save you 80% of your time. To download the changed files package, visit this link, scroll to the bottom and click on Zip Archive to start download. Happy upgrading!

Share This | Read on | 5 Comments


How You Can Get $72 Discount on EasyCGI Web Hosting Plans

March 26th, 2008 Blog

Update: Offer no longer available. View more webhosting plans here.

Now you can save $72 off on all their hosting plans. Simply signup for a new plan with my referral link and earn $72 cashback, credited into your PayPal account. Genuine offer, no scam, no spam, no discount coupon required.

Since its inception in 1998, Easy CGI has consistently ranked among the top 10 Web Hosting providers worldwide. With thousands of hosting companies to choose from, it’s no easy task to pick a company that provides the best service and support. Easy CGI is committed to making your web hosting experience the best it can be. And this offer makes it even more affordable for you to try out their service.

EasyCGI web hosting plan

How much you will save on EasyCGI Hosting Plans?

Basically you save $6 every month for 1 year

Advanced
- 350 GB Disk Space
- 3500GB Bandwidth Transfer
- $7.96/mth Now $1.96/mth

Advanced X2
- 500 GB Disk Space
- 5000GB Bandwidth Transfer
- $15.96/mth Now $9.96/mth

Advanced X4
- 750 GB Disk Space
- 7500GB Bandwidth Transfer
- $21.96/mth Now $15.96/mth

Procedure

What you need to do

  1. Click on this link and signup at EasyCGI. Don’t close this window yet. After finishing, return to this page.
  2. Send an email to “webmaster@ericulous.com” with subject as “EasyCGI Cashback”
    Copy and paste the following

    ID: easycgi05190223
    Hosting Plan: < delete whare appropraite: Advanced/Advanced X2/Advanced X4 >
    Name: < enter name >
    PayPal email: < enter paypal email >
    *if possible & recommended, copy & paste your order details from EasyCGI

What I will do when I receive your email

  1. Verify that your order is recorded in my system
  2. Verify that EasyCGI has accepted your order (may make take up to 45 days)
  3. Credit USD72 cashback to your Paypal

Terms & Conditions

- Only for new 1 year webhosting plans signup
- Requires a PayPal account. Signup up for a free account at http://paypal.com
- Offer ends on 15th April 2008

Keywords: discount coupons, web hosting, domain registration, rebate, cashback

Share This | Read on | 2 Comments


Plugins Update: WordPress v2.5 Compatible

March 18th, 2008 Blog

These plugins were tested ok on v2.5 beta. Without any major surprises, they should be working fine when v2.5 gold is released.

Announcement
- “Different message for different roles/users” feature fixed
- Removed TinyMCE (appears more troublesome than helpful based on feedback)

Pre-Publish Reminder
- Reminder List shows up in correct places
- Move to a folder structure

YouTube Comments
- Suppress errors/warnings; enable script to continue fetching comments instead of dieing

Share This | Read on | 4 Comments


Testing of Plugins and Themes on WP 2.5

March 10th, 2008 Blog

Themes

All themes should work fine in WordPress 2.5

Plugins

Feedburner SiteStats
Working fine.

Announcement
Working fine, except for the feature “Different message for different roles/users”.

Pre-Publish Reminder
Broken, reminders showing up in the wrong places due to new admin interface

YouTube Comments
Broken, unable to fetch any comments

Todo

Will fix the broken plugins once I digest the documentation.

Share This | Read on | 3 Comments


Video Tutorials For WordPress Users

March 7th, 2008 Blog

Quick List:

Installation
» How To Install WordPress Blog From Cpanel
» Installing WordPress To Your Free Hosting Server Part 1/3
» Installing WordPress To Your Free Hosting Server Part 2/3
» Installing WordPress To Your Free Hosting Server Part 3/3
» Installing on a Local Server
» How To Edit the wp-config File For WordPress
» How to Upgrade WordPress

Posting
» How to Post to a WordPress Blog
» How to Make a New WordPress Post
» How to Insert an Image & Make It a Link
» Insert Text from Word or Other Doc
» How to Wrap Text Around an Image
» How to Make a New WordPress Page
» How to Edit a WordPress Page

Themes
» How to Activate a New WordPress Theme
» Install Theme In WordPress
» How To Tweak or Edit Your WordPress Theme
» How to Put Adsense on Your WordPress Blog
» How To Create A Custom WordPress Page Template
» Make a Static Page Your Home-Front Page
» Custom WordPress Homepage (Method1 Raw code)
» Custom WordPress Homepage (Method2 WP Admin Panel Homepage)
» Custom WordPress Homepage

Plugins
» Install Plugin in WordPress
» Install Plugin in WordPress
» WordPress Plugin Creation

Search Engine Optimization
» SEO Your WordPress Blog – Part I
» SEO Your WordPress Blog – Part II

Administration
» Recover WordPress Password When You Have Forgotten It

(more…)

Share This | Read on | 7 Comments


Firefox Addon: Show Missing Images

February 19th, 2008 Blog

By using the supercool userscript compiler, I compiled the Show Missing Images Greasemonkey Script to a standalone Firefox Addon. Now there’s no need to install the greasemonkey firefox addon. Here’s a little background on the need for this addon.

Help me if you have an account on Mozilla Add-ons: Currently this addon is in the sandbox, please give a short review for this addon so that it can make it to the public site. Thanks! Here’s the link to my Firefox extension.

Features

  • Display missing images regardless of ALT tags
  • Mouseover broken image to view the original image’s source url

Preview

Missing Images in Firefox with Show Missing Images Firefox Addon

Download

v0.3 for Firefox 3.5
v0.2 for Firefox 3.0
v0.1 for Firefox 2.0

Share This | Read on | 14 Comments


Greasemonkey Script: Show Missing Images

February 12th, 2008 Blog

Firefox handles missing images in different ways depending on the ALT attribute.

Case 1: Missing Image with No ALT attribute
- Display a broken image

Case 2: Missing Image with ALT=”"
- No indication whatsoever, just a blank space

Case 3: Missing Image with ALT=”Something”
- Display only the text in ALT, no image placeholder to indicate presence of image

Picture: Missing Images in Firefox
Firefox Missing/Broken Images

I guess Firefox is conforming to the W3C standards of displaying the ALT text if the image is missing/broken or unavailable. However this can prove to be a hassle for web designers as they can’t easily tell whether there are any missing images on their webpage. Worse, they may not even be aware of any missing images. Until they view the webpage in IE (Microsoft deserve some love eh :) )

Picture: Missing Images in Internet Explorer
Missing Images in IE

So I came up with my first Greasemonkey script which does only one simple thing – display all missing images, just like in IE.

Features

  • Display missing images regardless of ALT tags
  • Mouseover broken image to view the original image’s source url

Installation

1) Install Greasemonkey Firefox Addon and restart Firefox (if not already installed)
2) Click on the “Download Now” link below
3) Click install

Preview

Picture: Missing Images in Firefox with Show Missing Images GM Script
Missing Images in Firefox with Show Missing Images GM Script

Download

Share This | Read on | 11 Comments


Theme Bugfix: Blogging Pro

February 5th, 2008 Blog

This theme is not designed by me but I am using it at phpBBcast.com. Came across some bugs and just like to share the fixes for them. These changes applies to a fresh Blogging Pro Theme [widgets ready]. If you have modified it or using the non-widgets version, the following code snippets may vary.

1) If you do a search and click on “Previous Entries” in the search results page, it brings you to the main blog’s page 2 (instead of the search results page 2).

File to be edited: header.php
Replace

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

With

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">

2) Non-align search corner in Iternet Explorer
BloggingPro Search Corner

File to be edited: header.php
Replace

<div class="SearchCorner"></div>

With

<div class="SearchCorner">&nbsp;&nbsp;&nbsp;&nbsp;</div>

3) Top blue bar does not show up intermittently
BloggingPro Missing Header

File to be edited: style.css
Replace

#bgcontain { width: 100%; background: url(./images/bkg_bgcontain.png) repeat-x;}

With

#bgcontain { width: 100%; }

4) Footer with extra space and characters in Internet Explorer
BloggingPro Footer

File to be edited: footer.php
Replace

<?php do_action('wp_footer', ''); ?>

With

<ul><li></li></ul>
<?php do_action('wp_footer', ''); ?>
Share This | Read on | 9 Comments


WP Theme Update: GreyBlog & SoftwareHolic

February 4th, 2008 Blog

GreyBlog has been gettext enabled by Henrik Schack and Danish translation for the theme is now available for download here. Thanks Henrik :)

Update 17 Feb 2008: SoftwareHolic Theme.also received the same treatment :)

Share This | Read on | No Comments


Theme Bugfix: SoftwareHolic

January 13th, 2008 Blog

The bug shows up in IE6, on all pages except homepage. You will see missing images in the header (red crosses). You can download the latest zip here, upload and replace only the header.php. Alternatively you can apply the following changes to the header.php file.

Replace

<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url') ?>/pngfix.css" />
<![endif]-->

With

<!--[if lte IE 6]>
<style type="text/css">
img.png {
    background-image: expression(
        this.runtimeStyle.backgroundImage = "none",
        this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
        this.src = "<?php bloginfo('template_url') ?>/images/transparent.gif"
    );
}
</style>
<![endif]-->
Share This | Read on | No Comments


Top 8 WordPress Theme Directories

January 7th, 2008 Blog

List is sorted by Google PageRank. Should be a useful reference for WordPress theme authors on where to share their masterpiece. And theme shoppers should go where theme authors go ;)

wpThemesFree
wpThemesFree (PR6)
Collection: 1870 themes
Submission: Fill in form (No registration required)
Approval: Manual review
Link Juice: DoFollow
Note: theme zip file hosted by wpThemesFree, author unable to update themselves

Free WordPress Themes
Free WordPress Themes (PR5)
Collection: 1182 themes
Submission: Register and fill in form
Approval: Auto approve
Link Juice: No juice, 302 redirects
Note: 1) theme zip file hosted by freewordpressthemes, author ABLE to update themselves, 2) No link juice but gallery is run by Splash Press Media, whose network includes Performancing, The Blog Herald and more.

Fresheezy
Fresheezy (PR5)
Collection: 241 themes
Submission: Fill in form (No registration required)
Approval: Manual review
Link Juice: DoFollow

wpSnap
wpSnap (PR5)
Collection: 148 themes
Submission: Register and write post in WordPress
Approval: Manual review
Link Juice:: Selective NoFollow?

Weblog Tools Collection
Weblog Tools Collection (PR4)
Collection: Undeterminable
Submission: Register and post in forum
Approval: Manual review
Link Juice: DoFollow

Themes-WP
Themes-WP (PR4)
Collection: 796 themes
Submission: Register and fill in form
Approval: Manual review
Link Juice: DoFollow
Note: theme zip file hosted by Themes-WP, author unable to update themselves

Kate Theme Viewer
Kate’s Theme Viewer (PR4)
Collection: 617 themes
Submission: Register and fill in form
Approval: Manual review
Link Juice: DoFollow
Note:
theme zip file hosted by Kate, author unable to update themselves

Themespack
Themespack (PR4)
Collection: 129 themes
Submission: Register and write post in WordPress
Approval: Manual review
Link Juice: DoFollow

Share This | Read on | 7 Comments


WP Plugin Update: Genki Youtube Comments 1.1

December 7th, 2007 Blog

A new Youtube API was released into the wild on 28 August 2007. The old REST/XML-RPC API was supposed to continue to work for at least a year, till August 30th, 2008. So I thought I have plenty of time before I need to update the Genki Youtube Comments plugin.

Unfortunately a few weeks back, the comments feed in the old API was removed and broke my plugin. After some quick reading and patching, the plugin is playing nice again :)

No new features from the new API except now we can grab the last 25 comments (up from 10). Give v1.1 a download here

Share This | Read on | 2 Comments


How to Improve Search Function in WP [Using Google]

October 24th, 2007 Blog

Continuing from my previous post on improving WP search function using plugins, I’m going to show you how to integrate Google Custom Seach Engine into your blog. Live demo here.

Advantages include:

  • Results are sorted by relevancy
  • All content in posts/pages (e.g comments) are searchable
  • Make some money by displaying relevant ads using AdSense :)

Hold your horses!

First we need to find out how well Google has indexed your blog. If your blog isn’t properly indexed, Google can’t return relevant results and that would defeat the whole purpose of outsourcing the search function. In that case, you are better off sticking to using search plugins.

Now go to google.com and type in the following and replace my blog url with your own blog.

site:ericulous.com

You will see the number of of pages indexed by Google and of course the search results. Does the number of pages tally with your blog? Are you liking the results returned? There’s no hard and fast rule here. Generally if you have a established blog, you need not worry much. Whereas fresh blogs might not be properly indexed (yet).

Google Custom Site Search

With that out of the way..

Step 1: Create a Custom Search Engine for your blog

A. Login to http://www.google.com/coop/cse/
B. Click on the “Create Custom Search Engine” (big blue button)
C. Fill in the form (sample as below)

CSE Sample Form

D. Click “Next” button and on next screen, click “Finish” button
E. Click on “Control Panel” and then on “Code”
F. Specify the url in your site for the search results to appear (http://ericulous.com/googlesearch for me)
G. For ads, I opted for “Top & Right” (remember to enter your adsense id in “Make Money” tab)

CSE Control Panel

H. Leave this window open as we’ll need to copy and paste the “Search box code” and “Search results code” later

Step 2: Modify theme files

I will be using the Default WordPress theme for illustration here. Adapt to your theme as and where needed ;)

A. Modify searchform.php
Replace following with the “Search box code” in Step 1H

<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>

B. Create a new page template
1. Duplicate a copy of page.php and rename it googlesearch.php
2. Open googlesearch.php and add the following code at the top
(before < ?php get_header() ?>)

<?php
/*
Template Name: GoogleSearch
*/
?>

3. Replace following code (for maximum width)

<div id="content" class="narrowcolumn">

with

<div id="content" class="widecolumn">

4. Delete the following code (to remove sidebar for maximum width)

<?php get_sidebar(); ?>

5. Delete the following code

<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

and in place, add both the Search box code and Search results code in Step 1H

Step 3: Create a new page in WordPress

A. Go to Admin Panel > Write > Write Page
B. Enter a page title
C. On the right menu, look for “Page Template” and select “GoogleSearch”
D. On the right menu, look for “Page Slug” and enter “googlesearch”

Now you have the King of Search at your bidding :)

Share This | Read on | 1 Comment