• user_extdesc

    From esc@MONTEREY to All on Saturday, September 12, 2009 20:05:01
    How can I make a js script toggle user.settings.USER_EXTDESC so that my file lists default to displaying all the diz's? :)

    Thanks.
    esc<demonic/+o monterey>

    ---
    ■ Synchronet ■ :: montereybbs.com ::
  • From Nightfox@DIGDIST to esc on Saturday, September 12, 2009 19:38:27
    Re: user_extdesc
    By: esc to All on Sat Sep 12 2009 20:05:01

    How can I make a js script toggle user.settings.USER_EXTDESC so that my f lists default to displaying all the diz's? :)

    This is the code I use to toggle that:

    if (user.settings & USER_EXTDESC)
    user.settings = (user.settings & ~USER_EXTDESC);
    else
    user.settings = (user.settings | USER_EXTDESC);

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com
  • From esc@MONTEREY to Nightfox on Sunday, September 13, 2009 02:44:07
    Re: user_extdesc
    By: Nightfox to esc on Sat Sep 12 2009 07:38 pm

    This is the code I use to toggle that:

    if (user.settings & USER_EXTDESC)
    user.settings = (user.settings & ~USER_EXTDESC);
    else
    user.settings = (user.settings | USER_EXTDESC);

    Thanks man :) Right before I read that, I miraculously figured it out. Dumb luck, lol.

    Still wrapping my head around js.

    Most of the bbs/telnet side of things are done (or at least presentable). Now I need to try and figure out what to do about the ssjs webserver :) I'm wondering...can I make a regular old index.html type of page, and still use some of the js synchronet commands in there? I'm thinking a sort of hybrid web service. Honestly, the only thing I'll neex is access to the messages, so I'd need a logon/pass mod. Oh, and to figure out phpbb :P This is hsaping up to be pretty educational.
    esc<demonic/+o monterey>

    ---
    ■ Synchronet ■ :: montereybbs.com ::
  • From Nightfox@DIGDIST to esc on Sunday, September 13, 2009 01:23:06
    Re: user_extdesc
    By: esc to Nightfox on Sun Sep 13 2009 02:44:07

    I need to try and figure out what to do about the ssjs webserver :) I'm wondering...can I make a regular old index.html type of page, and still u some of the js synchronet commands in there? I'm thinking a sort of hybr service. Honestly, the only thing I'll neex is access to the messages, s

    An .html file can contain a JavaScript section.. I haven't done much modding of my Synchronet web server (I've been trying to come up with an idea of how I want to approach that). One idea I've had is to install Apache with PHP and run Apache on port 80 and Synchronet's web server on port 81. I could start writing my own pages using PHP, and when I want to give users access to different parts of my BBS, I could determine the URL I'd need for Synchronet's web server and link to it from my PHP pages. I'm sure there are other ways to do it, too..

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com
  • From Digital Man to Nightfox on Tuesday, September 15, 2009 08:57:18
    Re: user_extdesc
    By: Nightfox to esc on Sat Sep 12 2009 07:38 pm

    Re: user_extdesc
    By: esc to All on Sat Sep 12 2009 20:05:01

    How can I make a js script toggle user.settings.USER_EXTDESC so that my f lists default to displaying all the diz's? :)

    This is the code I use to toggle that:

    if (user.settings & USER_EXTDESC)
    user.settings = (user.settings & ~USER_EXTDESC);
    else
    user.settings = (user.settings | USER_EXTDESC);

    That works, but here's a short-cut:

    user.settings ^= USER_EXTDESC;

    digital man

    Snapple "Real Fact" #151:
    The fastest served ball in tennis was clocked at 154 miles per hour in 1963.
  • From Nightfox@DIGDIST to Digital Man on Tuesday, September 15, 2009 09:56:10
    Re: user_extdesc
    By: Digital Man to Nightfox on Tue Sep 15 2009 08:57:18

    That works, but here's a short-cut:

    user.settings ^= USER_EXTDESC;

    Thanks.. I hadn't thought of XOR.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS: digdist.bbsindex.com