How to create your own WordPress Author page

Chances are, you have added personal touches and tweaked your current WordPress blog’s theme and only to realise that there’s no author page included in your theme design. Ouch~!

With few easy steps, you should be able to create the author page on your current WordPress theme.

Step 1: Preparing the author.php file.

  1. A quick way to build up your author.php file is to duplicate it from other themes, most notably, the Twenty Eleven default theme. You are halfway there already!
  2. Navigate to your author page to see whether it works or not. In most cases, your author page is default at www.YOUR_DOMAIN.com/author/ADMIN. You can change your nickname from ADMIN to something else. See Step 2.
  3. Up to this point, you should be able to see all the details pumped out already except that the look and feel may be distorted, as the author.php file that you have is from other theme. Open up single.php of your own theme, replicate the html structure in there into your author.php. Replace everything in author.php except for the content between “<div id=”content” role=”main”>” and “</div><!– #content –>”.

Step 2: Picking your name (Optional)

Simply go to your WordPress database, and update the user_nicename field of your account. It should not affect any other functionality of the system.

Step 3 : To add visual editor/TinyMCE to your biography (Optional)

If you requires more than what the dull biography textarea has to offer, download this plugin – Visual Biography Editor and you will get the editor as good as what you get in the post editor.

Read More

Alright, I love my new theme

HugoLim.com is now kicking using thememagic 1.4 by Manish Gori. Clean and simple is the way to go.

Love love love the clean, sleek, simple design!

  1. Change the fxxking ugly theme that you are seeing now. It’s so out of the trend now.
  2. Blog. Blog. Blog.
  3. Microblog is good but blogging is still much alive. Wait, this is not a thing to do!
  4. Remove photo album hosted in this site as Facebook is so damn powerful tool to share photos among family and friends. (read: privacy)
  5. Work on pet project (not telling you what the name is but it’s here somewhere) that would replace my dedicated photo blog residing at photo.hugolim.com
  6. Server migration . I got a darn stingy crappy hosting service right now.

Alright, one item down of the things to do. And oh my, finally I figured out that I can make use of my idle ToDoAlive account that I got since the beginning of time!

Read More

WordPress theme goes wider and bigger

I’m excited to announce another wave of updates for my dedicated photography blog! This time, there’s actually 2 updates to the theme.

Photo caption fix

photo.hugolim.com

First of all, it’s about a bug fix which is actually quite unnoticeable to the masses. There are 4 columns at the bottom of the homepage whereby 2 latest photos shown. The description of the photo has been made to be the same as what is displayed in the photo slide show / stream above. Primarily, we do not want to see “Click on the photo to see larger size” appears in the caption at the homepage which is ridiculously irrelevant, isn’t it? It’s only valid when user goes into the blog entry.

Expand blog entry

photo.hugolim.com » Blog Archive » Panoramic Bayan Lepas_1256538526283

Secondly, it’s about serving better and wider range of photos.

Everything has gone wide these days seriously. You want wide wide highway to drive on to getting real big and wide screen display to play your HD videos. Heck, you can’t even buy a proper normal ratio (4:3 ratio with resolution like 1024×768, 800×600, 1280×1024) LCD panel on market as easily as 2 years ago now! Everything is wide, so do the photos and blogs. Okay, back to where we were.

For our case here, in particular, panorama. It’s a pain to the eyes when we are viewing something very wide like panorama like the scale of 5:1 (width:height). Just like the little long panoramic image that you are seeing above!

With just a click of button! Walah~

photo.hugolim.com » Blog Archive » Panoramic Bayan Lepas

The blog entry content pane is widened to as much as the template permits. This has made photo viewing much much much more flexible and satisfying. Hope you all like this little update.

Technically, of course, for those who are interested to get wide too on their blog too, read on.

Read More

Geopress to Geotag data migration

Just in case you decided to try other location tagging plug-in for your WordPress today.

I have developed a fairly simple data migration script so that you won’t need to go through the pain of re-adding latitude and longitude for the new plug-in in all your posts.

Essentially, you will need a bit knowledge on how to access your database administration. Typically, you will be using phpmyadmin to manage your WordPress database.

phpmyadmin

Here is how we do it.

  • Go to your phpmyadmin
  • Select your WordPress’s database, by default, it has a suffix/prefix of ‘WP’
  • Click on the SQL tab
  • Then, execute the following queries below.

Run this for its latitude…

insert into wp_postmeta (post_id,meta_key,meta_value) (select p.post_id, ‘_geotag_lat’, format(left(g.coord,instr(g.coord,’ ‘)-1), 5) lat from wp_postmeta p join wp_geopress g on p.meta_value = g.geopress_id where p.meta_key = ‘_geopress_id’);

And, run this query to retrieve the longitude…

insert into wp_postmeta (post_id,meta_key,meta_value) (select p.post_id, ‘_geotag_lon’ , format(right(g.coord,length(g.coord) – instr(g.coord,’ ‘)),5) lon from wp_postmeta p join wp_geopress g on p.meta_value = g.geopress_id where p.meta_key = ‘_geopress_id’);

I have migrated mine successfully. Hope it helps for you too!

Read More

photo.hugolim.com

You may have noticed the absence of updates over the past few days. I have been busy juggling with work (and repairing myself from sudden mood swing on the personal note), taking care of mylensdb.com, and designing a new brand new site!

I would like to call it, HugoLim Photography. It resides at photo.hugolim.com.

It has been years having my photography works blogged at this site and I’m feeling the need to have a dedicated one instead of mixing them with the rest of unrelated stuff like computers and geek-like programming junks.

How things started

CNN Daily Snapshot

I’m captivated by CNN’s Daily Snapshot website. It updates daily and show the most interesting event happened on the day. I like this idea. Thus, I’m thinking of its concept used to present its pictures.

The design

photo.hugolim.com runs on WordPress as it’s backbone and not on dedicated photo gallery application.

However, there’s something real cool about this site (yes, pardon me for praising my own website). As you can see from the screen shot of photo.hugolim.com below, the placeholder of the biggest picture will change itself showing the latest pictures posted.

And for every one day or two, a new photo will be posted on this site.

And at the bottom of the page, we can see the latest posts with thumbnails of featured categories (eg, landscape, nature, travel and people).

photo.hugolim.com Hugo Lim Photography

With this, I proudly announce, photo.hugolim.com is open for business! I like it very much, it’s design is so much better than this blog (shame on me). I really hope that you like it too.

Read More