December 22nd in Wordpress by pbu .
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 …
December 22nd in Wordpress by pbu .
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 …
December 22nd in Wordpress by pbu .
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 …
December 21st in Design, General by pbu .
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 …
December 14th in Wordpress by pbu .
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 …
December 7th in Games by pbu .
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 …
November 27th in Games by pbu .
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 …
November 24th in Wordpress by pbu .
WordPress WP-PageNavi plugin will throw up this error in wordpress admin area if you are using older versions of wordpress and have not updated to latest one.
Fatal error: Call to undefined function: screen_icon() in html/wp-content/plugins/wp-pagenavi/pagenavi-options.php on line 109
To fix:
1. Either update your wordpress to latest version (or)
2. Download the older …
November 23rd in Wordpress by pbu .
I have been working on a wordpress theme recently and suddenly i felt the need to show up only top level categories (parent only) and disable all subcategories.
Eventually it was so easy with wordpress using wp_list_categories function. All you have to do is set the depth=1 to show only …
November 16th in Games by pbu .
I purchased sony playstation 3 last year and very recently i got Xbox 360 arcade version as well.
I immediately spotted that Xbox controller is about 5 times heavier than the PS3 controller and the 2 AA batteries contribute a major part of weight. The PS3 controller comes with …