Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.html.trackbackLink
on trackbackLink (postnum, adrblog=radio.weblog.init ()) {
<<Changes
<<7/20/03; 11:28:19 PM by JES
<<Created. Render a "trackback" link for a weblog post.
local (trackbackPageUrl = radio.weblog.getTrackbackLink (postnum, adrblog));
if trackbackPageUrl == "" {
return ("")};
local (linktext = adrblog^.prefs.trackback.trackbackLinkText);
bundle { //insert JavaScript for trackback counter
linktext = string.replaceAll (linktext, "<%trackbackCount%>", "<script type=\"text/javascript\" language=\"JavaScript\">trackbackCounter (" + postnum + ")</script>", false)};
local (onclick = "window.open (this.href, \'TrackBacks\', \'width=515, height=480, location=0, resizable=1, scrollbars=1, status=0, toolbar=0, directories=0\'); return(false);");
local (s = "<a href=\"" + trackbackPageUrl + "\" onclick=\"" + onclick + "\" class=\"commentLink\">" + linktext + "</a>");
return (s)}
<<bundle //test
<<radio.html.trackbackLink (1)
<<"<a href=\"http://63.200.130.123/rcsComments/newsItems/trackback/radioHosting?u=2&p=1\" onclick=\"window.open (this.href, 'TrackBacks', 'width=515, height=480, location=0, resizable=1, scrollbars=1, status=0, toolbar=0, directories=0'); return(fal..."
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.