Is there a module available to add technorati and related social bookmarks to postnuke news posts?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
technorati tag module for postnuke?
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 418
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
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
- Moderated by:
- Support
