mIRC Home    About    Download    Register    News    Help

Print Thread
Bug report #6639 15/01/03 08:10 AM
Joined: Jan 2003
Posts: 148
K
Knappen Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Hi!

I`m currently making a script and i want to have a bugreport form in it (dialog), but I dont`know [censored] about sockets!

Can any1 please help me whith a script that has this?

Thnx!

Re: Bug report #6640 15/01/03 06:42 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Considerations
  • [color:black] mailto:
  • HTTP GET - HyperText Transfer Protocol (data in URL)
  • HTTP POST - HyperText Transfer Protocol - (hidden data)
  • Anonymous FTP - File Transfer Protocol
  • SMTP - Simple Mail Transfer Protocol
    [/color]
The design of the script and its data elements is going to depend on which protocol you intend to use to transfer the bug report data. You can send it (via socket) by email (SMTP) or through a web interface (HTTP - the same as <form method=GET|POST action=http://socket.connection.page.to.interpret.the.data.[cgi|asp|php]> on a web page form) or perhaps even by transferring a file (FTP) to a common bug report collection point. If you have a web page (.cgi|.asp|.php) capable of handling data input, then the web page interface is quite likely the easiest to implement. SMTP would require that the user tell the script where there email host is, probably a password to use it as well as writing a mnimal SMTP client engine itself (a non-trivial task); the FTP interface would not be horribly difficult for an ASCII file transfer but would require a minimal FTP client engine (again, a non-trivial task for scripters inexperienced with sockets).

Probably the easiest method would simply to disregard the sockets altogether, build a decent mailto: string and simply open an email to you (or your bug report email alias) from them, using their default email client. You can even format the body of the email nicely (for most well-behaved email clients) with $crlf's (%0D%0A). mailto:Hammer <hammer[/b]@dal.net>?subject=Bug Report for MyScript - Away System&body=When I was trying to set myself away%0D%0Ait wouldn't work!!!!!!

The second easiest method is an HTTP socket to a URL that can handle GET like http://www.site.com/mypage.cgi?topic=Bug...%21%21%21%21%21 and then let your .cgi or .asp or .php script handle the data input. Of course, this method requires the presence of such a script on a web server that can handle that kind of web extension.

Third easiest would be the HTTP socket toa URL that can handle a POST (variables not in the URL itself but in a block that follows the HTTP headers+$crlf) with the same caveat as above.

Next most difficult is probably the FTP script (anonymous login). The basic FTP protocol isn't too difficult to deal with and since you're not writing a full-blown FTP client, you'd only have to make the script deal with the most rudimentary file transfer, though that still requires keeping track of 2 sockets (data + control), rather than one as in the HTTP examples and in the SMTP example to follow.

Finally, SMTP would most likely be the most difficult because most users are not technically adept enough to be able to configure a real STMP client (like Outlook or Eudora) confidently. Therefore, requesting the required information from them and getting everything working (based solely on the data THEY must input to the script) can be quite challenging.

All of these will require that you learn the protocol you choose, however much of it you need to accomplish what you want to do.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: Bug report #6641 16/01/03 03:51 AM
Joined: Dec 2002
Posts: 24
G
GK_Kamel Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 24
i made a bug report system for my bot.

on *:text:!bugreport:#:write bugreport.txt < $+ $fulldate $network $+ | $+ $nick $+ >

essentually, what it does is saves it to bugreport.txt -- this can be accessed via an ftp server on my computer (third party, guildftpd to be specific).

i dont know if this will help you at all... but i figured i'd share the info atleast, lol.

good luck smile

Re: Bug report #6642 17/01/03 10:05 AM
Joined: Jan 2003
Posts: 148
K
Knappen Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Thanks for your replies! But it`s not what i`m looking for...
I ment that I want a bugreport script (like in Peace&Protection), but i dont understand how to use sockets...
So what I ment is that I want a script like in P&P...
If any1 can help me with a such script....

smile

Re: Bug report #6643 17/01/03 10:14 AM
Joined: Dec 2002
Posts: 143
A
Aubs Offline
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
Am I correct in saying you want to make a dialog with say: Name, Email Address, Script Verison, mIRC Version Problem Encountered.

All those so the user of your script can fil it in, click "Send Bug Report" and send you a bug report to your email/website messageboard?

Something on the lines of this?

[Edit]
Which is virtually what Hammer explained (all be it in much much more detail!)
[/Edit]

Last edited by Aubs; 17/01/03 10:17 AM.

Aubs.
cool

Re: Bug report #6644 20/01/03 12:35 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
No no no no no no no!!!! That is not what i meen!

I want a bugreport script like that in Peace&Protection that uses sockets and stuff! Not an explination on how sending information works!

Does anyone have a script that they can give me?

Thnx! smile