Archive for April, 2009

How to implement Google Analytics in your Simple Machines Forum

Sunday, April 26th, 2009

Simple Machines Forum is today’s trend in bulletin boards.

It’s almost the same implementation of wordpress, here’s the quick and dirty way of implementing your google analytics, woopra, sitemeter or whatever you use to check your Simple Machines Forum’s web statistics.

Step 1: Create an include file for your Google Code.

Paste the following code in an empty text file and save it in /smf/Sources as /smf/Sources/analytics.php (.html or .htm will do)

Replace UA-#######-# with your Web Property ID from your web analytics account.

Step 2: Find the  index.template.php

Find your theme directory. Typically it will be the theme folder beneath /smf/Themes.

Open the file /smf/Themes//index.template.php

Step 3: Insert on line of code before the closing tag
Open index.template.php in a text editor.

Search for with </body>
You will find the following lines of code:

echo ‘
<div id=”ajax_in_progress” style=”display: none;’, $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? ‘position: absolute;’ : ”, ‘”>’, $txt['ajax_in_progress'], ‘</div></body></html>’;

Break the last </div> like this:

</div>’;

require_once’analytics.php’;
echo ‘</body></html>’;

Save the file and you’re done.

Testing.

View source your site, check if there’s google analytics before </body>

Enjoy!

Popularity: 21% [?]

Can’t edit category slug problem

Monday, April 6th, 2009

If you are new to wordpress and by chance you need to edit a category post slug, after doing so and checking the category link. You realize that the category slug you just changed didn’t change to the way you wanted it to be.

For example, I wanted the sub-category mmo-pc changed to mmo-games but instead it changed itself to mmo-games-pc. What could be the problem?

This problem occurs if you have the exact slug named to tags. Before, I have a tag named “mmo-games” in which causing the problem. After searching for that particular tag “mmo-games” and deleted it. I go back editing the sub-category slug “mmo-pc” to “mmo-games”. Viola, problem solved.

So make sure you don’t have identical name for tags and categories.

Popularity: 8% [?]

How to get things done, Less is More philosophy

Wednesday, April 1st, 2009

Lately I got buried with tons of work, as a white-collar worker we are just bound to do/make things to make money. While being in this state, it seems for me that time is always in the essence and vital to accomplish all pending works. Like all trials in life, we struggle, learn, and succeed. We become strong and found ready-made solution that will serve as tools to help us in our future trials.

How to get thigns done, Less is More philosophy

“Less Work, More Work”

This is what I think first before I start a project, “Less Work, More Work” may sound contradicting to you but its an effective mindset to start with. Now why “Less Work, More Work”?

It basically means, Less Time to finish a job and More time to some more. Lesser time to do things, means more time do more. Ergo, your productivity rate will increase and “grace” you will get. Analyze first your gameplan on how to fnish the project and you will find that you will be saving a lot of time of doing it. You will soon realize, “I’m done, …Next!” :)

The Solution of Complexity is Simplicity, embracing the KISS rule

Like what I said in “I’m always out of time”, KISS rule is essential also to save you more time. Life is just making a “program”, it’s a yes or no choice,  if don’t make things simple then things will get really complex.

Love what you do, if you don’t then get out of it.

If you don’t love what you do, indeed you will get bored. Life is really offering a lot of options to choose or decide from. Fascinate with the problem, be amazed with it, picture out how good will it be after “you” getting it “done”. Creative people don’t find motivation, they motivate themselves. You are what you are and we only have one shot in life, live it to the fullest by making small things such as work to gain confidence and happiness in life. Just think what I said about simplicity, more work to be done – more money – and more money will lessen your financial burden. I’m not telling you to be materialistic but let’s face it. Money is essential in our generation, now that we (the whole world) is facing economic crisis. Not just you help yourself, your family but also the economy itself.

Optimize your mind

Seriously, the human body is the perfect computer. We have the ability to “defrag” ourselves, remove things that clutter us to be productive. Clear away all distractions during work: email, youtube, IM or anything that eats one or more minutes of your time while working.

In this state, you may say “this will overwork me, will get me bored”. I know, and I also suggest allocate some time to free your mind. Play games, take a nap, watch something funny just to revitalize your mind.  Just do these things to put gas in your engine, don’t do this frequently though. Limit this, but make sure to make out of it. Patch Adams, advocates “Laughter is the best medicine, happiness removes illness”. It also applies on recharging your “mind battery”. Laughter is an  all in one medication for the mind, the body and the soul to be strong.

Focus on one project, and you will realize that its done. You will be craving for more, but you will not be one of those “workaholic-killing-my-body” type. Think, I work to make my body, life, and family better.

Finally, reward yourself. Take a good nap, eat w/ the family, dance with your wife/husband. Watch pixar/disney movies with your kid like “Ratatouile”, “Bolt” or “Chicken Little” (my kid’s favorite).

or just grin away looking at the project done.

and start the evil laugh… bwa hahahaha hahaha haha! >:)

Popularity: 8% [?]