WordPress.org

Support

Support » Plugins and Hacks » Update Links Plugin.

Update Links Plugin.

  • I wrote a plugin that checks if any of your link-roll linked weblogs have been recently updated, and marks them as recently updated, using the options you have specified in your WordPress link manager options page.
    This does what used to be acheived by uncommenting one line in index.php earlier, which is no longer present in the current (1.2) default index.php.
    The plugin is available at
    http://carthik.net/wpplugins/updatelinks.phps
    Download it, save it as updatelinks.php , upload it to /wp-content/plugins (your plugins folder)
    Activate the plugin through the WordPress administration Plugins page.
    Make sure your links-update-cache.xml file (in wp-content) is writable (chmod 766) and wait. Depending on your link manager options settings, and how soon or late one of the weblogs you have linked to is updated, it might take a while before you see results 🙂
    I have tested this (there is not much that can go wrong, I guess, with a one line function 🙂 ) , but if there is any problem, let me know at mail at carthik dot net , in case I do not check this thread for updates.
    I beleive this plugin is essential if you want to know and show which of your linked-to blogs have been recently updated.
    I will add this to the wiki plugins page soon.

Viewing 15 replies - 1 through 15 (of 42 total)
  • After following your instructions, I am getting a
    “Fatal error: Cannot redeclare update_links()” error message on my index page. It is telling me it is defined in the plugin file and “wp-includes/links-update-xml.php on line 34”
    plus the plugin page shows essentially the whole file in the plugin name section.
    anyone else seeing this?

    ckelly5, you must be using a old version of index.php which has

    // Uncomment the next line if you want to track blog updates from weblogs.com
    //include_once(ABSPATH.WPINC.'/links-update-xml.php');

    on lines 5 and 6, with line line, the include_once part, uncommented.
    The new index.php does not have these lines, and that’s where the plugin comes into play.

    hmm, nope, it doesn’t look like I am. the index.php is from the new 1.2 release, and I don’t see any mention of the links-update.xml.php file, and even if it was, I didn’t touch it and therefore it would still be commented out…
    either way, would that explain the not so pretty output in the plugins page?

    This is what I am getting:
    Fatal error: Cannot redeclare update_links() (previously declared in ..../wp-content/plugins/updatelinks.php:16) in. .../wp-includes/links-update-xml.php on line 34

    I’m getting the same error with the newest 1.2 release, no mention of links-update-xml.php in my index.php file. Weird. Seems like I should get the same error if I put the include into index.php itself, but experimentation seems to indicate otherwise. Weird.

    My bad! I should rename the function update_links(); in the plugin. Will fix this as soon as I get home.

    I made the corrections.
    I renamed the plugin as Update Linkroll
    Get the plugin at http://carthik.net/wpplugins/updatelinkroll.phps
    Instructions are the same and are at
    http://wiki.wordpress.org/UpdateLinkroll
    Thanks Ckelly5, Tek and Xadrian, for letting me know about the error 🙂
    Next time I write a plugin I will be more careful.

    I have no errors now. I will wait to see when someone updates. =)

    It’s working fine now. I can see what has been updated. Thanks for the plugin!

    You’re welcome. Thanks again, for testing it and letting us know.

    Just installed it on my WP1.2 weblog, and after activating i get these errors when entering the Links-menu:
    Warning: Cannot modify header information - headers already sent by (output started at d:\www\bd.nl\www\wordpress\wp-content\plugins\updatelinkroll.php:1) in d:\www\bd.nl\www\wordpress\wp-admin\link-manager.php on line 563

    hmm, that code looks weird, maybe this is better:
    Warning: Cannot modify header information – headers already sent by (output started at d:\www\bd.nl\www\wordpress\wp-content\plugins\updatelinkroll.php:1) in d:\www\bd.nl\www\wordpress\wp-admin\link-manager.php on line 563

    Gerard, http://faq.wordpress.net/view.php?p=7 should be of help.

    I instaled it. I don’t get any errors but it just doesn’t work on my site.

    If someone could take a look at my code and let me know why this isn’t working I’d me greatly thankful.

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘Update Links Plugin.’ is closed to new replies.