space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

space

mainresponder

manilaData

manilamacros

manilaSuite

space
space

admin

backups

discuss

gems

getCanonicalSiteName

hierarchyPage

hosting

html

space
space

editorialLinks

manilaSuite.html.renderYear

space

mail

member

members

news

plugins

prefs

referer

renderNewsPage

rpcHandlers

rpcUtils

search

sendMail

siteStructure

staticRendering

storyList

space

system

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

manilaSuite.html.renderYear

This is a fix to ensure that the report showing all stories created ina year, uses localised month names. This page has a url such as <http://www.baylys.com:8080/2001/>.

Userland released a (better) fix for this problem on July 1st, 2002

on renderYear (adrTable, category=nil)
  «Render a stories list for an entire year. Formatting is like DaveNet stories lists.
 unaltered lines omitted
 
  local (pta = html.getPageTableAddress ())
  local (adrRoot = mainResponder.discuss.openRoot ())
  local (yearName = nameOf (adrTable^))
  local (adrYear = @pta^.adrSiteRootTable^.[yearName])
  local (htmlText)
  local (baseUrl = manilaSuite.getSiteUrl (pta:pta))
 
  if category == nil
 unaltered lines omitted
 
  pta^.title = yearName
 
  on add (s)
 unaltered lines omitted
 
  add ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">")
 
  local (i)
 
  for i = sizeOf (adrYear^) downTo 1
 unaltered lines omitted
 
  add ("</table>")
 
  htmlText = manilaSuite.unTaint (htmlText) //no curly brace macros in this text
 
  return (htmlText)

Relative to Frontier version 9.7b10