• Message base: Editing existing messages

    From Nightfox@VERT/DIGDIST to All on Thu Jun 11 15:57:54 2009
    Hi all -ããOne of the toggle options for a message area is whether or not a user can ãedit existing messages. I've been looking at Synchronet's JS documentation ãtrying to find a function that will allow a user to edit an existing message, ãbut the docs don't seem to mention a function that would do that. Is ãthere a way to do that in JavaScript?ããEricããã---ã þ Synchronet þ Digital Distortion BBSã
  • From Digital Man@VERT to Nightfox on Thu Jun 11 19:20:28 2009
    Re: Message base: Editing existing messagesã By: Nightfox to All on Thu Jun 11 2009 03:57 pmãã > Hi all -ã >ã > One of the toggle options for a message area is whether or not a user canã > edit existing messages. I've been looking at Synchronet's JS documentationã > trying to find a function that will allow a user to edit an existingã > message, but the docs don't seem to mention a function that would do that.ã > Isã > there a way to do that in JavaScript?ããIf you're looking for a high-level method (where it automatically uses theãuser's configured editor, etc.) there is no such function. You can however loadãthe message's text (using the MsgBase class) into a buffer, save to a file,ãthen use the console.editfile() function to edit the contents, load the fileãcontents back into a buffer an duse the MsgBase class to save the modifiedãmessage body.ããIt's probably not worth the effort. :-)ããThe C++ method that would need to be exposed via JS (and isn't) isãsbbs_t::editmsg() and it wouldn't be trivial to do since it needs an openãmessage as an argument. I'll add it to the to-do list however.ãã digital manããSnapple "Real Fact" #73:ãThe average person spends 2 weeks of it's life waiting for a traffic light to change.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu Jun 11 20:43:25 2009
    Re: Message base: Editing existing messagesã By: Digital Man to Nightfox on Thu Jun 11 2009 19:20:28ãã > > If you're looking for a high-level method (where it automatically uses thã > > user's configured editor, etc.) there is no such function. You can howeveã > > the message's text (using the MsgBase class) into a buffer, save to a filã > > then use the console.editfile() function to edit the contents, load the fã > > contents back into a buffer an duse the MsgBase class to save the modifieã > > message body.ããThanks. :)ããNightfoxããã---ã þ Synchronet þ Digital Distortion BBSã