February 24, 2008

wp-o-matic quick & dirty duplicate post fix

Posted in Open Source, wordpress tagged , , , , , , at 12:23 am by ilanco

I’m getting a lot of duplicate posts using wp-o-matic and if you are reading this, you probably have the same problem.

Instead of fixing wp-o-matic (that’s the developer’s job) I just changed my local wordpress to ignore posts with the same title.

Here is how it works :

  1. Open up wp-includes/post.php in your favorite editor
  2. at approx line 703 you will find the following line :
    if ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) {
  3. After this insert a new line of code :
    return 0;
  4. save (you did make a backup, right?).
  5. All done.
Advertisements

February 21, 2008

wp-o-matic cron install problem

Posted in Linux, Open Source, wordpress tagged , , , , , , at 2:57 am by ilanco

WP-o-Matic is a cool auto-blogging plugin for wordpress.

After installation you’ll have to change cron.php if you want to use automatic feed fetching via crontab.

  1. take note of the code wp-o-matic will give you on installation.
  2. open cron.php in your favorite editor
  3. add this piece of code after the <?php opening tag :
    if ($argc > 0)
    {
    for ($i=1;$i < $argc;$i++)
    {
    parse_str($argv[$i],$tmp);
    $_REQUEST = array_merge($_REQUEST, $tmp);
    }
    }
  4. fire up crontab -e and add something like the following line to it :
    */20 * * * * php /DIR_TO_WP/wp-content/plugins/wp-o-matic/cron.php code=YOURCODE
    change DIR_TO_WP with you path to wordpress and YOURCODE with the code you noted in step 1
  5. Save the file and cron will run your fetcher every 20 minutes.
  6. You’re done, go add some rss feeds.

February 20, 2008

What is Linux?

Posted in Linux, Open Source tagged , , at 9:07 pm by ilanco

This page will describe about Linux, the operating system, kernel, it’s creators and more.

February 4, 2008

Joomla! 1.5

Posted in Israel, Linux, Open Source tagged , , at 1:44 am by ilanco

Joomla! 1.5 is out.

Hebrew speaking users should read about Joomla! here.

There is also a demo available for the curious …