Advertisement:

Author Topic: option to open links in same window -- wishlist/feature request  (Read 11488 times)

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Hi Friends,
This may be something that's discussed all the time.  But I searched and only found this old topic:  http://www.simplemachines.org/community/index.php?topic=23661.0 in Applied or Declined Requests.  It's not clear whether it's applied or declined.  The reason it's not clear to me, is that in SMF 2.0.5 all links open in a new window.  So maybe the concept was declined.  There is an offered solution (iurl tags) which perhaps indicates it's been applied.  But that solution depends on the forum member knowing about it, and knowing how to use tags in the first place.i

It annoys me to no end that all links in a message are opened in a new window.  I'd like to request an option for both the admin level and user level.  The admin has the following options for the forum's default behavior:

 -- all links open in a new window
 -- links to the same site open in same window, and links to outside sites/domains opens in new window
 -- all links open in same window

I'm thinking they would go in Features and Options, although I might not be the best one to decide about that part.

And the user could use the forum's default behavior, or choose his/her own option (from the same 3 options).  This would be in the users profile/account settings (I'm thinking Look and Layout).

Please note that I know very little about coding and software development.  I have no idea how hard or easy it might be to do this.  So it's just a request.

To me, it seems like these should be options for all forums.  But if there is some reason why it would work better as a mod, and that mod would work in my forum (which will probably always be the current version), I'd be happy with that as well.

Thanks for listening.  Please let me know if I can clarify anything for you.

All best  :)
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #1 on: August 26, 2013, 04:09:12 PM »
There is a mod for that. All internal links open in same window. All outgoing links open in new.

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #2 on: August 26, 2013, 04:35:28 PM »
Is this the one you mean?  http://custom.simplemachines.org/mods/index.php?mod=980

"This is an outdated mod that is no longer supported by its author. Use at your own risk"

If it were supported and worked in my forum, it would be a nice start.  But it doesn't appear to offer more than 1 option.

To be honest, I don't know why SMF is made so that all links open in a new window.  I don't know anywhere else that happens!  Does anyone know why?  It seems like it must have taken a lot of work, which would imply there's some reason for it.  I just don't understand, because if you want a link to open in a new window, you can use a key shortcut.  I don't know what it is, but you can open a link in a new tab by holding Ctrl key while you click.  Why does it need to be hardcoded into the program when there's such a simple technique already?
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

kat

  • Guest
Re: option to open links in same window -- wishlist/feature request
« Reply #3 on: August 26, 2013, 04:53:04 PM »
The odd thing is, I use 2.0.5, this site's 2.0.5 and all links open in the current tab/window, unless I click with the mousewheel.

Maybe your mouse settings are odd, or your browser's settings?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #4 on: August 26, 2013, 04:56:15 PM »
I think this is standard on SMF. Even here if you click say a moved topic, it open a new window.

@brynn, use the parser of that mod for the current SMF version. It will show the edits you need to do to your actual SMF installation.

kat

  • Guest
Re: option to open links in same window -- wishlist/feature request
« Reply #5 on: August 26, 2013, 04:57:48 PM »
Odd. Maybe it's a browser thing?

I'm using Opera and every single link, here, opens in the same tab, for me.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #6 on: August 26, 2013, 05:02:35 PM »
It's possible ya know? I use chrome now, before Firefox and still does it.

Not anymore since I use that mod.

kat

  • Guest
Re: option to open links in same window -- wishlist/feature request
« Reply #7 on: August 26, 2013, 05:06:20 PM »
I was gonna suggest the ol' target="_blank" thing. But, what we need, here, is the exact opposite, of that, innit? :P

