• Determining the posting message area

    From Nightfox@VERT/DIGDIST to Digital Man on Sun Feb 17 11:42:23 2013
    Hi DM,ããIn Synchronet's JavaScript, is there a (reliable) way to determine whichãmessage area the user is posting a message in? From what I can tell, there areã2 JavaScript variables that store sub-board codes:ãbbs.smb_sub_code: The sub-board code of the message being readãbbs.cursub_code: The sub-board code of the user's current sub-boardããThe problem is that those two sub-board codes can be different, and the userãcould be posting a message in either of those sub-boards. I'm not sure how toãreliably tell which of those sub-boards the user is posting a message in.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Mon Feb 18 01:29:32 2013
    Re: Determining the posting message areaã By: Nightfox to Digital Man on Sun Feb 17 2013 11:42 amãã > Hi DM,ã >ã > In Synchronet's JavaScript, is there a (reliable) way to determine whichã > message area the user is posting a message in? From what I can tell, thereã > are 2 JavaScript variables that store sub-board codes:ã > bbs.smb_sub_code: The sub-board code of the message being readã > bbs.cursub_code: The sub-board code of the user's current sub-boardã >ã > The problem is that those two sub-board codes can be different, and theã > user could be posting a message in either of those sub-boards. I'm notã > sure how to reliably tell which of those sub-boards the user is posting aã > message in.ããI can change the code to make one of those properties reflect the sub being ãposted on (probably smb_sub_*) or possibly introduce a new property, but that ãwon't help you with existing sbbs installations.ããOf course, if the posting is initiated from a JS shell/module, then you know ãwhat sub is being posted to already, but I'm pretty sure you're asking in the ãcontext of an external editor (i.e. SlyEdit), in which case the answer is ã"currently, no".ãã digital manããSynchronet "Real Fact" #78:ã172 Synchronet Match Maker registrations were sold (@$69) between 1995 and 1996.ãNorco, CA WX: 47.7øF, 92.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Digital Man on Mon Feb 18 09:34:18 2013
    Re: Determining the posting message areaã By: Digital Man to Nightfox on Mon Feb 18 2013 01:29:32ãã > I can change the code to make one of those properties reflect the sub beingã > posted on (probably smb_sub_*) or possibly introduce a new property, but thaã > won't help you with existing sbbs installations.ã > ã > Of course, if the posting is initiated from a JS shell/module, then you knowã > what sub is being posted to already, but I'm pretty sure you're asking in thã > context of an external editor (i.e. SlyEdit), in which case the answer isã > "currently, no".ããwhat about User.cursub? ãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Nightfox@VERT/DIGDIST to Digital Man on Mon Feb 18 09:04:00 2013
    Re: Determining the posting message areaã By: Digital Man to Nightfox on Mon Feb 18 2013 01:29:32ãã DM> I can change the code to make one of those properties reflect the subã DM> being posted on (probably smb_sub_*) or possibly introduce a new property,ã DM> but that won't help you with existing sbbs installations.ãã DM> Of course, if the posting is initiated from a JS shell/module, then youã DM> know what sub is being posted to already, but I'm pretty sure you'reã DM> asking in the context of an external editor (i.e. SlyEdit), in which caseã DM> the answer is "currently, no".ããYeah, it was for SlyEdit.. Thanks for the reply. A property to store whichãmessage sub is being posted into might be good in future versions ofãSynchronet.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Nightfox@VERT/DIGDIST to MCMLXXIX on Mon Feb 18 09:12:51 2013
    Re: Determining the posting message areaã By: MCMLXXIX to Digital Man on Mon Feb 18 2013 09:34:18ãã MC> what about User.cursub? ããInteresting - The documentation makes it sound like user.cursub might be theãone, but that doesn't seem to reflect the user's current sub-board. I triedãusing Synchronet's Message Read prompt in my current sub-board (to make sureãall the JS variables are set properly) and then wrote a test JS script toãoutput user.cursub, and it was for a different sub-board, into which I hadãposted a message last night. So I'm not sure which sub-board user.cursub isãmeant to refer to.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to MCMLXXIX on Mon Feb 18 15:48:33 2013
    Re: Determining the posting message areaã By: MCMLXXIX to Digital Man on Mon Feb 18 2013 09:34 amãã > Re: Determining the posting message areaã > By: Digital Man to Nightfox on Mon Feb 18 2013 01:29:32ã >ã > > I can change the code to make one of those properties reflect the subã > > being posted on (probably smb_sub_*) or possibly introduce a newã > > property, but tha won't help you with existing sbbs installations.ã > >ã > > Of course, if the posting is initiated from a JS shell/module, then youã > > know what sub is being posted to already, but I'm pretty sure you'reã > > asking in th context of an external editor (i.e. SlyEdit), in which caseã > > the answer is "currently, no".ã >ã > what about User.cursub?ããNo, that property reflects what sub-board they have selected from the main menu ã(sort of like the current working directory in DOS). This may or may not be the ãsub they are posting to (depending on how they got to that point, e.g. using a ãnew-message-scan).ãã digital manããSynchronet "Real Fact" #10:ãDOVE-Net was originally an exclusive ("elite") WWIVnet network in O.C., Calif.ãNorco, CA WX: 62.3øF, 53.0% humidity, 8 mph NNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Nightfox on Tue May 7 01:50:49 2013
    Re: Determining the posting message areaã By: Digital Man to Nightfox on Mon Feb 18 2013 01:29 amãã > Re: Determining the posting message areaã > By: Nightfox to Digital Man on Sun Feb 17 2013 11:42 amã >ã > > Hi DM,ã > >ã > > In Synchronet's JavaScript, is there a (reliable) way to determine whichã > > message area the user is posting a message in? From what I can tell,ã > > there are 2 JavaScript variables that store sub-board codes:ã > > bbs.smb_sub_code: The sub-board code of the message being readã > > bbs.cursub_code: The sub-board code of the user's current sub-boardã > >ã > > The problem is that those two sub-board codes can be different, and theã > > user could be posting a message in either of those sub-boards. I'm notã > > sure how to reliably tell which of those sub-boards the user is postingã > > a message in.ã >ã > I can change the code to make one of those properties reflect the sub beingã > posted on (probably smb_sub_*) or possibly introduce a new property, butã > that won't help you with existing sbbs installations.ã >ã > Of course, if the posting is initiated from a JS shell/module, then youã > know what sub is being posted to already, but I'm pretty sure you're askingã > in the context of an external editor (i.e. SlyEdit), in which case theã > answer is "currently, no".ããI just committed a change to writemsg.cpp which I believe does what you want: ãthe bbs.smb_sub* properties will now reflect the sub-board being posted to, ãalways.ãã digital manããSynchronet "Real Fact" #17:ãRob Swindell first learned to program in C by hacking on WWIV BBS software.ãNorco, CA WX: 56.8øF, 74.0% humidity, 2 mph NNE wind, 0.04 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue May 7 19:28:10 2013
    Re: Determining the posting message areaã By: Digital Man to Nightfox on Tue May 07 2013 01:50:49ãã >> I can change the code to make one of those properties reflect the subã >> being posted on (probably smb_sub_*) or possibly introduce a newã >> property, but that won't help you with existing sbbs installations.ãã DM> I just committed a change to writemsg.cpp which I believe does what youã DM> want: the bbs.smb_sub* properties will now reflect the sub-board beingã DM> posted to, always.ããCool, thanks for making the change.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Wed May 8 23:12:43 2013
    Re: Determining the posting message areaã By: Nightfox to Digital Man on Tue May 07 2013 07:28 pmãã > Re: Determining the posting message areaã > By: Digital Man to Nightfox on Tue May 07 2013 01:50:49ã >ã > >> I can change the code to make one of those properties reflect the subã > >> being posted on (probably smb_sub_*) or possibly introduce a newã > >> property, but that won't help you with existing sbbs installations.ã >ã > DM> I just committed a change to writemsg.cpp which I believe does whatã > DM> you want: the bbs.smb_sub* properties will now reflect the sub-boardã > DM> being posted to, always.ã >ã > Cool, thanks for making the change.ããNo problem. Please let me know how it works for you.ãã digital manããSynchronet "Real Fact" #46:ãThe Synchronet Museum is online at http://wiki.synchro.net/history:museum:ãNorco, CA WX: 58.9øF, 63.0% humidity, 7 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã