Link coding

Forums Forums Social Website discussion Link coding

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29369

    Hi Adam,

    I’ve just been adding some website link to Mike’s Resources pages and noticed that they open in the same tab/window, taking people away from the UK Fungi forum. Can you tweak the URL coding to get links to open in a new tab/window instead?

    #34405
    Lancashire Lad
    Keymaster

      Well spotted Jenny.

      It must be a global setting that needs changing, as it is happening with every hyperlink posted throughout the forums as far as I can see.

      Regards,

      Mike.

      #34406
      adampembs
      Keymaster

        I tried t ochange this earlier on – see this faq https://www.phpbb.com/support/docs/en/3.0/kb/article/links-opening-new-windows/

        The problem is, when I altered the files, all the images went weird again. I don’t see why the code changes affect the images, but it did, so I reverted to the saved versions. I might play with it some time when I have lots of time and the forum is quiet..hehe

        #34407

        Looking at that FAQ in your link above – could you just insert target=”_blank” into the BBcode URLs code below?

        like this: {DESCRIPTION}

        That could work – at least with BBcode URL’s but shouldn’t affect autodetected URL’s or images. Of course it would only work for newly entered URLs and not existing ones.

        Dave

        BBCode URLs

        Next open the bbcode.html of your style (if you’re using prosilver, this would be the styles/prosilver/template/bbcode.html file) and look for following line:

        Code: Select all

        {DESCRIPTION}

        #34408
        adampembs
        Keymaster

          People have suggested this in the phpbb forums, and the answer is always to use the code from the knowledge base. I’m sure they have their reasons :)

          #34409
          adampembs
          Keymaster

            Ok, bbencoded links now open in new window/tab. So, use the URL button to surround the web address. If you don’t use the button or code, it will still move to the new site. I can fix that one another time, but always best to use the URL button rather than rely on automatic detection of links.

          Viewing 6 posts - 1 through 6 (of 6 total)
          • You must be logged in to reply to this topic.