With Firefox, you can use the "tabmix" extension, to configure this kinda stuff.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #8 on: August 26, 2013, 05:09:52 PM »
That's the thing, by default SMF opens a new window when the user clicks on a internal link. That's why such mod was made. That's something I never like about our software.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #9 on: August 26, 2013, 05:11:47 PM »
if you were to use iurl tags for internal links it would not open in a new tab, but most people dont use them.

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #10 on: August 26, 2013, 05:12:26 PM »
I'm on Firefox and every single link (in a message) opens in a new tab (or new window, depending on my browser setting).  The only settings I can find switch from opening a new window or a new tab.  I have no option for opening in the same window.  I use a touchpad mouse, so I don't have the wheel functionality.  Or at least it's not quite the same functionality.  In any case, I can't control whether it opens in a new window or not with my mouse.

@brynn, use the parser of that mod for the current SMF version. It will show the edits you need to do to your actual SMF installation.
Unfortunately, I'm quite the newb as a forum admin.  I don't know what a parser is and I don't know how to install manually.  And even if you could give me step by step instructions, my host tends to scold me for installing outdated mods  ::)

Even if there's no way to have links open in the same window, I still would be interested to know why SMF was made this way.  Or why it works this way, if it's not the program itself.
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

kat

  • Guest
Re: option to open links in same window -- wishlist/feature request
« Reply #11 on: August 26, 2013, 05:14:00 PM »
I wonder why it's so different, for me, then, Mick?

I just tried Waterfox (Firefox on steroids) and (SPIT!) IE10.

ALL links open in the same tab, for me.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #12 on: August 26, 2013, 05:14:57 PM »
if you were to use iurl tags for internal links it would not open in a new tab, but most people dont use them.
exactly. A mod was made.

If the URL contains the ' ,$scripturl, ' it shouldn't (hopeful) open a new window.
Maybe this can be changed? In future?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #13 on: August 26, 2013, 05:17:31 PM »
We use SSI here right? Why if I click something outside of SMF (SMF related link) opens in a new window?

Should be same browser page. Everything else non SMF related link should open on a new window.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #14 on: August 26, 2013, 05:17:58 PM »
anyone can submit a PR on github, but can not use the same code as that mod due to the lack of license on the mod.

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #15 on: August 26, 2013, 05:22:19 PM »
Lucky you, K@!

If I could make it so I myself could avoid the new windows, again, that would be a start.  But that only fixes for me, not for all my members.  I think admins should have choices for default forum behavior.  And then members can use that default, or choose their own options.
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: option to open links in same window -- wishlist/feature request
« Reply #16 on: August 26, 2013, 05:24:03 PM »
OK, let's sort this tangle out.

1. Why does SMF do it? SMF has always done it, for the reason that if you're putting links in, you're almost always linking off site and if you're doing that, you kind of don't want people to leave your site, you want them to go offsite but be trivially able to come back again. This is by design.

2. If you want internal links, use the iurl bbcode instead of the url bbcode. This is for 'internal URL' and won't link to a new tab/window. Again, entirely by design.

3. None of this behaviour is new. SMF has done it for 10 years.

4. It's always been up for debate as to what the 'proper' behaviour is and all the camps are pretty vocal about it, and the best compromise thus far has been to leave it as is, because you're given the option as to which you want out of the box.
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 Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #17 on: August 26, 2013, 05:25:09 PM »
Lucky you, K@!

If I could make it so I myself could avoid the new windows, again, that would be a start.  But that's only for me, not for all my members.
its not you. That's why the mod was made.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #18 on: August 26, 2013, 05:26:44 PM »
OK, let's sort this tangle out.

1. Why does SMF do it? SMF has always done it, for the reason that if you're putting links in, you're almost always linking off site and if you're doing that, you kind of don't want people to leave your site, you want them to go offsite but be trivially able to come back again. This is by design.

2. If you want internal links, use the iurl bbcode instead of the url bbcode. This is for 'internal URL' and won't link to a new tab/window. Again, entirely by design.

3. None of this behaviour is new. SMF has done it for 10 years.

