Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ MXP and Pueblo ➜ about <support> tag

about <support> tag

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Okram   Italy  (8 posts)  Bio
Date Fri 07 Mar 2003 09:36 AM (UTC)
Message
Hallo,
I'm now coding for my mud some things like client recognition via the <version> command.
I tried this with ZMud and MushClient and all gone well.

Then I began to implement the handling of the <support> tag, which response should be <supports ..> where .. is the list of tags supported by the client.

Some tags "supported" (because I find them in the line of <supports ..> sended my mushclient make me think.
This is what I get from mushclient's <support>:

Log: <SUPPORTS +head +body +afk +title +username +pass +samp +h +high +i +option +bold +image +image.url +xch_page +reset +strong +recommend_option +support +ul +em +send +send.href +send.hint +send.xch_cmd +send.xch_hint +send.prompt +p +hr +html +user +password +a +a.href +a.xch_cmd +a.xch_hint +underline +b +img +img.src +img.xch_mode +pre +li +ol +c +c.fore +c.back +color +color.fore +color.back +font +font.color +font.back +font.fgcolor +font.bgcolor +u +mxp +mxp.off +version +br +var +italic >

Please, notice that it says it supports "IMAGE", "IMAGE.URL", "IMG", "IMG.SRC" among other things.

Now, on my mud I added some "bools" like has_mxp_images or has_mxp_bold on the descr_data in order to know if I can send those tags to the client. I mean, if the client can handle them.

This works with zmud: if I get "+IMAGE" on the supports line I know I can send images, else not.

On mushclient it says it handles +image tag, but I know that no support for the image tag is given for mushclient.

So I ask why mushclient says +IMAGE on the response, when it doesn't really handle the image tag.

Or am I missing something?

-marco-
Okram@AnacroniAMUD.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 08 Mar 2003 08:40 PM (UTC)
Message
It supports the IMAGE tag by generating a hyperlink, that if you click on it, shows the image in your web browser. So, it supports it to an extent.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Okram   Italy  (8 posts)  Bio
Date Reply #2 on Mon 10 Mar 2003 09:32 AM (UTC)
Message
Nick Gammon said:
It supports the IMAGE tag by generating a hyperlink, that if you click on it, shows the image in your web browser. So, it supports it to an extent.

Here is log of MushClient handling images.
In what am I wrong?
This mxp tag works with zmud and shows the image.
In mushclient it doesn't show anything, even a link.

A 20000: ( 69) MXP element: <image align=bottom FNAME=staff.gif URL=http://anacronia.gamedev.it/img/>
E 1031: ( 69) Invalid parameter name: "/"

Perhaps do I have to use URL=http://anacronia.gamedev.it/img/staff.gif as filename?

-marco-
Top

Posted by Okram   Italy  (8 posts)  Bio
Date Reply #3 on Mon 10 Mar 2003 09:34 AM (UTC)
Message
A 20000: ( 152) MXP element: <image align=bottom FNAME=staff.gif URL=http://anacronia.gamedev.it/img/staff.gif>
E 1031: ( 152) Invalid parameter name: "/"

I answer myself, "no".

So, what do I have to do?
-marco-
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #4 on Tue 11 Mar 2003 09:33 PM (UTC)
Message
I think the MXP parsing will not accept slashes as part of a parameter, so you need to quote it.

eg.

<image align=bottom FNAME=staff.gif URL="http://anacronia.gamedev.it/img/">

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Guest1   USA  (256 posts)
Date Reply #5 on Tue 11 Mar 2003 09:40 PM (UTC)
Message
*looking* :)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,616 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.