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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  New Hyperlink_URL2 version

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: New Hyperlink_URL2 version
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1  2 

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 23 Dec 2012 07:10 PM (UTC)  quote  ]

Amended on Sun 23 Dec 2012 08:12 PM (UTC) by Nick Gammon

Message
See http://www.gammon.com.au/scripts/showrelnote.php?version=4.76&productid=0

Read point 1.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (849 posts)  [Biography] bio   Global Moderator
Date Sun 23 Dec 2012 07:10 PM (UTC)  quote  ]
Message
KedarOthort said:

Nick Gammon said:

(version)

Did you re-install the plugin?


I'm on Version 4.61, and yes, I reinstalled it.

This option was added in 4.76. Time to upgrade from your now almost 2.5 year old version.

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by KedarOthort   (3 posts)  [Biography] bio
Date Sun 23 Dec 2012 04:26 PM (UTC)  quote  ]
Message
Nick Gammon said:

(version)

Did you re-install the plugin?


I'm on Version 4.61, and yes, I reinstalled it.
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 23 Dec 2012 07:54 AM (UTC)  quote  ]
Message
Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


Did you re-install the plugin?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by KedarOthort   (3 posts)  [Biography] bio
Date Sun 23 Dec 2012 05:59 AM (UTC)  quote  ]
Message
Added that line, URL's are still being underlined...
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 23 Dec 2012 03:33 AM (UTC)  quote  ]
Message
In this code:


			Hyperlink(
				hyperlinks[v.hyperlink_number].text -- Hyperlink
				,string.sub(line, v.startpoint, v.endpoint) -- Displayed text
				,"Go to " .. hyperlinks[v.hyperlink_number].text -- Hover text
				,RGBColourToName(v.textcolour) -- Foreground color
				,RGBColourToName(v.backcolour) -- Background color
				,1 -- Boolean: Open as a URL?



There are six arguments. To add the 7th, you need to add one more, eg.


			Hyperlink(
				hyperlinks[v.hyperlink_number].text -- Hyperlink
				,string.sub(line, v.startpoint, v.endpoint) -- Displayed text
				,"Go to " .. hyperlinks[v.hyperlink_number].text -- Hover text
				,RGBColourToName(v.textcolour) -- Foreground color
				,RGBColourToName(v.backcolour) -- Background color
				,1 -- Boolean: Open as a URL?
                                ,true -- NoUnderline


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by KedarOthort   (3 posts)  [Biography] bio
Date Sun 23 Dec 2012 03:11 AM (UTC)  quote  ]
Message
Where do I add that Lua option for NoUnderline to make it work?
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Wed 25 Apr 2012 08:47 AM (UTC)  quote  ]
Message
It's not you Worstje, it's me.

:)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Wed 25 Apr 2012 08:02 AM (UTC)  quote  ]
Message
.. These weeks are not my weeks. I swear I read the docs before posting... but I'm apparently very, very blind nowadays. Dooh. I guess I saw the examples and missed the notes hidden inbetween them. :(

Thanks for being patient with me. :-)
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Wed 25 Apr 2012 03:10 AM (UTC)  quote  ]
Message
Template:function=Hyperlink Hyperlink

The documentation for the Hyperlink script function is available online. It is also in the MUSHclient help file.



Quote:

Lua notes

Lua has a 7th optional argument: NoUnderline.

If true, the hyperlink is not underlined. It defaults to false.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Sun 22 Apr 2012 02:29 AM (UTC)  quote  ]

Amended on Sun 22 Apr 2012 02:33 AM (UTC) by Worstje

Message
I'm doing a slight derail after some thread necromancy, and I'll apologize right away to Sketch-The-Fox for that.

Nick Gammon said:

The Hyperlink function always underlines, judging by the code, regardless of MXP settings.


Is there any chance an extra flag could be added to the Hyperlink() function to disable the mandatory underline?

I am writing an alias for plugin settings, and for the colours I've added a colour swatch preview (spaces with the colour set as the background) + a hyperlink to modify this. But in practice, my users seem to try to click the colour shown rather than the Modify hyperlink next to it, leading to some confusion. But when I Hyperlink() rather than ColourTell() the colour swatch, there is this really ugly looking underline (in the standard Note colour?) below it, so I was hoping to be able to disable it for this case.

[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sat 11 Jun 2011 10:51 PM (UTC)  quote  ]
Message
The Hyperlink function always underlines, judging by the code, regardless of MXP settings.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Sojik   USA  (8 posts)  [Biography] bio
Date Sat 11 Jun 2011 01:44 PM (UTC)  quote  ]

Amended on Sat 11 Jun 2011 01:54 PM (UTC) by Sojik

Message
I'm getting underlined hyperlinks regardless of what setting I use in the MXP/Pueblo tab in MUSHClient v4.73. Am I the only one? I'm pretty sure this plugin doesn't change the style of hyperlinks.

EDIT: Nevermind. It's a bug with MUSHclient I believe because I made a hyperlink in a test and it underlined it.
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sun 02 Jan 2011 09:31 PM (UTC)  quote  ]
Message
Done.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Sketch-The-Fox   (19 posts)  [Biography] bio
Date Sun 02 Jan 2011 02:27 PM (UTC)  quote  ]
Message
Thanks for both! I'm sure the posting ability will be useful.
It appears as though the old description wasn't removed from the plugins page. Is it possible to do that?
Sorry for the nitpicking. :)
[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.


5,327 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]