|
peewee Wanderer
Joined: 22 Oct 2000 Posts: 90 Location: Sweden
|
Posted: 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] |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
peewee Wanderer
Joined: 22 Oct 2000 Posts: 90 Location: Sweden
|
Posted: 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] |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jun 22, 2003 5:59 pm |
Is it underlined? What version of zMUD are you using? Do you have MXP enabled?
Kjata |
|
|
|
peewee Wanderer
Joined: 22 Oct 2000 Posts: 90 Location: Sweden
|
Posted: 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] |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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.
|
|
|
|
crowley Beginner
Joined: 22 Jun 2001 Posts: 12
|
Posted: 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 |
|
|
|
|
|