December 24th in Wordpress by pbu .

Wordpress similar posts plugin not working?

I have been struggling to make this plugin working ever since i have upgraded to wordpress 2.9 version. No matter how many times i changed the setting, everytime i get this nasty message

“Posts None found”

no matter what.  I did place the similar_posts() code in the single.php page.

I have heard that the reason could be the problem with index and solution is to re-create the index from the admin settings menu. I installed the plugin and tried to re-create the index …

December 23rd in Wordpress by pbu .

Affiliate Hide – Free wordpress plugin to redirect affiliate links!

A very simple and useful Wordpress plugin to hide/cloak and redirect affiliate links based on custom fields. All you have to do is create a custom field `URL` in your wordpress post and specify the affiliate link there. This plugin can come in handy for gallery wordpress blogs where you are listing products or themes or services. Checkout this site and see how this plugin is practically used.

This plugin masks the affiliate links like shown below.

http://yourblog.com/jump/33 ——-> http://example.com
http://yourblog.com/go/33/ ——-> …

December 22nd in Wordpress by pbu .

How to manually upgrade wordpress from older versions

If you have a good old version of version of wordpress, then most probably you dont have automatic upgrade option and you have to do the upgrade manually. All new versions of wordpress have automatic upgrade option where you have to go to wp-admin > Tools > upgrade and all done with one click.

Here are the instructions you should follow if you are upgrading your wordpress from older versions.

Before you do anything.

Backup all wordpress files, mysql database.
Note down the …

December 22nd in Wordpress by pbu .

Problem with Custom rewrite rule in Wordpress

I was working with rewriting a custom rule for my wordpress plugin and i had a strange problem.

function aff_add_rewrite_rules( $wp_rewrite )
{
$new_rules = array(
‘^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]‘); //question mark ? resolves the problem

$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}

The above rewrite rule

^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]

simply refused to work, but it works for

^redirect/(.+)$’ => ‘index.php?go=$matches[1]

(.+) means anything including alphabets and numbers.

I only wanted the rewrite rule to accept numbers, not just anything and after researching a log, …

December 22nd in Wordpress by pbu .

Fix ->Wordpres plugin could not be activated fatal error cannot redeclare!

I have seen this error thrown up many many times while activating a wordpress plugin and the

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare similar_posts() (previously declared in /home/pbu/public_html/blog/wp-content/plugins/xxxx/xxxx:45) in /home/pbu/public_html/blog/wp-content/plugins/x/xxxx.php on line 46

The main reason why the plugin could not be activated is because there must be either a plugin clash using same function or a wordpress theme calling the plugin function using the same name ie. double declaration.

Placing the plugin code in …

December 22nd in Wordpress by pbu .

Where does wordpress store htaccess rewrite rules?

If you are thinking for one second the rules are stored in .htaccess in the wordpress folder, you are totally wrong. Infact these rules are stored in mysql database in the wp_options table under rewrite_rules field.

Checkout this site for complete list of wordpress 2.x rewrite rules

Although it is common for most php related applications save all the rules in htaccess files, it is not the case with wordpress.

which is why you will see only the default rules when you …

December 21st in Design, General by pbu .

How to create 3D transform of Images in Photoshop

I have often wondered how to create 3D images of simple graphic images or photos that i have seen in many blogs and websites. Even examples of source code or screeshots of themes look amazing with 3d transformations.

Creating 3d transformations for your 2d images is nothing but projection at various anges (transformation) is amazingly simple with photoshop.

To use a 3d transform filter, you can use 3d transform tool or other third party plugins like shown below.

3D Transform tool

Just import an …

December 14th in Wordpress by pbu .

Affiliate Hide v1.0 – Free Wordpress plugin to Hide & Redirect Affiliate Links

A very simple and useful Wordpress plugin to hide/cloak and redirect affiliate links based on custom fields. All you have to do is create a custom field `URL` in your wordpress post and specify the affiliate link there. This plugin can come in handy for gallery wordpress blogs where you are listing products or themes or services. Checkout this site and see how this plugin is practically used.

NOTE: MOVED HERE (New Version 1.2)

This plugin masks the affiliate links like shown …

December 7th in Games by pbu .

GTA Graphics looks much better in Xbox 360 than PS3

I have played GTA in both platforms and i hate to say that the graphics looks better in Xbox 360 than PS3 . I really didnt like the day time graphics with too much of glow and the game only looks good in night time.

I purchased Xbox 360 especially to play GTA – Episodes from Liberty city which is a downloadable new game currently only available on Xbox platforms. It is not available on PS3 or PC. If …

November 27th in Games by pbu .

Xbox 360 graphics issue in GTA episodes from liberty city!

I have experienced a graphics issue in my Xbox 360 playing GTA – Episodes from Liberty city where all the graphics looked so much grainy and lacked clarity. Added to that the game looked too much contrast and glow during daytime play and i have to admit that graphics was the best during night.

If you have ‘grainy’ graphics in your console, it is because of the noise option in the game settings. You can fix this problem in your game …