• Web: Last callers

    From Fireball@VERT/FBEX to All on Sat Dec 12 08:37:59 2015
    I didn't like the way the Last callers page just showed a black box with notãmuch ãin it if there were no callers. So I got in there and made it do somethingãother ãthan just show that box. I'm by no means a pro, but I like to mess around withãcode every now and again. ;)ããIn root/member/lastcallers.ssjs starting line 12 replace:ããif(user.number!=0) {ã var file = new File(system.data_dir + "logon.lst");ã if(file.open("r")) {ã template.lastcallers=file.readAll();ã file.close();ã }ã template.lastcallers.shift();ã ãtemplate.lastcallers=html_encode(template.lastcallers.join("\r\n"),true,false,tãruãe,true);ã}ããwithããif(user.number!=0) {ã var file = new File(system.data_dir + "logon.lst");ã if(file.open("r") && file.size >= 0) {ã template.lastcallers=file.readAll();ã file.close();ã template.lastcallers.shift();ã ãtemplate.lastcallers=html_encode(template.lastcallers.join("\r\n"),true,false,tãruãe,true);ã }ã elseã {ã template.lastcallers='<p style="weight:bold;color:cyan;">No callersãtoday!</p>';ã }ã}ããand that'll fix it. You may have to clean up the wordwrap. I hope someone elseãfinds this useful!ãã-=Fireball=-ãã---ã þ Synchronet þ Fireball Express!!! BBS - http://fireballex.com telnet://fireballex.comã