4. It's always been up for debate as to what the 'proper' behaviour is and all the camps are pretty vocal about it, and the best compromise thus far has been to leave it as is, because you're given the option as to which you want out of the box.
exactly. Like illori said, people don't use it.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #19 on: August 26, 2013, 05:29:58 PM »
I'm looking at the post legend, and I don't see the iurl tag.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #20 on: August 26, 2013, 05:31:29 PM »
it does not show but it exists. there are many tags that are not shown by default but they do exist.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: option to open links in same window -- wishlist/feature request
« Reply #21 on: August 26, 2013, 05:31:56 PM »
No, there's no button for it, just as there's no button for *most* of the bbcode SMF actually supports.

For example, abbr, acronym, black, white, red, blue, green. They're all valid bbcode.
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 Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #22 on: August 26, 2013, 05:32:45 PM »
Let me refresh this, it's not a iurl tag thing. It's about links from move topics and other areas. Sorry, again, on my phone.

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #23 on: August 26, 2013, 05:34:04 PM »
Well the mod's outdated and unsupported and I can't use it.

Thanks Arantor!

The problem I have with your #2, is teaching members how to use the iurl tag in some places and url tag in others.  You know how hard it is to get members to do something like that.  And I certainly am not going to have time to edit everyone's messages, so that my whole forum works the way I want.  And plus, if I go to another SMF forum, likely no one cares, and  I still get new tabs/windows for every link.

What's wrong with options?  Provide options and everyone can have what they want!  Especially if they are both admin and user options, because then if I visit a different SMF forum where I'm a member, I can have that forum behave how I like.
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,086
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: option to open links in same window -- wishlist/feature request
« Reply #24 on: August 26, 2013, 05:34:42 PM »
I'm going to make this a priority. It's more than moved topics. There are other internal links that does this behavior. Just can't do it at the moment.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #25 on: August 26, 2013, 05:36:20 PM »
:-*

did you know that one exists? :P [i know arantor knows it exists... he knows it all]

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #26 on: August 26, 2013, 05:37:23 PM »
I'm going to make this a priority. It's more than moved topics. There are other internal links that does this behavior. Just can't do it at the moment.

i have seen no other links in smf open in a new window by default. even the move page opens in the same window.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: option to open links in same window -- wishlist/feature request
« Reply #27 on: August 26, 2013, 05:38:16 PM »
I seriously doubt it will be implemented in 2.1 unless 1) someone actually writes it, 2) the people who approve inclusions agree and 3) the change doesn't break anything else (which is surprisingly likely)

(Illori: I still have a list of the 25 or so easter eggs still in 2.0.5. Yes, I was more than aware of that one. For the code you used, chr is also a valid variation on the k ;))

Move topic may actually generate an iurl, I don't remember but it wouldn't surprise me if it did. That's not a big job to fix actually.
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 brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #28 on: August 26, 2013, 05:39:14 PM »
:-*

did you know that one exists? :P [i know arantor knows it exists... he knows it all]

You're talking about a mod that already exists?  The one that's outdated and unsupported?
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,983
Re: option to open links in same window -- wishlist/feature request
« Reply #29 on: August 26, 2013, 05:40:41 PM »
you mean :-* ? i dont see chr in the file ;)

no i am talking about bbc not the mod

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #30 on: August 26, 2013, 05:41:38 PM »
oh sorry :(
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: option to open links in same window -- wishlist/feature request
« Reply #31 on: August 26, 2013, 05:43:14 PM »
-sigh- No, that's not what we're talking about. We were talking about examples of bbcode that don't have editor buttons and Illori pointed out a very rare and obscure example that most people don't know.

@illori: Oh, my bad, it's spelled chrissie, not chrissy.

My favourite easter egg is still the modify cat one.
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.

kat

  • Guest
Re: option to open links in same window -- wishlist/feature request
« Reply #32 on: August 27, 2013, 08:39:09 AM »
My favourite easter egg is still the modify cat one.

 ??? ???

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: option to open links in same window -- wishlist/feature request
« Reply #33 on: August 27, 2013, 01:17:03 PM »
I'm going to make this a priority. It's more than moved topics. There are other internal links that does this behavior. Just can't do it at the moment.

Thanks Mick.  :D
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)