CollabPress is a plugin for WordPress that transforms your WP setup into a project management platform. It is developed by Brad Williams (@williamsba) and comes with plenty of features at a price of free.
Monday, December 27, 2010
Turn WordPress Into a Project Management System
CollabPress is a plugin for WordPress that transforms your WP setup into a project management platform. It is developed by Brad Williams (@williamsba) and comes with plenty of features at a price of free.
Thursday, December 23, 2010
Turn Your WordPress Into A Private Twitter-like System
There is little or no coding required. What you need here is a custom theme and some plugins. There are currently two themes that can instantly turn your blog into a status update system: Prologue and P2.
Both themes require little or no configuration. As soon as you activate the theme, your blog frontend instantly become a Twitter clone.
Prologue Theme
P2 Theme
Prologue theme is just a basic Twitter-like theme with no configuration option. On the other hand, P2 theme is more comprehensive and allows you to switch between "status update", "blog post", "Quote" and "Link".
With the P2 theme, you can also configure who can post update, the background image/color, show/hide sidebar etc.
Adding a login form to the sidebar
Instead of getting your users to go to the wp-login page, it will be great if you can add a login form to your sidebar and let your users login from the front page.
What you need here is the sidebar-login plugin. Install the plugin and add the widget to your sidebar.
At the sidebar-login option page, remember to set the "Login Redirect Url" to your Home page.
Show status update only for logged in users
If you want to use this as a in-house private Twitter system, you won't want the public to see your update. The best way is to show the update only for logged in users.
Open the
index.php
file in your P2 theme folder.Scroll down until you see the code:
[php]</h2>
<ul id="postlist">
<?php if ( have_posts() ) : ?>[/php]
Insert in the following code after
</h2>
[php]<?php if(!is_user_logged_in()): ?>
<p>You need to log in to view the status update!</p>
<?php else : ?>[/php]
So now you should have:
[php]</h2>
<?php if(!is_user_logged_in()): ?>
<p>You need to log in to view the status update!</p>
<?php else : ?>
<ul id="postlist">
<?php if ( have_posts() ) : ?>[/php]
and don't forget to close the loop. Insert
<?php endif; ?>
before the </div><!-- main-->
.[php] <?php endif; ?>
</div> <!-- main -->[/php]
Repeat the same for the
single.php
file as well. You should see the following for non-logged in users.Alternatively, you can also use the Private-WP plugin to force your users to login before they can read your status update. This is an easier implementation, but a less elegant solution.
This tutorial only touches the tip of the iceberg. If you have added your own modifications/enhancement, do let us know in the comments.
Tuesday, December 21, 2010
How to Create And Embed A Contact Form On The Fly
Monday, December 20, 2010
How to Make Your Theme Printer-Friendly Without Plugins
Thursday, December 16, 2010
Snippet: How to Enable Shortcode in Widget
The best way to implement php code in the widget is via the use of shortcode. The following line of code is all you need to enable the shortcode for widget function.
In your
[php]add_filter('widget_text', 'do_shortcode');[/php]
That's it.
In your
functions.php
file, paste the following:[php]add_filter('widget_text', 'do_shortcode');[/php]
That's it.
How to Show Related Posts in WordPress Without Using Plugin
This tutorial will teach you how you can show related posts in your site without using any plugin.
Tuesday, December 14, 2010
Easily Migrate Your SEO Settings With A Single Click
With that said, there are plenty of SEO plugins that you can use. The All in One SEO Pack, Platinum SEO, Headspace2 and WordPress SEO are all great SEO plugins available in the repository. To make things more complicated, premium themes such as Headway themes, Frugal, Thesis, Genesis etc also comes with inbuilt SEO settings that make SEO plugins obsolete.
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.
Subscribe to:
Posts (Atom)