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?
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
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'd love it if you could also change your vote to down at any time.
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.
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.
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...
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.
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.
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?
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 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.
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.
I committed the file exec/showavatar.js for you to use.
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.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495949:33:20 |
| Calls: | 82 |
| Files: | 1,070 |
| Messages: | 287,252 |