Blackbird Pie is a method created by Twitter Media to easily embed a tweet on your site. Feed it with the tweet's URL and it will generate the necessary code for you to copy/paste to your site.
Monday, December 13, 2010
How to Embed Tweets In Your Posts
Blackbird Pie is a method created by Twitter Media to easily embed a tweet on your site. Feed it with the tweet's URL and it will generate the necessary code for you to copy/paste to your site.
Sunday, December 12, 2010
Fixing the Blackbird Pie Plugin - undefined function mb_strlen
If you are using the Blackbird Pie plugin to embed tweets to your posts, you might see an error message
To fix this, go to the Blackbird Pie plugin folder and open
[php firstline="17"]return mb_convert_encoding($swap,"UTF-8"); //not really necessary, but why not.[/php]
with
[php firstline="17"]if ( function_exists('mb_convert_encoding') )
return mb_convert_encoding($swap,"UTF-8"); //not really necessary, but why not.
else
return $swap;[/php]
At line 21 and 25, replace the line:
[php]$strlen = mb_strlen($string);[/php]
with
[php]if(function_exists('mb_strlen'))
$strlen = mb_strlen($string);
else
$strlen = strlen($string);[/php]
Save and upload the file to your server. It should work now.
via WordPress Support
Call to undefined function mb_strlen()
. The reason for this error is because the plugin is using the mb_strlen
function that is not activated by default. To fix this, go to the Blackbird Pie plugin folder and open
unicode.php
in your text-editor. At line 18, replace the line:[php firstline="17"]return mb_convert_encoding($swap,"UTF-8"); //not really necessary, but why not.[/php]
with
[php firstline="17"]if ( function_exists('mb_convert_encoding') )
return mb_convert_encoding($swap,"UTF-8"); //not really necessary, but why not.
else
return $swap;[/php]
At line 21 and 25, replace the line:
[php]$strlen = mb_strlen($string);[/php]
with
[php]if(function_exists('mb_strlen'))
$strlen = mb_strlen($string);
else
$strlen = strlen($string);[/php]
Save and upload the file to your server. It should work now.
via WordPress Support
Limit The jQuery Lazy Load Plugin to Operate Only In The Content Area
In WordPress, there are several lazy load plugins that you can use. One of my favorite is the jQuery Image Lazy Load plugin, simply because it just works the moment you activate it. No configuration is required.
Thursday, December 2, 2010
How to Add Custom Navigation Menus to Your Themes
Now, unless you are using an updated theme, chances are, your old theme does not support this new custom navigation menu feature. Here is how you can modify your current theme to support the menus feature.
Wednesday, December 1, 2010
Dropbox-CDN Uses Your Dropbox Account As Free CDN
A new plugin known as Dropbox-CDN helps you automate the process. All you need to do is go to your Dropbox's Public folder, create several level of folders with the same folder structures as your WordPress server (for example: /wp-content/themes/your-theme-folder/) and place all your js, css and image files into it. Copy and paste your Dropbox public link to the Dropbox-CDN options page and it will do the rest for you.
Note: This plugin only supports themes who use the filters 'template_directory', 'template_directory_uri', 'stylesheet_directory', and 'stylesheet_directory_uri' to determine the paths to the theme's template and stylesheet files.
Tuesday, November 30, 2010
How to Secure Your WordPress Login With One Time Password
Much as we like to prevent, there will be situations (for example, when we are travelling) where we need to access our WordPress account via a public network. Luckily, we can add extra protection layer to our WordPress account so that when such situations occur, we can be sure that we are safe from hackers' clutches.
Monday, November 29, 2010
How to Test Drive New Plugins And Themes Without Making Them Live On Your Site
However, if you have been blogging long enough, you will know that sometime a badly coded plugin can break the site. Worst still, it can even cause the site to crash. This goes the same for a new theme. Without any tweaking and configuration, 9 out of 10 times the theme won't look great on your site. For such cases, it is wise to test them out before making them live.
Subscribe to:
Posts (Atom)