[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Does simple HTML anchor tag support exist?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Does simple HTML anchor tag support exist?

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


Posted by Laroquod   (3 posts)  [Biography] bio
Date Wed 14 Apr 2010 12:10 PM (UTC)

Amended on Wed 14 Apr 2010 03:00 PM (UTC) by Laroquod

Message
Hi Nick et. al.

I'm new to MUSHclient and MUDding on the PC (though not new to MUDs, have been using Savitar to connect w/a Mac for years).

I'm figuring this will be seen as the stupidest question ever, because it's a very, very simple question and yet no MUD or MUSH client FAQ for the PC that I can see answers it directly in any FAQ or manual. This usually means that everybody already knows the answer and thinks that I should, too.

The question is this: how do I get a PC MUD client to interpret an HTML anchor tag as HTML, and thus turn it into a clickable link that will lead you to a web browser?

I just want to be able to use hypertext links in my MUD.

I don't want to rewrite anything on the MUD to be compatible with MXP, because that sounds like a giant task and MXP seems like a pretty giant thing with a lot of requirements to support simply to achieve a hyperlink! I've read as much of the specification as I can and it's massive overkill.

Can anyone help me achieve a simple hyperlink without massive amount of MXP-implementation overhead time and resources? Or maybe I am just misunderstanding this whole situation.

Thanks for reading,
Paul.

UPDATE: I found the Hypertext plugin, and it does something similar to what I've discovered SimpleMU does by default, which is just make https clickable, but I was more looking for actual anchor tags.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Wed 14 Apr 2010 07:47 PM (UTC)
Message
By anchor tags do you mean clickable links to send you to some point in the output buffer? Could you perhaps give an example of what you're trying to do? It sounds like you're not satisfied with a URL being turned into a clickable link, so I'm not sure what you're looking for. Do you mean that you want the full HTML tag, with the URL being something other than the link text?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Laroquod   (3 posts)  [Biography] bio
Date Reply #2 on Wed 14 Apr 2010 08:54 PM (UTC)

Amended on Wed 14 Apr 2010 09:07 PM (UTC) by Laroquod

Message
Hi, David. Yes, that's exactly what I mean. Like an HTML a tag with an href= and some link text, and hopefully clicking that would link to your browser.

This is the way Savitar works and I suppose I had just assumed up until this little adventure that other clients would handle it that way too but I assumed wrong as I have tried a lot of them with no luck.

I'm now contemplating whether to just code a text filter into my mud that does client detection and strips away the anchor tags meant for Savitar, to just leave behind the URL, as that seems to be more what PC clients expect.

That's what I'll do unless I am overlooking a way simpler solution.

Thanks.

UPDATE: Updated to clarify that I don't mean jumping around in the output buffer. I just want to send URLs to the default web browser with an English-style link.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #3 on Wed 14 Apr 2010 09:45 PM (UTC)
Message
Ah, ok, I see now.

Hmm, I've never heard of it being a standard feature to parse <a href="...">foobar</a> tags. Clients would need a plugin to do this (like a fancier version of what you already saw), assuming they support plugins in the first place...

I don't think this is a Mac vs. PC thing by the way, just something that Savitar as a program happens to do.

If you can do client detection, then your best bet might be to treat Savitar specially.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Laroquod   (3 posts)  [Biography] bio
Date Reply #4 on Wed 14 Apr 2010 11:58 PM (UTC)
Message
Hmm thank you for planting that thought in my head of someone writing a fancier version of the Hyperlink plugin because then I went and took a look at it, and it doesn't really look that difficult. I may have a go at it later, after I set up the text filter thing so I have something working. Can't do real client detection, either. I'll just fake it by adding different 'change tag preference' commands to the autologin scripts for each client.

Thanks again for the info!

Paul.
[Go to top] 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.


4,823 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]