Pages

3 Must Have Features On Tumblr Blog

I know this is a Google Blogger blog, but I am also running few other automated blog on Tumblr. Tumblr is a great blogging platform, but it is lacking some good features like WordPress had.

Here are 3 must have features to put on your Tumblr blog.

1. Redirect 404 page not found error to a random page. 

2. Tag Cloud with different color.
 
3. Related blog post with thumbnail.


It will be nice to show page like that on Tumblr. This is how you do it.

Adding Previous And Next Post Link On Tumblr

While trying to creating a new Automated Tumblr site for AdSense Passive income, I found many of the Tumblr template do not have the Previous and Next post link included. This means the visitor won't be able to check out your previous or next post easily. To lower the bounce rate and increase the click through rate on your website, adding previous and next post link is one of the easiest way to keep visitor stay longer on your site.

So I found out the solution to add previous and next post link on the Tumblr site.

{block:PermalinkPagination}
    {block:PreviousPost}  < a href="{PreviousPost}" class="menu_item pagination_link">« Previous< /a>{/block:PreviousPost}
    {block:NextPost}  < a href="{NextPost}" class="menu_item pagination_link">Next »< /a>{/block:NextPost}
{/block:PermalinkPagination}

Simply put the above code to the  place, where you want to show the pagination link on the single post page. 

Easy SEO Title Fix On Tumblr Blog

One of the biggest problem on Tumblr is the SEO. You put up a blog and post all your thoughts and photos. You end up have duplicated title tag on Google search result.

So here is the quick fix. It will generate different title tag based on the page and content.

Ideally, we want the index page showing site title and page #. We also want to show page summary as title on single page regardless what content type you post. Please note the photo, video and voice page will not have regular PostTitle, but they all have PostSummary (if you enter any text). On tag and search page, I also want to show the search query, tag and the page number.

This will unique title tag on every single page on your Tumblr site.
< title>{block:IndexPage}{Title} {/block:IndexPage}{block:PermalinkPage}{block:PostSummary}{PostSummary}{/block:PostSummary}{block:PermalinkPage}{block:TagPage}Everything About {Tag}{/block:TagPage}{block:SearchPage}The Truth About {SearchQuery}{/block:SearchPage} : Page {CurrentPage}< /title>

Wala! Make sure you also remove the white space after the < symbol.

You need change the text for Tag page and search page to use your own terms. 

You can see it in action on my truth blog.

Turn Tumblr Blog Into AdSense Income Stream

Tumblr is one of the most popular blog platform on the planet. It already pass WordPress as the #1 most used blogging platform. Tumblr is so easy to use and can easily adding new content through their API or mobile app. However, there are many people doing it wrong.

What I want is to insert the 468x60 AdSense banner into my second post on the home page and on the single post page. I also want to add 300x350 square banner on the right side bar. The most important think is to skip the loop by inserting the following two tags. See attached image. 
{block:PermalinkPage} - Insert code on the single post page
{block:Post2} - Insert content only on the second post on the home page.

Codeigniter Shows Blank Page PHP + MySQL + Apache + Windows 7

Recently, I started a new development on one of my laptop running Windows7. I install PHP 5.3.6, Apache 2.2, MySQL 5. I move all the source code that was previously developed based on CodeIgnitor 1.7.

Problem

It shows blank page when I load the site on my laptop's localhost. 

Solution

Well. The solution is farily easy. If Codeigniter can not detect the mod_mysql module in PHP when the page is loaded, it doesn't return any error message.
  • So you need to make sure you enable the mod_mysql in your PHP.ini file.
  • Also make sure your .htaccess file is redirect correctly, if you are using Search Engine Friendly URL. Make sure mod_rewrite module is enable in your Apache httpd.conf file.

It's just that easy! A simple check will save you lots time. 

Blank Page With URL Parameter fb_xd_fragment

I am still not sure why it causes the page to display blank content when someone hit the site with the Facebook social plugin and URL parameter fb_xd_fragment.

Here is the temporary fix to display the content, however, it will disable the Facebook widget.

Problem:
I found this occurring on one of my sites using AddThis - and it affects ALL browsers, not just Internet Explorer. Haven't figured out exactly how or why it happens but the Facebook frame manages to set the parent's element to display: none.
Solution:

Add the following lines to your main style file.

html { 
    display: block !important;
}
Read the original post!

Magento Shows No Product and Categeory

Magento E-Commerce Community Edition
It took me 20 minutes to figure out why the products and categories don't show up on the front page of the Magento e-commerce store.

  • The product has to be in stock, enabled and has positive inventory quantity.
  • Make sure the category is under the "Default Category"

