On my RSS feed the links point back to my pligg site. What I would really like is:
- Published RSS feeds link directly to original article
- Upcoming RSS feeds link back the the page on my Pligg site
How would this be achieved?


I'm thinking I will need to change something in this part of the rss.php to get the published stories to link directly to the source in the RSS feed...
What should I try adjusting, do you think?echo "<item>\n";
echo " <title><![CDATA[". $link->title . "]]></title>\n";
echo " <link>".getmyFullurl("storyURL", $link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</link>\n";
$vars = array('link' => $link);
check_actions('rss_add_data', $vars);
echo ' <source url="'.$link->url.'"><![CDATA['. $link->title .']]></source>';
echo "\n <description><![CDATA[" . $link->content . " ]]></description>\n";
if (!empty($link_date))
echo " <pubDate>".date('D, d M Y H:i:s T', $link->$link_date-misc_timezone*3600)."</pubDate>\n";
else
echo " <pubDate>".date('D, d M Y H:i:s T', time()-misc_timezone*3600)."</pubDate>\n";
echo " <author>" . $user->username . "</author>\n";
echo " <category>" . htmlspecialchars($category_name) . "</category>\n";
echo " <votes>" . $link->votes . "</votes>\n";
echo " <guid>".getmyFullurl("storyURL", $link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</guid>\n";
echo "</item>\n\n";
}
}
What I wanted, the end result, was a little out of the ordinary, so I'm not going to go into it here. But now I am able to separate links and display them in a tabbed pane: RSS links of published articles go directly to the source, links of pending articles connect to the story page on my pligg site.My reason for doing this was to make the direct link a "reward" for having a published article (which equates to having a link out from a PR8 page AND without rel="nofollow" attached to the link).
I would like to accomplish the same thing. By putting your question here expecting help, it would be nice if you could explain here, how you did it. Whats the code changes you made to make it work like in your example. Me and others would find this very usefull and it would be nice if you shared your knowledge.!