Open Link in New Tab with image support

Get help developing custom BBCodes or request one.
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: 6799
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

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?
User avatar
Sniper_E
Registered User
Posts: 1198
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: Open Link in New Tab with image support

Post by Sniper_E »

I know this is old. Another user just pointed this out to me to look at for them.

Open Link in New Tab BBCode with image support

BBCode: [nturl={URL}]{TEXT}[/nturl]

HTML replacement: <a href="{URL}" target="_blank">{TEXT}</a>

Helpline: Open URL in new tab. Usage: [nturl=https://www.google.com]Google[/nturl]

Text link... Usage: [nturl=https://www.phpbb.com/community]phpBB Community[/nturl]

Image link... Usage: [nturl=https://www.phpbb.com/community][img]url to phpBB logo image[/img][/nturl]

Reference for underline and bold: https://www.phpbb.com/customise/db/bbco ... 74#p876574
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:

Return to “Custom BBCode Development and Requests”