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
peewee
Wanderer


Joined: 22 Oct 2000
Posts: 90
Location: Sweden

PostPosted: Sun Jun 22, 2003 10:52 am   

Creating clickable URL's
 
Heya all!
I posted a feature request in the Beta forum, that I'd like all listed URL's to be clickable, and thus open a browser window with the URL. Zugg replied this was already possible using the #SUB-command. So a #TR was created:
#TRIGGER {(http://%x) } {#SUB {<A href=~"%1~">%1</A> }

I tested it, and it does display the URL as text. However, it is not clickable. Is there a setting I am missing somewhere? I'll keep poking around a bit, but any help would be appreciated.

Thanks in advance.


"May the Force be with you"
[url]peeweesweden@bredband.net[/url]
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jun 22, 2003 12:05 pm   
 
I have no problem with it, however, make sure that Allow <> for expand is not enabled in the preferences before creating the trigger, or change it like this:
#TRIGGER {(http://%x) } {#SUB {~<A href=~"%1~"~>%1~</A~> }}

Kjata
Reply with quote
peewee
Wanderer


Joined: 22 Oct 2000
Posts: 90
Location: Sweden

PostPosted: Sun Jun 22, 2003 5:29 pm   
 
Hmm, weird.... the preferences "Allow <>..." is not enabled, and I use the trigger as shown. It displays the URL once, but I can't click it...


"May the Force be with you"
[url]peeweesweden@bredband.net[/url]
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jun 22, 2003 5:59 pm   
 
Is it underlined? What version of zMUD are you using? Do you have MXP enabled?

Kjata
Reply with quote
peewee
Wanderer


Joined: 22 Oct 2000
Posts: 90
Location: Sweden

PostPosted: Sun Jun 22, 2003 9:18 pm   
 
No it's not underlined.
I am using zMUD 6.62

These are my settings:



Under "Tags"-"System" the <a>-tag is enabled as well, and "Allow <> for expand" is NOT enabled.

Curious...


"May the Force be with you"
[url]peeweesweden@bredband.net[/url]
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jun 23, 2003 1:03 am   
 
Is the trigger firing? Add a #SH with some message to it to make sure it fires. I don't see why it wouldn't fire since it works fine for me, but try it anyway.
Reply with quote
crowley
Beginner


Joined: 22 Jun 2001
Posts: 12

PostPosted: Tue Jun 24, 2003 6:14 pm   
 
#TRIGGER {(http://(%x)) } {#SUB {~<A href=~"%1~"~>%1~</A~> }}

it works for me.. need to enclose %x with parantheses
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