Feedback/Help Links Opening In A New Window?

Discussion in 'Feedback, Help & Suggestions' started by Neil, Thursday 3rd Oct, 2013.

  1. Neil Club Member ★ ☆ ☆ ☆ ☆

    United Kingdom Neil Newton Abbot
    115
    22
    Is this possible to have?
    Or to have them to open in a new Tab?
     
    Loading...
  2. Ichiban Founder Staff Team

    England CJ Leeds
    30,120
    6,376
    516
    are we talking about internal linking within the site or external?

    I can look into the external links for sure.
     
    Loading...
  3. Neil Club Member ★ ☆ ☆ ☆ ☆

    United Kingdom Neil Newton Abbot
    115
    22
    External links would be a good thing, for example going off to view a website that somebody has put up a link to.
    You can do it for internal linking or to appear in a new window, a smaller one as a pop-up for example, these can be set to be only viewed by the members of AOC if you are worried about those appearing in G.
    I know some of your links are ads but those as well can open in a new window/tab. :Smile:
     
    Loading...
  4. Ichiban Founder Staff Team

    England CJ Leeds
    30,120
    6,376
    516
    Sorry its taken some time to come back I have been look at the T&C off our affiliates and advertisers and unfortunately i can't do this as some ad companies don't like sites setting the _blank condition on the ads as its often used to encourage click fraud. so i am afraid this is not an option at all.
     
    Loading...
  5. DeviateDefiant Co-Founder Staff Team

    United Kingdom Leo Northants
    9,206
    2,976
    3
    Ads already open in a new window by the looks of it mate. Here's a short piece of jQuery that will look for external links on the page and make them open in a new window when clicked:

    Code:
    $('a').each(function() {
       var a = new RegExp('/' + window.location.host + '/');
       if(!a.test(this.href)) {
           $(this).click(function(event) {
               event.preventDefault();
               event.stopPropagation();
               window.open(this.href, '_blank');
           });
       }
    });
     
    Loading...
    SpeedyGee and Ichiban like this.
  6. Ichiban Founder Staff Team

    England CJ Leeds
    30,120
    6,376
    516
  7. Neil Club Member ★ ☆ ☆ ☆ ☆

    United Kingdom Neil Newton Abbot
    115
    22
    I'm an Affiliate Marketer and all my links open in a new window, whether they are advertisements or not.
    The reason I set my websites up this way is so I don't lose my readers.
    But I do know that some Advertisers do not like this hence I don't use those that don't allow opening in a new window.

    This is just a suggestion, but links that other members add to a post can be set to open in either a new Tab or Window. :Smile:
     
    Loading...