Monday, November 08, 2010 at 12:05 AM.

system.verbs.builtins.radio.macros.staticSiteStatsImage

on staticSiteStatsImage () {
	<<Changes
		<<2/25/02; 7:08:42 PM by JES
			<<Replace <<group>> with the value at radio.data.staticSiteStats.groupName.
		<<10/10/01; 7:20:25 AM by DW
			<<Generate the empty string when the user doesn't have a usernum.
		<<10/8/01; 10:50:12 AM by DW
			<<Generate the empty string when not static rendering.
		<<10/8/01; 9:39:22 AM by DW
			<<Created. See this page for an explanation.
			<<http://smurfturf.manilasites.com/trackingHitsAndReferers
	if not defined (user.radio.prefs.usernum) {
		return ("")};
	local (pta = html.getpagetableaddress ());
	if pta^.radioResponder.flStaticRendering {
		local (s = string (radio.data.staticSiteStats.template));
		s = string.replaceall (s, "<<imgurl>>", radio.data.staticSiteStats.imgurl);
		s = string.replaceall (s, "<<group>>", radio.data.staticSiteStats.groupName);
		s = string.replaceall (s, "<<usernum>>", user.radio.prefs.usernum);
		return (s)}
	else {
		return ("")}}



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.