Advertisement:

Author Topic: Option to drag and drop URL / hyperlink?  (Read 905 times)

Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Option to drag and drop URL / hyperlink?
« on: January 10, 2019, 06:51:06 AM »
My apologies if this is in the wrong board.



When creating a post, if you click on the button to "Insert Hyperlink" :



you get the following :

Code: [Select]
[url][/url]

I use this function massively. My thoughts:


1] Would it be an easy matter to change this to:

Code: [Select]
[url=] [/url]
?

Then I could more quickly cut and paste an URL into it and format it correctly, for example:

Code: [Select]
[url=fictional-news.com]Fictional News[/url]



2] Better still, I was a member of a film forum (now defunct) where, when you copied and pasted an URL name, such as:

Code: [Select]
fictional-news.com
the link would automatically be formatted and inserted, with the given site name, e.g.

Fictional News 

I suggested this change to the chief techie of our coin forum, but he didn't know how to do it. Does SMF have an app to allow this?


Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Re: Option to drag and drop URL / hyperlink?
« Reply #1 on: January 10, 2019, 01:07:36 PM »
In my fictional example, I forgot to add the starting code, of course:

Code: [Select]
[url=https://fictional-news.com]Fictional News[/url]

Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Re: Option to drag and drop URL / hyperlink?
« Reply #2 on: January 10, 2019, 02:31:53 PM »
Now that I'm in the right board and have read your notes, I'll add that the coin forum of which I am a member uses SMF 2.0.15.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,430
  • Gender: Male
    • Kindred-999 on GitHub
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Re: Option to drag and drop URL / hyperlink?
« Reply #4 on: January 12, 2019, 07:42:04 PM »
Thank you very much, Kindred. I will show this to our chief techie on the coin forum.

Offline izotz

  • Newbie
  • *
  • Posts: 5
Re: Option to drag and drop URL / hyperlink?
« Reply #5 on: January 13, 2019, 11:17:24 AM »
hxxp:github.com/Spuds/SMF-Descriptive-Links [nonactive]

I was having a look at this, as I'd like to have it in our forum. I could only a page describing an older version of the mod :
http://www.simplemachines.org/community/index.php?topic=470471.0
That links to a mod that doesn't exist. So I wonder where I can download the packaged version in order to install it. Would it be as simple as downloading the files in Github and zip them?

On the other hand, that code has not been updated for 5 years, so I can't tell if it works with the latest versions of SMF software. Does anybody know if this would work with 2.0.15?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,430
  • Gender: Male
    • Kindred-999 on GitHub
Re: Option to drag and drop URL / hyperlink?
« Reply #6 on: January 13, 2019, 12:36:31 PM »
Download from git...

And yes, we use it on fx-sabers
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline izotz

  • Newbie
  • *
  • Posts: 5
Re: Option to drag and drop URL / hyperlink?
« Reply #7 on: January 13, 2019, 01:36:55 PM »
I got to download it, zip it, and install it. It looks like it is working. We'll give it a try.
Thanks for the info.

Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Re: Option to drag and drop URL / hyperlink?
« Reply #8 on: January 13, 2019, 02:28:48 PM »
Well, we just tried it. A lot of the time it worked fine, but not always. Izotz, the techie, noted this:

There was something in its configuration preventing to act on any URL containing the following :
home,index,page title,default,login,logon,welcome,ebay


I tried it with our home page, but just got this:

Code: [Select]
http://www.worldofcoins.eu/forum/index.php
I noted:

The code needs tweaking.  It dislikes certain unusual URL endings.

The code simply needs to take the title from the open tab - when you have the tab open and copy the url.


I suppose that with a few judicious "IF" clauses, or whatever this language uses, it could be made to work in all cases - but that's not something I know how to do.  :(


Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,430
  • Gender: Male
    • Kindred-999 on GitHub
Re: Option to drag and drop URL / hyperlink?
« Reply #9 on: January 13, 2019, 02:33:17 PM »
No...  that might be whatbyour “techie” thinks, but that is not what this mod (nor any of the others) do, and is not at all how they work.

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,157
  • Gender: Male
    • i30 Owners Club
Re: Option to drag and drop URL / hyperlink?
« Reply #10 on: January 13, 2019, 02:40:49 PM »
Quote from: serval

There was something in its configuration preventing to act on any URL containing the following :
home,index,page title,default,login,logon,welcome,ebay



That list is in the mod's configuration.

Offline serval

  • Semi-Newbie
  • *
  • Posts: 24
Re: Option to drag and drop URL / hyperlink?
« Reply #11 on: January 13, 2019, 02:47:29 PM »
Thank you for all your help. Unfortunately our forum administrator has had to call time on it, as there is more pressing work elsewhere on the forum for our "techie". With a little more time we could probably have worked it out and tweaked the configuration, as you say, but it was not to be.