Stop links opening in New Window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hitmanuk2k
    Senior Member
    • May 2003
    • 110
    • 3.6.x

    Stop links opening in New Window

    In 3.0 I did this by modifying bbcodeparse, but this seems to have no effect? I have removed target=_blank but links posted within posts still open in new window.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Version 3.5.0 actually doesn't use includes/functions_bbcodeparse.php file anymore. It must be a leftover from 3.0.x.

    I don't know which file contains that code in 3.5.0. If no one else here knows, then you might try posting on www.vbulletin.org.

    Comment

    • hitmanuk2k
      Senior Member
      • May 2003
      • 110
      • 3.6.x

      #3
      Ah, thanks. When I upgraded I just left everything and just over-wrote the old files where needed.

      Will try vB.org as well, though have never had much luck with help on there.

      Comment

      • pablo
        Senior Member
        • Apr 2002
        • 592
        • 3.8.x

        #4
        isn't there any easy way to do this ? with either 3.5/3.6 versions.
        My Sites :

        Comment

        • Mark.B
          vBulletin Support
          • Feb 2004
          • 24287
          • 6.0.X

          #5
          This is NOT tested, but it might work if I've found the right bit of code. Apologies if not.

          In includes/class_bbcode.php

          Find this bit:
          Code:
          // standard URL hyperlink
          		return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
          Change to:
          Code:
          // standard URL hyperlink
          		return "<a href=\"$rightlink\">$text</a>";
          Let me know if this works!

          NB: Remember by doing this you are modifying the source code, albeit just a tiny bit, and therefore technically Jelsoft cannot support your board unless you restore the orginal file!
          MARK.B
          vBulletin Support
          ------------
          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

          Comment

          • pablo
            Senior Member
            • Apr 2002
            • 592
            • 3.8.x

            #6
            Thanks for the hint. I thought there might be a user option.

            Personally I don't like modifying the code, so I'm not going to do this. Rather I would like to put in a formal request for this. Why does vbulletin inforce this new window... it should be optional. Most users are capable of using the shift or crtl keys to control new windows . Aren't they ?
            My Sites :

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24287
              • 6.0.X

              #7
              There is definitely no user option.

              Might be worth putting something about this is suggestions/feedback.
              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • pablo
                Senior Member
                • Apr 2002
                • 592
                • 3.8.x

                #8
                will do. thanks Mark. B.
                My Sites :

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...