Subj : Re: RSS - Theme Your RSS
To   : Finnigann
From : Mindless Automaton
Date : Thu Jul 06 2006 08:49 pm

Finnigann wrote:
> -=> With interpidation and the MAGIC of QWK Mail Mindless Automaton wrote to
> DOVE-Net.Programming_(Jav <=-
>
>  MA> The RSS list page is pretty bland, so we can make a few changes so it
>  MA> will fit our default theme at least.
>
>  MA> In rss.ssjs, change these lines:
>
>  MA> ---start code---
>
>  MA> if(channel==undefined) {
>  MA>  writeln('<html>');
>  MA>  writeln('<body>');
>  MA>  writeln('<h1>' + system.name + " News (RSS) Channels" +
>  MA> '</h1>');
>  MA>  writeln('<ul>');
>  MA>  for(c in channel_list)
>  MA>          writeln('<li>'
>  MA>                  + channel_list[c].name.link(link_root +
>  MA> "?channel=" + channel_list[c].name));
>  MA>  writeln('</ul>');
>  MA>  writeln('</body>');
>  MA>  writeln('</html>');
>  MA>  exit();
>  MA> }
>
>  MA> ---end code---
>
>  MA> to:
>
>  MA> ---start code---
>
>  MA> if(channel==undefined) {
>  MA> if(do_header)
>
>  I get an error after this line:
>
>  !JavaScript c:\sbbs\web\html\rss.ssjs line 42: ReferenceError:
>  do_header is not defined
>
>

Oops! Add:

load("../web/lib/template.ssjs");


Under:

load("sbbsdefs.js");



so it'd be like line 8 or so.. :)

the do_stuff is all defined in the general template.ssjs.

Sorry about that..

-Mindless Automaton
---
� Synchronet � Eldritch Clockwork BBS