- Posts: 58
- Thank you received: 1
The Kunena team has announce the arrival of Kunena 6.2.4 [K 6.2.4] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2
If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.
Question Always open links in a new tab
I found an older thread in this forum, recommending this core hack
If using Crypsis, the file that needs to be edited (or overwritten) is components/com_kunena/template/crypsis/layouts/bbcode/url/default.php
Edit line 20. Change
$target = ' target="' . $this->escape($this->target) . '"';
$target = ' target="_blank"';
You could edit the file referred to above, but next time Kunena is updated it will be overwritten and you'll need to make the same edit again.
Unfortunately, this does not work for the current default Kunena template «aurelia». Line 20 looked exactly like cited above and I changed it exactly to what was recommended. But this causes my forum to be displayed in a complete mess.
I am convinced that this functionality must be implemented to the core in a future version of Kunena. But in the meantime how can I twist it?
Thank you and kind regards
Links in threads that were created BEFORE the update are opened in a NEW tab.
Links in threads that were created AFTER the update are opened in the SAME tab.
There seems to be no way to define the target of the links.
This answer mandates you know a little about coding, or, just follow closely.
In the message / post / topic where you wish to have the link open a new window, in the "Edit" mode for that text, click on the "Source" button in the editor. It's the very first button in all of the icons for the editor.
After you click on "Source", you'll see all the text and code that's used to create what you are editing.
Find the URL you wish to open in a new tab / window. It will look like:
[url=https://www.thedomainofthelink.com]the text you linked[/u]
Change that to:
[ url=https://www.thedomainofthelink.com target="_blank" ] the text you linked [/u]
(The editor here can't decide if "code" will work for a visual display of what you need)
[ = [
] = ]
So, you'll have [ which is ampersand hashtag 91 semi-colon, followed by url= and the url of the link.
Then you add target="_blank" and close that part with ] which is ampersand hashtag 93 semi-colon.
You won't need the bracket code where you will be editing the Source because the brackets are already there. You just need to insert the target="_blank" before the ending bracket of the url.
That's what opens a new window / tab in HTML. You need to add that code after the URL and after adding a single space.
This is for the latest version of Kunena, 6.0.7 until Kunena developers open up the CKEditor (the default editor in Kunena) to have the function icon as an option. If not, you'll know how to make it work without the option in the editor.