TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: alt.bbs.synchronet
from: Riba
date: 2022-07-24 12:53:00
subject: Re: Splash screen in web

From Newsgroup: alt.bbs.synchronet

On Sunday, July 24, 2022 at 8:22:25 PM UTC+3, DesotoFireflite wrote:


> Ri> Need some help with changing the default splash screen in telnet window on 
> Ri> the web interface. 
> 
> Ri> According to wiki, by default it points to ../text/synch.asc 
> 
> First of all, does it work with the default screen named "../text/synch.ans" 
> 
> ; Path to a .ans file to use as the ftelnet splash screen 
> ftelnet_splash=../text/synch.ans 

Just tested that, no, the moment I add this and restart the web server it spits an error in the log:
7/24  09:41:21p  1204 !JavaScript  c:\sbbs\webv4\root\api\events.ssjs line 3: Error: can't open undefined/lib/init.js: No such file or directory, Request: /api/events.ssjs?subscribe=nodelist&subscribe=mail&subscribe=telegram

> Ri> I tried both replacing the synch.asc with my modified file (did not change 
> Ri> on web page), and also adding: 
> 
> Ri> [web] 
> Ri> ftelnet_splash = ../text/tvri.ans 
> Ri> (also tried ..\text\tvri.ans as it is a Windows host) 
> 
> Did you shut down the web page, then reopen it with the new default everytime you made a change. This has to be done. 

Yes, I restarted the web service and entire Synchronet between changes.

> Also, did you try renaming your ansi file to splash.ans. You should not have to, but it's worth a shot to narrow down a problem. I'm running two spash screens over here, and the sring works. ( that requires some modding however) 

Tried, no luck. I'm pretty sure that it doesn't seem to be reading the ..\text\synch.ans file at all, because if I rename it it still displays the same content in the telnet window (?)

> Ri> ...but the moment I add this change to ..\ctrl\modopts.ini the web server 
> Ri> throws an error: 
> 
> Ri> !JavaScript c:\sbbs\webv4\root\index.xjs.ssjs line 6: Error: can't open 
> Ri> undefined/lib/init.js: No such file or directory 
> 
> I think that is due to changing the default without restating your browser. I found out the hard way, webv4 needs to be restarted (closed, then reopened) before changes will work. 

I did restart it after each change. :(

> Ri> Removing the lines fixes it. So how can I change this splash screen and if 
> Ri> the default file/location is correct how come editing the file does 
> Ri> nothing? 
> 
> try shutting down the the web page in your browser, then going back into it. 

Tried that as well, including clearing the browser cache. I'm completely at loss here.
--- Synchronet 3.19c-Linux NewsLink 1.113
                                                                                                                      
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.