Advertisement:

Author Topic: URL Popup  (Read 20937 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
URL Popup
« on: February 03, 2014, 01:52:22 PM »
Link to Mod

When posting in the editor, the URL bbcode is often considered unfriendly. This mod modifies it so that instead of just adding [url][/url] tags in the editor area, it prompts the user for a website address and optional name and then inserts the relevant bbcode for it.

It does not attempt to modify the WYSIWYG behaviour (but then again, the WYSIWYG behaviour is intentionally different; you're supposed to write the text, then highlight it before pressing the button to make it a link anyway)

Released under the CC0 licence
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline meetdilip

  • Jr. Member
  • **
  • Posts: 272
  • Gender: Male
Re: URL Popup
« Reply #1 on: February 03, 2014, 09:02:02 PM »
Life saver :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #2 on: February 03, 2014, 09:04:37 PM »
The really odd thing is I wrote this almost 4 years ago just never published it here...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Jeffrey King

  • Semi-Newbie
  • *
  • Posts: 10
Re: URL Popup
« Reply #3 on: February 03, 2014, 09:08:26 PM »
heh heh. Funny!

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 501
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: URL Popup
« Reply #4 on: February 04, 2014, 12:39:49 PM »
I don't get this working nicely.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #5 on: February 04, 2014, 12:41:11 PM »
I don't know what you mean.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 501
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: URL Popup
« Reply #6 on: February 04, 2014, 12:45:50 PM »
When I click on the URL button, I don't get the pop-up. And I don't get the description thing.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #7 on: February 04, 2014, 12:49:02 PM »
Using WYSIWYG?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 501
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: URL Popup
« Reply #8 on: February 04, 2014, 01:19:29 PM »
No. But when I use it, it only give me the normal pop up and not for the description .
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #9 on: February 04, 2014, 01:24:41 PM »
That sounds like you're using WYSIWYG...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 501
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: URL Popup
« Reply #10 on: February 04, 2014, 01:26:18 PM »
I see. Well, maybe I might try to install this mod again.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #11 on: February 04, 2014, 01:29:53 PM »
Or you could turn off WYSIWYG. Here's the thing: the little arrow on the far right, blue arrow inside red [] symbols, is that on or off? If it's on, you're in WYSIWYG and the mod does not touch WYSIWYG for good reason (because you're supposed to highlight text and press URL in WYSIWYG mode)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline von COLLINZO

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
  • No Coding, No life!
    • collinsedim on Facebook
    • @@edimcollins on Twitter
    • Leakite Android Blog
Re: URL Popup
« Reply #12 on: February 04, 2014, 01:35:14 PM »
Nice mod, Sir Cumber....

Been looking for a way to get this fixed in my forum.....thanks alot! :D

Offline AllMassive

  • Jr. Member
  • **
  • Posts: 141
  • Gender: Male
Re: URL Popup
« Reply #13 on: February 08, 2014, 08:01:37 AM »
Finally there it is - thank you !

Offline Mr.Truckman

  • Semi-Newbie
  • *
  • Posts: 65
  • Gender: Male
    • mr.seui on Facebook
    • @hugmove on Twitter
    • Mr.Truckman
Re: URL Popup
« Reply #14 on: February 09, 2014, 08:23:18 AM »
I like it ! :D

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Re: URL Popup
« Reply #15 on: February 09, 2014, 10:47:17 PM »
Awesome, thanks!

Offline Mike L

  • Newbie
  • *
  • Posts: 7
Re: URL Popup
« Reply #16 on: February 13, 2014, 10:57:27 AM »
GREAT!! One of the little things I missed now I'm using SMF.

Just one question: can anyone tell me what "Prevent this page from creating additional dialogues" means in practice, and if there's a best choice?

Cheers  :)

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: URL Popup
« Reply #17 on: February 13, 2014, 12:27:12 PM »
That's a Firefox thing, totally unrelated to this MOD. I think it detects a certain number of JS messages and asks you if you want to now show them anymore.
But this MOD (or SMF itself, for the same reason) have nothing to do with it.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: URL Popup
« Reply #18 on: February 13, 2014, 12:32:59 PM »
Not *totally* unrelated because the URL prompt itself is one of those 'additional dialogues' it talks about. There are people out there who thought it would be funny to lock a browser up with infinite loops of such prompts.

Just don't prevent the page while you're posting to SMF, because you should not need to do so.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline IMSassafras

  • Jr. Member
  • **
  • Posts: 108
  • Gender: Female
    • @saynotomsg on Twitter
    • Mackinac Coast Eyewear
Re: URL Popup
« Reply #19 on: March 20, 2014, 10:25:40 PM »
I am not able to get it to work.  I checked to see if I was doing it right.  Not using WYSIWYG.  Trying to select text and click the url button.  And trying to click the url button and write text.  No pop up appears.  The only time a box appears is when I am in WYSIWYG mode which has nothing to do with your mod.  I checked by uninstalling.

Is there a trick?

Sass
It is not for him to pride himself who loveth his own country, but rather for him who loveth the whole world. The earth is but one country, and mankind its citizens. ~ Bahá'u'lláh
________________________
MisFiT City Forum - Where Attitudes are Nourished and Being a MisFiT is Just Part of the Day!
Say NO to MSG.com - Dedicated to creating public awareness of Monosodium Glutamate and other excitotoxins.