• Write a door or BBS add-in where to begin?

    From Sam Alexander@VERT to All on Thu Dec 26 22:46:55 2013
    Howdy .. I'm really eager to write some add-ins for a BBS I'm hoping to setup in the upcoming year, and I'd like to use C++. Are there any tutorials showing how to write a C++ app that can interact with SYnchronet? For example I'd like to write a weather add-in that gets the logged in user's location and shows it at login or possibly from the menu, but I'm unsure how to write a C++ application that could pull this from the BBS.

    Thanks for any suggestions ...

    Sam

    ---
    þ Synchronet þ Ver
  • From Digital Man@VERT to Sam Alexander on Thu Jan 2 01:57:16 2014
    Re: Write a door or BBS add-in where to begin?
    By: Sam Alexander to All on Thu Dec 26 2013 10:46 pm

    Howdy .. I'm really eager to write some add-ins for a BBS I'm hoping to setup in the upcoming year, and I'd like to use C++. Are there any
    tutorials showing how to write a C++ app that can interact with SYnchronet? For example I'd like to write a weather add-in that gets the logged in user's location and shows it at login or possibly from the menu, but I'm unsure how to write a C++ application that could pull this from the BBS.

    Any particular reason to use C++? If so, then check-out OpenDoors. It's a C++ door development kit which can be used to build native executables (Windows, Linux, FreeBSD, and possibly others) which can run as doors under Synchronet. That said, only Synchronet's xtrn.dat drop file format contains the user's postal/zip code and I don't think OpenDoors supports xtrn.dat. So if you're planning on using the user's zip/postal code to determine their "location", you
    might have to prompt them for it. Or you could use the Synchronet XSDK (xtrn/sdk) which is really a C development kit for native Synchronet external programs (doors) and supports the xtrn.dat drop file format.

    All that said, the task you described really sounds like a better candidate for
    a JavaScript module. No door kit or compiler necessary, just a text editor. If that sounds interesting, start here: http://synchro.net/docs/js.html

    digital man

    Synchronet "Real Fact" #72:
    SyncTERM (created by Deuce) contains portions of Synchronet and SEXYZ code. Norco, CA WX: 65.0øF, 20.0% humidity, 6 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ
  • From Sam Alexander@VERT to Digital Man on Thu Jan 2 05:14:48 2014
    Re: Write a door or BBS add-in where to begin?
    By: Digital Man to Sam Alexander on Thu Jan 02 2014 01:57 am

    All that said, the task you described really sounds like a better candidate for a JavaScript module. No door kit or compiler necessary, just a text editor. If that sounds interesting, start here: http://synchro.net/docs/js.html


    Thanks, after that post I did tons more research about this, and yeah I'll stick with JS. I originally hoped to use C++ mostly so whatever I built would be portable, but I don't see myself deviating away from Sync anytime soon.

    Take care.


    ---
    þ Synchronet þ -- Totallynerd.com : BBS Coming Soon, so stay tuned!