It's important to make sure every configuration values is set correctly. Magento is a powerful e-commerce system. Without setting the values and configuration right, the site won't function correctly.

Magento 500 Server Error After Installation

Magento E-Commerce Community Edition
This is a simple solution for Magento shopping cart software. After install the Magento software on the server, it generates 500 server error.

The solution is to change the file permission for index.php file to 755.

That's it!

Disable Administrator Login on Windows7 Welcome Screen

Here is the easiest way to disable the Administrator account login screen on Windows7 welcome screen. You have to make sure the current user has administrator access to run the dos command prompt. If you were having trouble fixing your computer's hosts file access denied issues due to the sypware or virus on your computer, you can find the answers here.

According to http://support.microsoft.com/kb/555910
To enable the build-in Administrator account, follow these steps:
1. Click Start, and then type cmd in the Start Search box.
2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
3. When you are prompted by User Account Control, click Continue.
4. At the command prompt, type net user administrator /active:yes, and then press ENTER
5. Type net user administrator , and then press ENTER.
Note: Please replace the tag with your passwords which you want to set to administrator account.
6. Type exit, and then press ENTER.
7. Log off the current user account.

To revert do exactly the same thing but change
net user administrator /active:yes to
net user administrator /active:no

Stop Remote Comment Spam Bot on WordPress Blog

SPAM!
Image Source: SPAM Courtesy Of: MasterMan

If you are running WordPress blog, you may already suffer the lost of your valuable time on fighting for the remote comments submitted by the Remote Comment Spam Bot. It's a known issues with WordPress and there is a work around solutions.

Block WordPress Remote Comment Spam Bot


Your can Read Terence Chang's Living The Dream Lifestyle blog and find out the solution he improved that has stop the spam bot.

CodeIgniter image_lib bug in the image process loop

This bug has me scratch my head for hours and finally found the solutions to fix it.

In CodeIgniter, you can upload multiple images and do resize, crop and watermark stuff. It's cool that you can use one library to do many awesome stuff. However there is problem when using image_lib in the loop.

Problem:

I upload few image and want to loop through each one of them and resize them differently based on their original size. So I put the resize function in the loop. However, the dimension is based on the previous image.

For example. the first image is resized to 100x200. The second image should be resize to 50x100, but is resized to 100x200. The third one should be resized to 400x300, but is resized to 100x75.

In other words, the second image was resized using the dimension from the previous resized image based on the second image's longer side (W or H). The first image was resized to 100x200, so the second image was resized to 100x200 because the original dimension of the second image was 50x100 (Height is larger than width). So it take the first image's height to resize the second images. Crap!


Solutions:
In the image_lib in CodeIgniter, there is a function to clean the setting ($config). However, there is missing parameters in the function.

So I add two lines in the function clear().

$this->width = '';
$this->height = '';
Add the above two lines before closing the function.

Problem solved!

Facebook Social Plugin load page twice on Firefox and Google Chrome

There is weird issues with FireFox and Google Chrome. The page will be loaded twice, if Facebook Social Plugin such as LIKE button installed on your site.

There is a solution post on Terence Chang's blog!

Prevent Facebook Social Plugin to load page twice – CodeIgniter

iPhone is not recoganized on XP / Vista as Camera drive

In some case, the USB driver was not working right so iPhone is not recognized as camera drive or external storage drive.

Here are the step to make it works.

  1. Connect your iPhone by USB
  2. Open Windows Device Manager (right-click My Computer and select Manage). You may find your iPhone under “Universal Serial Bus Controllers” or possibly under “Portable Devices”.  At any rate if your phone can sync with iTunes it will be in there somewhere.  It should be called Apple Mobile Device USB Driver.
  3. Right-click and select “Uninstall” but don’t remove the files from the PC.
  4. Disconnect your iPhone and reconnect. You should see the iPhone showing as one of the camera drive or external storage.

In case you still not seeing your iPhone showing up. Make sure you have at least one photo in your Camera Roll.

Fix YouTube overlay issues with WordPress Menubar

Problem:
YouTube Video is covering up the menu bar. It's due to the flash play that has the top priority.
 
Solutions: 
Add the wmode=opaque parameter to the embed code. 

< object width="460" height="307" VIEWASTEXT>
 < param name="movie" value="src="YOUR_YOUTUBE_URL_HERE"">
 < param name="allowFullScreen" value="true">
 < param name="allowscriptaccess" value="always">
 < param name="wmode" value="opaque" />
 < embed src="YOUR_YOUTUBE_URL_HERE"
  type="application/x-shockwave-flash"
  allowscriptaccess="always"
  allowfullscreen="true"
  width="460"
  height="307"
  wmode="opaque">
 < /embed>
