Fork me on GitHub

technorati tag module for postnuke?  Bottom

  • Is there a module available to add technorati and related social bookmarks to postnuke news posts?
  • I dont know of any... to properly tag, the tags need to be defined... that is the trick..

    http://www.technorati.com/help/tags.html

    But it could be done, easily enough...

    For example, you could modify your News-Article templete, this is normally a seperate templete, so you should have one...

    Figure out where you would like to put your tag, and add some code... something like this



    --
    David Pahl
    Zikula Support Team
  • I spent some time looking into this, and I think I got the tags correctly now.
    |
    The links on the News-index.htm are build using $preformat.title, which is located in /modules/New/funcs.php
    |
    on line 317:
    change this:

    Code

    $title = "<a href=\"$links[fullarticle]\">$info[title]</a>";

    to this:

    Code

    $title = "<a href=\"$links[fullarticle]\" rel=\"bookmark\">$info[title]</a>";

    For category tags you need to alter /modules/Topics/index.php, on line 86:
    change this:

    Code

    echo '[ <a href="index.php?name=News&catid=&topic='. pnVarPrepForDIsplay($topicid).'">'.pnVarPrepForDIsplay($topictext).'</a> ]'."\n";

    to this:

    Code

    echo '[ <a href="index.php?name=News&catid=&topic='. pnVarPrepForDIsplay($topicid).'" rel="category tag">'.pnVarPrepForDIsplay($topictext).'</a> ]'."\n";

    I doubt their bots ever come to that part of the site, but who knows. The use of the category tag can also be changed by editing the News-index.htm template.
    |
    Next and last to edit is the /backend.php
    change this block:

    Code

    $body .= "<item>\n";
    $body .= "<title>$title</title>\n";
    $body .= "<description>$content</description>\n";
    $body .= "$link\n";
    $body .= "<pubDate>".date('r', strtotime($time))."</pubDate>\n";
    $body .= "</item>\n";

    to this:

    Code

    $body .= "<item>\n";
    $body .= "<title>$title</title>\n";
    $body .= "<description>$content</description>\n";
    $body .= "<category>$topicname</category>\n";
    $body .= "$link\n";
    $body .= "<guid isPermaLink=\"true\">$link</guid>\n";
    $body .= "<pubDate>".date('r', strtotime($time))."</pubDate>\n";
    $body .= "</item>\n";

    When you're done editing, delete all Xanthia compiled templates (/pnTemp/Xanthia_compiled) And visit: http://pingomatic.com/
    |
    My 3 items are already nicely in technorati (http://technorati.com/blogs/http%3A%2F%2Fzartoxide.xs4all.nl), rest i don't know, didn't check
    |
    Would be nice if we could automaticly ping those services, but that's a bit out of range with me knowledge.
    |
    PS: The pipes are due to the fact that by using code-tags whitespaces are ignored



    edited by: ZarToXidE, Oct 21, 2006 - 09:53 AM

This list is based on users active over the last 60 minutes.