• fTelnet and new web v4 interface

    From deepthaw to all on Sunday, June 11, 2017 23:53:23
    Just started working with Synchronet this week after a 20-year hiatus from BBSes in general. Decided to cobble together a 3.17a (or similar) sever and throw on the v4 web interface. Noticed that the present version of fTelnet that's online doesn't work as listed. I had to make the following change:


    in 000-home.xjs:

    <!--Home-->
    <?xjs
    if (typeof argv[0] != 'boolean' || !argv[0]) exit();
    load(settings.web_lib + 'ftelnet.js');
    var _hpl = getLanguage(settings.language_file || 'english.ini', 'page_home');


    <script src="./ftelnet/ftelnet.norip.xfer.min.js" id="fTelnetScript"></script> <div id="fTelnetContainer" style="margin-bottom:1em;clear:both;"></div>
    <div class="row">
    <div class="center-block" style="width:200px;margin-bottom:1em;">
    <button id="ftelnet-connect" class="btn btn-primary">
    <?xjs write(_hpl.button_ftelnet); ?>
    </button>
    </div>
    </div>
    <script type="text/javascript">
    var Options = new fTelnetOptions();

    Options.Hostname = '<?xjs write(http_request.vhost); ?>';
    Options.Port = <?xjs write(settings.websocket_telnet_port || webSocket.Port); ?>;
    Options.ConnectionType = 'telnet';
    Options.SplashScreen = '<?xjs write(getSplash()); ?>';
    Options.StatusBarVisible = false;
    Options.VirtualKeyboardVisible = (
    /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
    navigator.userAgent
    )
    );
    var Client = new fTelnetClient('fTelnetContainer', Options);
    $('#ftelnet-connect').click(function() { fTelnet.Connect(); }); </script>
  • From Android8675 to deepthaw on Monday, June 19, 2017 17:33:41
    Re: fTelnet and new web v4 interface
    By: deepthaw to all on Sun Jun 11 2017 08:53 pm

    Just started working with Synchronet this week after a 20-year hiatus from BBSes in general. Decided to cobble together a 3.17a (or similar) sever and throw on the v4 web interface. Noticed that the present version of fTelnet that's online doesn't work as listed. I had to make the following change:

    When you say it didn't work. What didn't work? It's working ok on my system and I'm just using the current build off github.

    What exactly did you fix?


    ... Remind me never to put off until tomorrow the things I've already put off
  • From deepthaw to Android8675 on Thursday, June 22, 2017 15:01:48

    Re: fTelnet and new web v4 interface
    By: deepthaw to all on Sun Jun 11 2017 08:53 pm

    When you say it didn't work. What didn't work? It's working ok on my system and I'm just using the current build off github.

    What exactly did you fix?


    The release of fTelnet I downloaded from https://github.com/rickparrish/fTelnet/tree/master/release has the .js files named somewhat differently (apparently there's no different versions for rip, no-rip, etc.)

    The interface for initializing ftelnet has changed somewhat - in the code I posted you can see that it now wants an fTelnetOptions object that contains the settings.

    I switched back to the v1 branch, and it seemed to work fine with ecwebv4 as packaged. (I imagine at some point the directions said to make sure you use the v1 branch of fTelnet and I just overlooked it?)