• RSS - Theme Your RSS List

    From Mindless Automaton@VERT/ELDRITCH to DOVE-Net.Programming_(Jav on Thu Jul 6 12:45:00 2006
    The RSS list page is pretty bland, so we can make a few changes so it ãwill fit our default theme at least.ããIn rss.ssjs, change these lines:ãã---start code---ããif(channel==undefined) {ã writeln('<html>');ã writeln('<body>');ã writeln('<h1>' + system.name + " News (RSS) Channels" + '</h1>');ã writeln('<ul>');ã for(c in channel_list)ã writeln('<li>'ã + channel_list[c].name.link(link_root + "?channel=" + ãchannel_list[c].name));ã writeln('</ul>');ã writeln('</body>');ã writeln('</html>');ã exit();ã}ãã---end code---ããto:ãã---start code---ããif(channel==undefined) {ãif(do_header)ã write_template("header.inc");ãif(do_topnav)ã load(topnav_html);ãif(do_leftnav)ã load(leftnav_html);ãã writeln('<td class="main" valign="top"><br /><br />');ãã writeln('<h1>' + system.name + " News (RSS) Channels" + '</h1>');ã writeln('<ul>');ã for(c in channel_list)ã writeln('<li>'ã + channel_list[c].name.link(link_root + "?channel=" + ãchannel_list[c].name));ã writeln('</ul>');ããif(do_rightnav)ã write_template("rightnav.inc");ãif(do_footer)ã
    write_template("footer.inc");ãã exit();ã}ãã---end code---ãã-Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBSã
  • From Finnigann@VERT/BNB to Mindless Automaton on Thu Jul 6 18:27:00 2006
    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ããããã MA> write_template("header.inc");ã MA> if(do_topnav)ã MA> load(topnav_html);ã MA> if(do_leftnav)ã MA> load(leftnav_html);ãã MA> writeln('<td class="main" valign="top"><br /><br />');ãã 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> if(do_rightnav)ã MA> write_template("rightnav.inc");ã MA> if(do_footer)ã MA> write_template("footer.inc");ãã MA> exit();ã MA> }ãã MA> ---end code---ãã MA> -Mindless Automatonã MA> ---ã MA> þ Synchronet þ Eldritch Clockwork BBSãããã ----------------------------------------------------------------ã James King KC8UGV | Sysop - Bits-N-Bytes BBS ã Coldwater, MI 49036 | http://www.synchro.net/sbbslist.htmlã ----------------------------------------------------------------ã RSS http://tinyurl.com/zswzsã ----------------------------------------------------------------ã... Add
    DEVICE=FNGRCROS.SYS to CONFIG.SYSã--- MultiMail/Win32 v0.46ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Mindless Automaton@VERT/ELDRITCH to DOVE-Net.Programming_(Jav on Thu Jul 6 21:11:00 2006
    As Finnigan pointed out, I forgot a vital piece. :oããIn rss.ssjs, add:ããload("../web/lib/template.ssjs");ããas shown:ãã// Tested successfully with SharpRead v0.9.5.1ããload("sbbsdefs.js");ãload("../web/lib/template.ssjs");ããthen change these lines:ãã---start code---ããif(channel==undefined) {ã writeln('<html>');ã writeln('<body>');ã writeln('<h1>' + system.name + " News (RSS) Channels" + '</h1>');ã writeln('<ul>');ã for(c in channel_list)ã writeln('<li>'ã + channel_list[c].name.link(link_root + "?channel=" + ãchannel_list[c].name));ã writeln('</ul>');ã writeln('</body>');ã writeln('</html>');ã exit();ã}ãã---end code---ããto:ãã---start code---ããif(channel==undefined) {ãif(do_header)ã write_template("header.inc");ãif(do_topnav)ã load(topnav_html);ãif(do_leftnav)ã load(leftnav_html);ãã writeln('<td class="main" valign="top"><br /><br />');ãã writeln('<h1>' + system.name + " News (RSS) Channels" + '</h1>');ã writeln('<ul>');ã for(c in channel_list)ã writeln('<li>'ã + channel_list[c].name.link(link_root + "?channel=" + ãchannel_list[c].name));ã writeln('</ul>');ããif(do_rightnav)ã write_template("rightnav.inc");ãif(do_footer)ã write_template("footer.inc");ãã exit();ã}ãã---end code---ãã-Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBSã