Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Smooth
Beginner


Joined: 05 Aug 2002
Posts: 25

PostPosted: Wed Feb 18, 2004 1:15 pm   

Parsing URLs in zmud
 
Is there a way to have zMUD parse a url sent by a mud and convert it into a clickable hyperlink? I've messed around a bit with triggers and scripting before, but I'm not really sure how I would go about this. Thanks.
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Wed Feb 18, 2004 3:00 pm   
 
There is an old post on making the url clickable

see

http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=13372

i slightly changed it to


#TRIGGER {({http|ftp|telnet}://%x)} {#SUBSTITUTE {~<A %replace(%1,"'","")>%1~</A>}}


This was so if it was the last thing typed on the line it would remove the quote making the link work still.

If you capture your info make sure you enter the trigger into the capture windows setting also
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net