Valhalla Legends Forums Archive | Spht's Forum | WebBot "web chat" suggestion/question

AuthorMessageTime
Phylix
Is it possible to have a custom "web chat" page?  I have a lot of time on my hands and not much to do so I've been trying to make the page as close to perfect as I can and easy for people viewing the channel through their browser.  I've managed to make it easier so far by just automatically inserting the password.  I know, a little stupid, but I can trust my friends to not spam and people I don't know don't know the URL to the page with the saved password.  I'd like to have it a little neater and have the Message text box take focus when the page loads.  A short javascript function does it:

<body onLoad=sf()>
<SCRIPT LANGUAGE="JavaScript">
<!--
function sf(){document.forms[0].message.focus();}
//-->
</script>

Also, there are times when two people use web chat and others become confused as to who's who.  I was thinking of making a small database of users and have them do a quick login so their messages will be preceeded with their username.  I've spent a while on trying to accomplish these things with the knowledge I have, but not too successful.  It all goes back to the default submit page after one message submission.

But, yeah...  Thank you for WebBot.  Been using it for a few years now and it's great.

Oh, and five more things.  Option to turn logging off, option to sign on to Battle.net on start up, automatically going to the bottom of the text feed on page load, option for GMT or Military time, and have it display the time on the computer running WebBot instead of where ever the time comes from when it's displayed on the text feed (I'm guessing BotNet).  Heh...  I just keep seeing more things to change.
January 6, 2006, 5:44 AM
UserLoser
The time WebBot will broadcast comes from the WebBot being ran.  It doesn't have to do anything with the WebChannel server.  WebBot on your system calculates a value for a timestamp that it sends to WebChannel.  Check the time on your system and you should be ok then ;)
January 6, 2006, 7:34 AM
Phylix
Ah...  Thanks.  Thought it was two hours fast because of my bad military to GMT conversion.  It's still an hour ahead, but I guess I'll probably get it after some more fiddling around.
January 6, 2006, 8:34 AM
Spht
[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]
Is it possible to have a custom "web chat" page?[/quote]

Yes, take a look at this page.  That is a simple send form which uses binarychat_isapi_submission_page_send.asp to send a message.  Look at the source of binarychat_isapi_submission_page.asp to see how it works.  binarychat_isapi_submission_page_send.asp sends a simple send query to the BinaryChatISAPI.dll then redirects you back to the send form page.  I was planning on writing little documentation on exactly how to send messages from the web using BinaryChatISAPI.dll.  I'll probably do it at some point...

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]I have a lot of time on my hands and not much to do so I've been trying to make the page as close to perfect as I can and easy for people viewing the channel through their browser.  I've managed to make it easier so far by just automatically inserting the password.  I know, a little stupid, but I can trust my friends to not spam and people I don't know don't know the URL to the page with the saved password.  I'd like to have it a little neater and have the Message text box take focus when the page loads.  A short javascript function does it:

<body onLoad=sf()>
<SCRIPT LANGUAGE="JavaScript">
<!--
function sf(){document.chat.message.focus();}
//-->
</script>

Also, there are times when two people use web chat and others become confused as to who's who.  I was thinking of making a small database of users and have them do a quick login so their messages will be preceeded with their username.  I've spent a while on trying to accomplish these things with the knowledge I have, but not too successful.  It all goes back to the default submit page after one message submission.[/quote]

Sounds great.  I proposed something like that here.

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]But, yeah...  Thank you for WebBot.  Been using it for a few years now and it's great.[/quote]

Glad you're enjoying it.  :)

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]Oh, and five more things.  Option to turn logging off,[/quote]

That's doable.  I added that non-toggible feature because I like the idea of knowing everything is being logged without any effort from me.  I'd be interested in knowing your reason for wanting it toggible.

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]option to sign on to Battle.net on start up, [/quote]

That's planned for the next update.

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]automatically going to the bottom of the text feed on page load, [/quote]

That's a good idea, but I don't have much control over it.  BinaryChatISAPI.dll creates all the web content you see, and that project is maintained by Skywing.  It does automatically scroll when new content is added when you use the default BinaryChatISAPI.dll?channeltextstream instead of channeltextex, hence "live channel feed."

