Open Link in New Tab with image support

Get help developing custom BBCodes or request one.
Post Reply
woxenrud
Registered User
Posts: 13
Joined: Thu Aug 27, 2020 9:30 pm

Open Link in New Tab with image support

Post by woxenrud »

Hello. I have just installed https://www.phpbb.com/customise/db/bbco ... n_new_tab/ and it's working fine. I wonder if there's something you can do to make it work with links that has an image as well. Links like these I mean:
[URL=https: //somewebsite. com][IMG]https: //img166.imagetwist.com/th/41728/someimage.jpg[/IMG][/URL]
Last edited by woxenrud on Wed Jun 23, 2021 7:14 pm, edited 2 times in total.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6670
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Open Link in New Tab with image support

Post by HiFiKabin »

To open ALL links in a new tab/window I suggest you use this extension viewtopic.php?f=616&t=2403461
woxenrud
Registered User
Posts: 13
Joined: Thu Aug 27, 2020 9:30 pm

Re: Open Link in New Tab with image support

Post by woxenrud »

I need only specific links to open in new tab, unfortunately those links have image thumbnails, which is why I seek help
User avatar
ViolaF
I've Been Banned!
Posts: 1609
Joined: Tue Aug 14, 2012 11:52 pm

Re: Open Link in New Tab with image support

Post by ViolaF »

Hello,

can you explain this a bit more?

I understand the request not really....
User avatar
ViolaF
I've Been Banned!
Posts: 1609
Joined: Tue Aug 14, 2012 11:52 pm

Re: Open Link in New Tab with image support

Post by ViolaF »

Normally the Ext-relevant Support goes to this Address:
https://www.phpbb.com/customise/db/bbco ... ab/support
woxenrud
Registered User
Posts: 13
Joined: Thu Aug 27, 2020 9:30 pm

Re: Open Link in New Tab with image support

Post by woxenrud »

ViolaF wrote: Wed Jun 23, 2021 6:17 pm Hello,

can you explain this a bit more?

I understand the request not really....
Ok so I want to modify certain links (not all) on my website to open in a new tab.
I created this BB code (https://www.phpbb.com/customise/db/bbco ... n_new_tab/). It works perfectly on links like these:
[nturl=https: //google. com]Google[/nturl]
but it does not work with links like these:
[nturl=https: //google. com][IMG]https: //img168.imagetwist. com/th/4738/0grf8yel9xvj.jpg[/IMG][/nturl]
Can you modify something to make it work?
Post Reply

Return to “Custom BBCode Development and Requests”