< /object>

iPhone Google Active Sync Stop working - Keep asking password

iPhone Google Active Sync keep asking to enter correct password. There is chance that the Captcha is locked. To unlock it visit the following site and enter the correct Google account.

https://www.google.com/accounts/UnlockCaptcha

Zenith DTT900 Digital-To-Analog Converter For Remote Control

To use the Zenith remote control to turn on the TV, press the "Power TV" button and keep pressing. Then press "Ch. Up" or "Ch. Down" button on the right. Zenith will send "manufacturing code" to your TV. Once the TV turns on/off (do this little slowly), then you're set to use the same Zenith remote for both TV and the converter box.

Source:
http://reviews.pricegrabber.com/tv-accessories-and-mounts/m/63677291/discussions/thread/449643/

Use These Ten Sales Copy Approaches To Beef Up Your Online Sales

Source:

These 10 secret methods will work for you and hopefully improve your conversions and profits.

1. The "Blast From The Past" Approach
The "if you order today, you will also receive all the past (bonuses or products) that I've previously removed..." approach tells potential customers that in the past you removed some things from your offer that they would never have had the chance to get until now. It could be older products, articles, reports, software, courses, content, etc.

2. The "Bought Everything" Approach
The "like you, I've bought products from everywhere imaginable and they still didn't work..." approach tells potential customers that you know that they have likely bought a lot of products from all sorts of places which never lived up to their claims. You could mention they may have bought them from infomercials, catalogs, the Internet, seminars, etc. You can say that after all those horrible experiences, you finally decided to develop a product that actually works.

3. The "A Bonus Date" Approach
The "special bonus just added! (date) (time)..." approach tells potential customers that you recently added a new bonus to your offer. It may excite them that it has just been added because they will be one of the first to get it. You could even tell them the date your next new bonus will be added. They will assume they will keep getting new bonuses as a paid customer.

4. The "Buyer Advantage" Approach
The "all my paid customers get told about my new product releases before my regular prospects...." approach tells potential customers that if they become a paid customer, they will get a chance to benefit from your new product releases before everyone else. You could give your paid customers another perk, like being the first to join your new affiliate program for the new products you release.

5. The "Buy A Bio" Approach
The "I'll reveal more about my past with you when you become a customer..." approach tells potential customers that they can learn more personal and professional things about you when they purchase your product. You could have a partial bio on your web site and a full bio sent with their product package or on your thank you page. Many people become curious about your whole life and history when they decide to purchase something from you.

6. The "Inside The Mind" Approach
The "go inside the mind of successful people that have (your product's benefit)..." approach tells potential customers that you will give them the mental instructions for using and gaining their desired benefit with your product. You could mention they will learn the habits, attitudes, beliefs, mindsets, emotions, etc. of other people that have been successful with your product. You could just interview these people and compile it into an information product.

7. The "Bed Of Nails" Approach
The "I'd rather lie on a bed of nails than not have (your product's benefit)..." approach tells potential customers now that you know what it's like to have your desired benefit with your own product or one from someone else, you would do almost anything not to go back to the way it was. You could explain the emotions you used to have, the problems that you experienced, the way if affected people around you, etc. Other descriptions of torture are: walking over glass, needles shoved under your finger nails, lying on hot coals, etc.

8. The "Back You Up" Approach
The "bonus: you'll get a back up copy shipped to you..." approach tells potential customers that you will give them a physical back up copy of your digital product that they normally just download. Tell them it will save them the time and frustration of re-downloading it if their computer crashes, if they get a destructive virus, if they accidentally delete it, etc. Tell them to hurry because you only produced so many copies.

9. The "My Favorite" Approach
The "my favorite food is..." approach tells potential customers that you are revealing some fun, personal information about yourself that is unrelated to your product. It will lighten up your sales letter or pitch so people might rest their buying defenses for a few minutes. It could be your favorite color, TV show, movie, music, joke, heroes, drink, place to vacation, quotes, vehicle, book, dream item, etc.

10. The "Normal Than Usual" Approach
The "the normal commission is $(no.) per sale but if you join the affiliate program through this link, you'll get ($) per sale..." approach tells potential customers that you made a deal with the product owner to give your audience a higher commission than normal on his affiliate program. Of course, the owner could give you second tier commissions for telling your prospects about it. It's a win/win deal for everyone involved.

Marketing ides

