• bbs.curgrp

    From smoke@VERT to All on Thu Jun 10 20:10:19 2004
    i'm trying to set the user's current message group, but for some reason when i set the bbs.curgrp value to whatever group i want it to be it doesn'ts ave.. any ideas?

    i might be calling the wrong var, i tried user.curgrp also, so i don't know exactly what to do now, soemone please help :).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to smoke on Fri Jun 11 01:57:51 2004
    Re: bbs.curgrp
    By: smoke to All on Thu Jun 10 2004 01:10 pm

    i'm trying to set the user's current message group, but for some reason when set the bbs.curgrp value to whatever group i want it to be it doesn'ts ave.. any ideas?

    i might be calling the wrong var, i tried user.curgrp also, so i don't know exactly what to do now, soemone please help :).

    Tracker1 and I recently went over this. The bbs.curgrp and bbs.cursub properties are 0-based, and are relative to the groups/subs the current user has access to.

    I'm not sure what you mean by "it doesn't save". If you set the variable to a value, and then read it back, you don't get the value you wrote?

    digital man

    Snapple "Real Fact" #77:
    No piece of paper can be folded more than 7 times.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tracker1@VERT/TRN to Digital Man on Mon Jul 5 07:53:00 2004
    Digital Man wrote:
    Tracker1 and I recently went over this. The bbs.curgrp and bbs.cursub properties are 0-based, and are relative to the groups/subs the current
    user has access to.

    I'm not sure what you mean by "it doesn't save". If you set the variable
    to a value, and then read it back, you don't get the value you wrote?

    I think that it doesn't restrict the groups/subs appropriate to the user's security.. it seems to show them all when you enumerate the arrays.

    maybe if there was a setSub(SUB_CODE) command that set to the first group/
    sub that matched (presuming no dupe sub_code's) .. and returned true on success, false on fail ... or setSub(grp_number,sub_code) ...

    --
    Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

    ---
    þ Synchronet þ theroughnecks.net - you know you want it
  • From Digital Man@VERT to Tracker1 on Wed Jul 7 03:28:58 2004
    Re: Re: bbs.curgrp
    By: Tracker1 to Digital Man on Mon Jul 05 2004 12:53 am

    Tracker1 and I recently went over this. The bbs.curgrp and bbs.cursub properties are 0-based, and are relative to the groups/subs the current user has access to.

    I'm not sure what you mean by "it doesn't save". If you set the variable to a value, and then read it back, you don't get the value you wrote?

    I think that it doesn't restrict the groups/subs appropriate to the user's security.. it seems to show them all when you enumerate the arrays.

    Please post example code that proves this. I've tested it myself and it works correctly.

    maybe if there was a setSub(SUB_CODE) command that set to the first group/ sub that matched (presuming no dupe sub_code's) .. and returned true on success, false on fail ... or setSub(grp_number,sub_code) ...

    There was a bug in one of your JS modules (I forget which) where it was trying to set the cursub/curgrp property as a string (instead of a Number). This is probably the root cause of whatever problem you're having.

    digital man

    Snapple "Real Fact" #52:
    11% of people in the world are lefthanded.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net