• ecWeb how to default to real names

    From Xucaen@VERT to echicken on Wed Nov 25 17:35:43 2015
    Hi, I'm not really sure which is the best area to post this. I noticed the other day that when entering a message on the web when using the ecWeb interface, the From: field defaults to alias. All of my Fidonet areas are configured to use real names, but ecWeb posts using alias instead, unless I remember to change it, (which I never will :P). I am looking in the source code for a place to change the default so it will default to real name, but I'm not having any luck finding where to make the change. I thought it would be better to ask anyways so I don't go mucking up code I'm not familiar with. I really like being able to enter message from the web and I don't want to screw it up. ;)

    ---
    þ Synchronet þ The Time Portal - timeport.synchro.net:2112 - Celebrating the past from the futu
  • From echicken@VERT to Xucaen on Wed Nov 25 23:26:50 2015
    Re: ecWeb how to default to real names
    By: Xucaen to echicken on Wed Nov 25 2015 17:35:43

    I remember to change it, (which I never will :P). I am looking in the source code for a place to change the default so it will default to real name, but I'm not having any luck finding where to make the change. I

    Well, that code is a disaster, so don't waste any more time looking at it.

    I think that you can probably get what you're looking for by switching the positions of lines 157 and 158 in web/root/ecwebv3/lib/client.js. Those two lines should be making two <option> tags, from which you would choose your alias or real name. Making the 'real name' option come first should make it the default.

    I'll make sure that my new web UI respects the sub-level setting for whether or not real names should be used.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Xucaen@VERT to echicken on Fri Nov 27 19:38:48 2015
    Re: ecWeb how to default to real names
    By: echicken to Xucaen on Wed Nov 25 2015 11:26 pm

    Re: ecWeb how to default to real names
    By: Xucaen to echicken on Wed Nov 25 2015 17:35:43

    I remember to change it, (which I never will :P). I am looking in the source code for a place to change the default so it will default to real name, but I'm not having any luck finding where to make the change. I

    Well, that code is a disaster, so don't waste any more time looking at it.

    I think that you can probably get what you're looking for by switching the positions of lines 157 and 158 in web/root/ecwebv3/lib/client.js. Those two lines should be making two <option> tags, from which you would choose your alias or real name. Making the 'real name' option come first should make it the default.

    I'll make sure that my new web UI respects the sub-level setting for
    whether or not real names should be used.

    Cool, Thank you! much appreciated.

    ... "In the constellation of Cygnus there lurks a mysterious, invisible force."

    ---
    þ Synchronet þ The Time Portal - timeport.synchro.net:2112 - Celebrating the past from the futu
  • From Xucaen@VERT to echicken on Sun Dec 13 16:38:44 2015
    Subject: ecWeb how to default to real names
    @MSGID: <566DE564.380.dove-syncprog@timeport.synchro.net>
    @REPLY: <56568A0A.13523.syncprog@bbs.electronicchicken.com>
    @TZ: 412c
    Re: ecWeb how to default to real names
    By: Xucaen to echicken on Wed Nov 25 2015 17:35:43

    I think that you can probably get what you're looking for by switching the >positions of lines 157 and 158 in web/root/ecwebv3/lib/client.js. Those two >lines should be making two <option> tags, from which you would choose your >alias or real name. Making the 'real name' option come first should make it >the default.

    I finally got around to making the change. I swapped lines 157 and 158, and also swapped lines 183 and 184.


    I'll make sure that my new web UI respects the sub-level setting for whether or
    not real names should be used.



    Well, I thought about it, and I checked the value of sub. It looks like, in my case at least, that the sub argument always has "fido-" as part of the name for fidonet areas. So I wrapped the alias lines with if(sub.indexOf("fido") < 0) and that seems to exclude the alias from all the Fidonet areas. Now my fido areas are always going to use the real name, while dove net and local areas can use either one.

    I know this is a temporary solution for at best, so I would not recommend that else implement it. A better solution would be, as eChicken stated, to check the actual "use real names" flag.

    Thank you for pointing me in the right direction! :)

    ---
    þ Synchronet þ The Time Portal - timeport.synchro.net:2112 - Celebrating the past from the futu