• main.asc - Avatars

    From Android8675@1:103/705 to All on Wed Apr 17 12:02:38 2019
    Is there a simple @ code to display the current users Avatar? Guessing have to use @\EXEC:something.js@\, then have to figure out how to get it to display in-line?

    I carved out a spot in the bottom right corner of text\menu\main.asc if that helps anyone. Thanks much...
    --
    Android8675@ShodansCore



    ... Database administrators do it with their relations


    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Android8675 on Wed Apr 17 15:58:15 2019
    Re: main.asc - Avatars
    By: Android8675 to All on Wed Apr 17 2019 12:02 pm

    Is there a simple @ code to display the current users Avatar? Guessing have to use @\EXEC:something.js@\, then have to figure out how to get it to display in-line?

    The latest stock msghdr.asc in text/menu should show avatars, so you could look at that for an example. It looks like it has a code to execute showmsghdr.js. See this page for more info:
    http://wiki.synchro.net/module:avatars

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Nightfox on Thu Apr 18 07:55:48 2019
    Re: main.asc - Avatars
    By: Nightfox to Android8675 on Wed Apr 17 2019 03:58 pm

    Is there a simple @ code to display the current users Avatar?
    Guessing have to use @\EXEC:something.js@\, then have to figure out
    how to get it to display in-line?

    The latest stock msghdr.asc in text/menu should show avatars, so you could look at that for an example. It looks like it has a code to execute showmsghdr.js. See this page for more info: http://wiki.synchro.net/module:avatars

    Yeah, not what I'm looking for. I should of explained better, I'm modifying my main menu and I'd like the current avatar to display in the lower right corner, if possible. I think it'll require some Javascript re-write of the main menu display.

    I figured out how to modify the message header using the slower
    msghdr.asc as well as the faster text.dat method. I wanted to display the vote counts for messages ala-reddit style. I got it to work with msghdr.asc. Gonna try to add the same data to text.dat, if possible.

    +------------------------....
    | Msg : @SMB_CURMSG-Z4@ of @SMB_MSGS-Z4@
    | Subj: @MSG_SUBJECT-L..................................@
    | Attr: @MSG_ATTR-L.....................@
    | To : @MSG_TO-L.......................@ @MSG_UPVOTED-L3@.@MSG_UPVOTES-Z 3@/@MSG_DOWNVOTES-Z3@.@MSG_DOWNVOTED-L2@
    | From: @MSG_FROM-L.....................@ @MSG_SCORE-C15@
    | Date: @MSG_DATE-L............@ @MSG_TIMEZONE-L8@ +-----------------------------------------------......
    @EXEC:SHOWMSGAVATAR@


    Something like that... Looks pretty cool I think. I'm considering making it so up arrow on your keyboard upvotes.

    I'd love it if you could also change your vote to down at any time.
    --
    Android8675@ShodansCore

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Android8675 on Thu Apr 18 10:20:44 2019
    Re: main.asc - Avatars
    By: Android8675 to Nightfox on Thu Apr 18 2019 07:55 am

    Is there a simple @ code to display the current users Avatar?
    Guessing have to use @\EXEC:something.js@\, then have to figure out
    how to get it to display in-line?

    The latest stock msghdr.asc in text/menu should show avatars, so
    you could look at that for an example. It looks like it has a code
    to execute showmsghdr.js. See this page for more info:
    http://wiki.synchro.net/module:avatars

    Yeah, not what I'm looking for. I should of explained better, I'm modifying my main menu and I'd like the current avatar to display in the lower right corner, if possible. I think it'll require some Javascript re-write of the main menu display.

    Ah.. There's also a script in the exec directory called showmsgavatar.js, to show avatars. It sounded like you were looking for a particular .js to execute in an @EXEC@ statement, and I think I mentioned the wrong one. The first CVS commit message for showmsgavatar.js says you should be able to use @exec:showmsgavatar@.

    I'd love it if you could also change your vote to down at any time.

    I'm not sure Synchronet supports changing your vote after you've already voted on a message.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Va7aqd@1:103/705 to Android8675 on Thu Apr 18 10:56:10 2019
    Re: main.asc - Avatars
    By: Android8675 to Nightfox on Thu Apr 18 2019 07:55 am

    I figured out how to modify the message header using the slower
    msghdr.asc as well as the faster text.dat method. I wanted to display the vote counts for messages ala-reddit style. I got it to work with msghdr.asc. Gonna try to add the same data to text.dat, if possible.

    Yes, very cool! I think you answered a few questions there and perhaps your example should get put in to the wiki as reference.
    Thank you for sharing!

    I adjusted yours a bit for my preference and am now using this (not sure this paste will work great):

    ^AN+------------------------....
    | From: @MSG_FROM-L.....................@ ^AN^AR@MSG_UPVOTED-L3@^AH^X@MSG_UPVOT ES-Z3@^AN^AR/^AH^AB@MSG_DOWNVOTES-Z3@^Y^AH@MSG_DOWNVOTED-L2@^AN
    | To : @MSG_TO-L.......................@ ^AH^AG@MSG_SCORE-C15@^AN
    | Subj: @MSG_SUBJECT-L..................................@
    | Attr: @MSG_ATTR-L.....................@
    | Date: @MSG_DATE-L............@ @MSG_TIMEZONE-L6@ @MSG_AGE@ +-----------------------------------------------......
    @EXEC:SHOWMSGAVATAR@

    Are all the CTRL-A's borked? Hmm, they seem to be getting interpreted. I'm not sure how you got everything in to a message but
    the default fseditor seems to be tricky to paste in something like this? How did you do it?

    ---
    * Synchronet * VA7AQD's Tavern - bbs.isurf.ca
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Va7aqd on Thu Apr 18 13:02:35 2019
    Re: main.asc - Avatars
    By: Va7aqd to Android8675 on Thu Apr 18 2019 10:56 am

    Are all the CTRL-A's borked? Hmm, they seem to be getting interpreted. I'm not sure how you got everything in to a message but the default fseditor seems to be tricky to paste in something like this? How did you do it?

    Assuming the editor can accept high-ASCII characters & such, pasting should be more of an issue of the terminal software you're
    using rather than the BBS's editor. With SyncTerm, for instance, you can paste
    by right-clicking into the SyncTerm window.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Va7aqd@1:103/705 to Nightfox on Fri Apr 19 10:27:59 2019
    Re: main.asc - Avatars
    By: Nightfox to Va7aqd on Thu Apr 18 2019 01:02 pm

    Assuming the editor can accept high-ASCII characters & such, pasting should be more of an issue of the terminal software you're
    using rather than the BBS's editor. With SyncTerm, for instance, you can paste by right-clicking into the SyncTerm window.

    Yeah, that was what I was doing - getting something pasted in to syncterm was fine. What got put in to the clipboard seemed to
    vary wildly depending on whether I was looking at the source in vi or on console via 'cat'. I think I probably needed a better
    source to copy from.

    ---
    * Synchronet * VA7AQD's Tavern - bbs.isurf.ca
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Mon Apr 22 15:13:44 2019
    Re: main.asc - Avatars
    By: Android8675 to All on Wed Apr 17 2019 12:02 pm

    Is there a simple @ code to display the current users Avatar? Guessing have to use @\EXEC:something.js@\, then have to figure out how to get it to display in-line?

    I carved out a spot in the bottom right corner of text\menu\main.asc if that helps anyone. Thanks much...

    You'll need to create/use a "something.js". See showmsgavatar.js and showfileavatar.js for examples (but don't use the bbs.msg_* variables since they don't apply). I'll probably create a simple example to display the current user's avatar, but the main question is about controlling where/how to display it on the screen.

    digital man

    Synchronet/BBS Terminology Definition #33:
    GIF = Graphics Interchange Format (pronounced "JIFF")
    Norco, CA WX: 74.0oF, 45.0% humidity, 14 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Mon Apr 22 15:55:39 2019
    Re: main.asc - Avatars
    By: Digital Man to Android8675 on Mon Apr 22 2019 03:13 pm

    Re: main.asc - Avatars
    By: Android8675 to All on Wed Apr 17 2019 12:02 pm

    Is there a simple @ code to display the current users Avatar? Guessing have to use @\EXEC:something.js@\, then have to figure out how to get it to display in-line?

    I carved out a spot in the bottom right corner of text\menu\main.asc if that helps anyone. Thanks much...

    You'll need to create/use a "something.js". See showmsgavatar.js and showfileavatar.js for examples (but don't use the bbs.msg_* variables since they don't apply). I'll probably create a simple example to display the current user's avatar, but the main question is about controlling where/how to display it on the screen.

    I just added script (exec/showavatar.js) which can be invoked with @exec or, if you want to pass options (e.g. '-draw' or whatever), then you'll need a small wrapper script which just load's the showavatar.js with your desired options, for example:

    showuseravatar.js:
    load('showavatar.js', '-draw');

    Then you can @exec:showuseravatar@ from your main menu. non-ANSI users won't be supported however and you might need to have a separate menu file for them.

    digital man

    Synchronet "Real Fact" #44:
    Synchronet added JavaScript suppport with v3.10a (2001).
    Norco, CA WX: 75.0oF, 45.0% humidity, 15 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Nightfox on Tue Apr 23 09:18:32 2019
    Re: main.asc - Avatars
    By: Nightfox to Android8675 on Thu Apr 18 2019 10:20 am

    Ah.. There's also a script in the exec directory called showmsgavatar.js, to show avatars. It sounded like you were looking for a particular .js to execute in an @EXEC@ statement, and I think I mentioned the wrong one. The first CVS commit message for showmsgavatar.js says you should be able to use @exec:showmsgavatar@.

    I'll poke around at that next time i'm poking. Problem is the main menu has nothing to do with message board reading which I think that .js attempts to display. Maybe I can hijack some code and get eChicken to complete my thoughts to code.

    I'd love it if you could also change your vote to down at any time.

    I'm not sure Synchronet supports changing your vote after you've already voted on a message.

    ...yet.
    --
    Android8675@ShodansCore



    ... Don't jump on a man unless he's down.

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Va7aqd on Tue Apr 23 09:22:29 2019
    Re: main.asc - Avatars
    By: Va7aqd to Android8675 on Thu Apr 18 2019 10:56 am

    I adjusted yours a bit for my preference and am now using this (not sure this paste will work great):

    ^AN+------------------------....
    | From: @MSG_FROM-L.....................@ ^AN^AR@MSG_UPVOTED-L3@^AH^X@MSG_UPVOT ES-Z3@^AN^AR/^AH^AB@MSG_DOWNVOTES-Z3@^Y^AH@MSG_DOWNVOTED-L2@^AN | To : @MSG_TO-L.......................@ ^AH^AG@MSG_SCORE-C15@^AN | Subj: @MSG_SUBJECT-L..................................@ | Attr: @MSG_ATTR-L.....................@ | Date: @MSG_DATE-L............@ @MSG_TIMEZONE-L6@ @MSG_AGE@ +-----------------------------------------------...... @EXEC:SHOWMSGAVATAR@

    Are all the CTRL-A's borked? Hmm, they seem to be getting interpreted. I'm not sure how you got everything in to a message but the default fseditor seems to be tricky to paste in something like this? How did you do it?

    I really don't remember either. I'm using SlyICE, this is what I got from you, it looks fine at least I can read it. I'd love to be able to show one msghdr file depending on if voting is available, right now the vote data shows on all messages, even if you can't vote.

    At any rate, I'm going to see how many of my OtherNets support .qwk packets, voting, and avatars.
    --
    Android8675@ShodansCore

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Tue Apr 23 15:33:51 2019
    Re: main.asc - Avatars
    By: Android8675 to Nightfox on Tue Apr 23 2019 09:18 am

    Re: main.asc - Avatars
    By: Nightfox to Android8675 on Thu Apr 18 2019 10:20 am

    Ah.. There's also a script in the exec directory called showmsgavatar.js, to show avatars. It sounded like you were looking for a particular .js to execute in an @EXEC@ statement, and I think I mentioned the wrong one. The first CVS commit message for showmsgavatar.js says you should be able to use @exec:showmsgavatar@.

    I'll poke around at that next time i'm poking. Problem is the main menu has nothing to do with message board reading which I think that .js attempts to display. Maybe I can hijack some code and get eChicken to complete my thoughts to code.

    I committed the file exec/showavatar.js for you to use.

    digital man

    Synchronet "Real Fact" #90:
    Synchronet/DSZ "hack" of '93: http://wiki.synchro.net/history:hack93
    Norco, CA WX: 80.0oF, 44.0% humidity, 14 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Va7aqd@1:103/705 to Android8675 on Tue Apr 23 16:08:52 2019
    Re: main.asc - Avatars
    By: Android8675 to Va7aqd on Tue Apr 23 2019 09:22 am

    I really don't remember either. I'm using SlyICE, this is what I got from you, it looks fine at least I can read it. I'd love to be able to show one msghdr file depending on if voting is available, right now the vote data shows on all messages, even if you can't vote.

    Right, yes, I'd like to as well - though Rob confirmed that conditionals aren't
    supported in this method. However, it's not a big
    deal currently, perhaps something to poke around with in the future. I'm pretty happy you posted what you did as it works great
    here.

    ---
    * Synchronet * VA7AQD's Tavern - bbs.isurf.ca
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Digital Man on Wed Apr 24 08:52:14 2019
    Re: main.asc - Avatars
    By: Digital Man to Android8675 on Mon Apr 22 2019 03:13 pm

    You'll need to create/use a "something.js". See showmsgavatar.js and showfileavatar.js for examples (but don't use the bbs.msg_* variables since they don't apply). I'll probably create a simple example to display the current user's avatar, but the main question is about controlling where/how to display it on the screen.

    Yeah, that's what I was thinking. Might look at that frame.js work that people are doing with ANSI layers as well, see if I can't cobble something together. Would be nice if you could use just @TARGET@ where you want the avatar to
    be written, then @EXEC_SHOW-AVATAR-AT-TARGET@, but I'll look into it and see
    if
    I can't figure something out.
    --
    Android8675@ShodansCore



    ... It is morally wrong to allow suckers to keep their money.


    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Digital Man on Wed Apr 24 08:59:54 2019
    Re: main.asc - Avatars
    By: Digital Man to Android8675 on Mon Apr 22 2019 03:55 pm

    I just added script (exec/showavatar.js) which can be invoked with @exec or, if you want to pass options (e.g. '-draw' or whatever), then you'll need a small wrapper script which just load's the showavatar.js with your desired options, for example:

    showuseravatar.js:
    load('showavatar.js', '-draw');

    Then you can @exec:showuseravatar@ from your main menu. non-ANSI users won't be supported however and you might need to have a separate menu file for them.

    Wonder if I could come up with the same showavatar.js if I just set out to do i t myself.

    Thanks DM, just what I was thinking. Tweak testing, commencing.

    -A.
    --
    Android8675@ShodansCore

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Digital Man on Wed Apr 24 09:19:39 2019
    Re: main.asc - Avatars
    By: Digital Man to Android8675 on Tue Apr 23 2019 03:33 pm

    I committed the file exec/showavatar.js for you to use.

    ...and it's BEAUTIFUL! Used the -above parameter and the avatar fits under the main menu 4th column. Gotta test it with different user settings, but it's just what I needed.
    --
    Android8675@ShodansCore

    ---
    * Synchronet * Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Wed Apr 24 15:14:26 2019
    Re: main.asc - Avatars
    By: Android8675 to Digital Man on Wed Apr 24 2019 09:19 am

    Re: main.asc - Avatars
    By: Digital Man to Android8675 on Tue Apr 23 2019 03:33 pm

    I committed the file exec/showavatar.js for you to use.

    ...and it's BEAUTIFUL! Used the -above parameter and the avatar fits under the main menu 4th column. Gotta test it with different user settings, but it's just what I needed.

    Good to hear!

    digital man

    This Is Spinal Tap quote #17:
    David St. Hubbins: It's such a fine line between stupid, and uh... and clever. Norco, CA WX: 81.2oF, 41.0% humidity, 17 mph NE wind, 0.00 inches rain/24hrs --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)