Source: Fastlane by MJ
1) Press releases ... a great way to get FREE publicity. Because the cause is good and somewhat newsworthy, there is a good chance that it might be given airtime on major news outlets. If not, the release still might get picked up on news aggregators on other websites. The other benefit to good PR is you might get calls from media outlets that want to use your product in some sort of promotion (A cable TV cooking show for example)

2) Partner with websites that cater to your target market. Could be gourmet foods, chefs, recipe sites, or even charitable foundations. Obviously, the type of partner / joint-venture arrangement is dependent on your offer and what you are capable of supporting, tracking, and executing. It can be an extravagant arrangement involving revenue shares, product placement, or something as simple as link exchanges.

There are two entities you can approach -- 1) The product (jams, jellies) and 2) The good cause of helping disadvantaged children.

I think as you dive into marketing, you will see which entity approach provides you the most traction.

3) Traditional PPC campaigns targeting all your products specifically. I'd think that your keywords would be fairly cheap -- examples, "peanut butter jam" "amish family recipes" etc. When you start dabbling in the generic words "recipes" then things get quite costly and competitive.

4) Traditional SEO -- again, each product you offer should have its own page that specifically promotes that product. This will help your organic rankings for specific product searches which is how most people search.

5) Affiliate programs -- start your own affiliate program or join a management network. When your affiliates sell your product, you pay them a cut. To find affiliate networks that you can join, hit Google and type in "AffiliateNetworks". Do your diligence on these as they can get costly and some have affiliates that are just plain horrible.

6) Attempt to create a community whereas users can see the benefits of their work. As with all donations, people LOVE to see their money at work. If people don't see their money at work they are less likely to give. I know this is a content issue moreso marketing, but creating community generates traffic and buzz. Word-of-mouth is the best marketing tools available. Perhaps a "Children who have been helped" and their pictures and what kind of help they received.

7) Free giveaways - Promote a giveaway, a contest, or something and promote it on your site, your MySpace/Facebook pages etc. Perhaps a "Jam of the Month?" or a contest? Giveways are great -- just an example right here -- the daily visitors here spiked 40% when I offered D. Kennedy's FREE book. While the traffic spike might be temporary, it surely will increase quality users over the long haul which is the long-term goal. Contests can also be promoted via Press Release.

8) Post articles to article websites pertaining to either Amish Recipes or charitable causes. Allow users to DIGG them. Same goes for your own website.

Source: Fastlane by Andrew
I would suggest focusing on the public relations side and hitting it really hard. Ignore the advertising and SEO for now. Your business sells itself so you already have an edge. Build a contact list of journalists -- newspapers, magazines, cable news networks, local news networks, blogs, major web sites, and so on. Every single contact you make needs to be very focused and tailored to that specific individual. Look at previous work the reporter has written and figure out how to tie that into your first contact. Having the personalized approach is critical, and you will get responses, guaranteed.

PHP Header Location vs Header Refresh

This is very interesting tips about using PHP to do Redirect.

PHP Header with Location seem to redirect faster than using Refresh. Looks like Refresh will create the <meta> refresh tag and depends on the Browser to redirect. In FireFox, it will actually show a blank page before it redirects to destination page.

With Location option, it seems to redirect directly without showing the blank page.

header("Refresh:0;url=". $this->config->item('PF_HTTPS_ROOT') . '/member/signin/');


header('Location: ' . $this->config->item('PF_HTTPS_ROOT') . '/member/signin/', TRUE, 301);

Either ways, it will have a round trip between Server and Client's browser.

Handle PHP multiple choice select dropdown and checkbox

This took me hours to figure out that something was wrong in the PHP.

is_array() and count() can't really distinguish array() or string, if there is only one element.

For example.

$test = array('123');
is_array($test) will return true;
count($test) return 1

$test = '123';
is_array($test) will still return true.
count($test) will still return 1.


So there is no point to check a submitted field from PHP form as an array or a string.

This will cause problem when handling multiple choice select dropdown box or checkbox.

In PHP multiple choice field will need to be name with [] after the field.

For example:

state_id[]
In normal case, if the select box only accept one selection, the field name will be just state_id.

This confuse the PHP form validation. It returns just one string. So you will get error message when handling it with foreach loop.

for example
foreach($_POST['state_id'] as $state_id)
You will get an error like this.

Severity: Warning

Message: Invalid argument supplied for foreach()

Solutions:

No matter the select dropdown box allows to choice one or multiple options, always use multiple format. In other words, always use [] after the field name in the html form.

It will work with the validation process and treat the field as array as always.