[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]Heh...  I just keep seeing more things to change.[/quote]

Comments and suggestions are encouraged and appreciated.  Thank you for taking the time to compile your post.
January 6, 2006, 6:00 PM
Phylix
[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
Yes, take a look at this page.  That is a simple send form which uses binarychat_isapi_submission_page_send.asp to send a message.  Look at the source of binarychat_isapi_submission_page.asp to see how it works.  binarychat_isapi_submission_page_send.asp sends a simple send query to the BinaryChatISAPI.dll then redirects you back to the send form page.  I was planning on writing little documentation on exactly how to send messages from the web using BinaryChatISAPI.dll.  I'll probably do it at some point...[/quote]
Ah...  I see.  What I've been trying to do was submitting the data to binarychat_isapi_submission_page_send.asp and my custom web chat page.  Then have it load that custom page instead of the binarychat_isapi_submission_page_send.asp page.  Can you show an example of that query or the ASP part of the source?

[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]
Also, there are times when two people use web chat and others become confused as to who's who.  I was thinking of making a small database of users and have them do a quick login so their messages will be preceeded with their username.  I've spent a while on trying to accomplish these things with the knowledge I have, but not too successful.  It all goes back to the default submit page after one message submission.[/quote]
Sounds great.  I proposed something like that here.[/quote]

Hm...  I think it'll be pretty easy if I get the custom web chat page working.

[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
That's doable.  I added that non-toggible feature because I like the idea of knowing everything is being logged without any effort from me.  I'd be interested in knowing your reason for wanting it toggible.[/quote]

I have another bot running for that since WebBot doesn't have commands to allow users to view their latency (My friends are obsessed with their ping.  Most command used), last few users the bot had seen, and other things.

[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]option to sign on to Battle.net on start up, [/quote]

That's planned for the next update.[/quote]

Oh, awesome.

[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]automatically going to the bottom of the text feed on page load, [/quote]

That's a good idea, but I don't have much control over it.  BinaryChatISAPI.dll creates all the web content you see, and that project is maintained by Skywing.  [/quote]

Oh.  I guessed that much, but thought you might have a little influence over it.

[quote author=Spht link=topic=13805.msg140822#msg140822 date=1136570444]
It does automatically scroll when new content is added when you use the default BinaryChatISAPI.dll?channeltextstream instead of channeltextex, hence "live channel feed."[/quote]
Yeah, noticed that part.  Didn't know about channeltextex.  Good to know, though.
January 6, 2006, 7:52 PM
Spht
[quote author=Phylix link=topic=13805.msg140836#msg140836 date=1136577127]Ah...  I see.  What I've been trying to do was submitting the data to binarychat_isapi_submission_page_send.asp and my custom web chat page.  Then have it load that custom page instead of the binarychat_isapi_submission_page_send.asp page.  Can you show an example of that query or the ASP part of the source?[/quote]

binarychat_isapi_submission_page_send.asp:

[quote][...]
RemoteURL = "http://www.valhallalegends.com/skywing/isapi/BinaryChatISAPI.dll?sendtext&bot=" & BotName & "&message=" & Message & "&password=" & Password & "&redirect=" & RedirectURL
[...][/quote]

So, it's BinaryChatISAPI.dll?sendtext.

bot is the registration name of the bot that is going to send the message.  message is the message you are going to send (this is where you would prepend the username sending the message if you want).  password is the password chosen in "Password to chat from web."  redirect is the URL to redirect to once the command has been processed.  That is optional I think.
January 13, 2006, 11:45 PM
Phylix
Got it working perfectly.  Thanks!  I'll work on doing this:
[quote author=Phylix link=topic=13805.msg140759#msg140759 date=1136526245]
Is it possible to have a custom "web chat" page?[/quote]

Also, there are times when two people use web chat and others become confused as to who's who.  I was thinking of making a small database of users and have them do a quick login so their messages will be preceeded with their username.  I've spent a while on trying to accomplish these things with the knowledge I have, but not too successful.  It all goes back to the default submit page after one message submission.[quote][/quote]

Sounds great.  I proposed something like that here.
[quote][/quote]

And post if I get it working.
January 14, 2006, 6:21 PM

Search