Monday, April 04, 2011 at 1:07 AM.
radio2Suite.buildTop40Html
on buildTop40Html (adruser) {
<<Changes
<<3/10/11; 9:49:39 AM by DW
<<Let the user's template override the default.
<<3/2/11; 8:33:51 PM by DW
<<Created.
local (t, now = clock.now ());
new (tabletype, @t);
t.now = now;
t.tabletext = radio2Suite.viewCounts (adruser, "linkListNumber", "linkListTitle", "linkListLink");
t.username = nameof (adruser^);
t.intro = string (radio2Suite.data.strings.countsPageIntro);
t.caption = string (radio2Suite.data.strings.countsPageCaption);
local (s = string.multiplereplaceall (string (adruser^.prefs.countsPageTemplate), @t, false, "<%", "%>"));
adruser^.stats.urlTopLinksHtml = radio2Suite.writeStaticFile (adruser, "topLinks.html", s);
adruser^.stats.ctTop40HtmlBuilds++;
adruser^.stats.whenLastTop40HtmlBuilds = now};
bundle { //test code
buildTop40Html (@config.radio2.users.dave)}
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.