Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] 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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question Disallowing links within messages

More
13 years 4 months ago #1 by Mr Livered
I would like to prevent from users from linking within the messages they post. Any ideas as to how this might be achieved, either as a hack to prevent links from being parsed, or as a more elegant solution? Thanks.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #2 by John
Why do you want links to be disabled. They are all nofollow so they cant hurt you.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #3 by Mr Livered
Thanks John; I know they are nofollow but the sensitive nature of the forum in question means that a) linking would be inappropriate; and b) it would not be good if other webmasters found my url amongst the list of referrers in their web stats.

Many forums have the functionality to suppress links, so I'm clearly not the only person who thinks it might be of use. I am a member of a forum which runs on Vbulletin, and doesn't allow members to post any links until they have accumulated a certain number of posts. I'm not looking for anything so sophisticated as that, because I don't want any links to be posted under any circumstances, so if anyone would like to make an actual suggestion I would be most grateful :)



Edit: I see this thread has been moved to 'Feature Requests', which I presume I can take as confirmation that the functionality isn't available out of the box. I'm not necessarily requesting a feature, though, because I don't necessarily think that wanting all links to be disallowed in all circumstances will be a massively popular feature - so maybe a hack to prevent them being parsed would be more appropriate in this case?
Last edit: 13 years 4 months ago by Mr Livered. Reason: postscript

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #4 by sozzled
You are correct. The functionality does not exist out of the box in Kunena at the present time. If there is support for this idea (either in terms of others who reply to this topic or in terms of someone willing to pay for the development of the feature - to expedite its progress) then it should be included as a standard feature. That's about all that I can say on this at the present time. Sorry.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #5 by Ton87
Replied by Ton87 on topic How to disable linking
Good day,

I am looking for a way to disable all clickable links in posts on my Kunena board. So whenever somebody writes down an url or uses the code, I do not want it to be clickable so users need the copy-paste the adress into their adress bar.

Is there any possibility to set this with Kunena?

Regards, Ton

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #6 by @quila
Replied by @quila on topic How to disable linking
Hello,

no this is not possible to set with kunena.

To do this you need to hack kunena core files.

Best Regards

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #7 by Ton87
Replied by Ton87 on topic How to disable linking
that is too bad, hacking core files is not really my best quality :p

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #8 by Ton87
Isn't there a way to set blocking URLs from Joomla?
I could use a content blocker like Wordcensor to block http and www, but I only want it to affect the forum and not my entire Joomla based site.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #9 by Mr Livered

Ton87 wrote: Good day,

I am looking for a way to disable all clickable links in posts on my Kunena board. So whenever somebody writes down an url or uses the code, I do not want it to be clickable so users need the copy-paste the adress into their adress bar.

Is there any possibility to set this with Kunena?

Regards, Ton

Hi Ton

Yes, I think we're trying to do pretty much the same thing. This is what I did in the end:

In kunena.parser.php, look for
Code:
$text = preg_replace ( '/(?<!S)((http(s?):\/\/)|(www\.[a-zA-Z0-9-_]+\.))+([a-zA-Z0-9\/*+-_?&;:%=.,#]+)/u', '<a href="http$3://$4$5" target="_blank" rel="nofollow">$4$5</a>', $text );

and replace it with:
Code:
text = preg_replace ( '/(?<!S)((http(s?):\/\/)|(www\.[a-zA-Z0-9-_]+\.))+([a-zA-Z0-9\/*+-_?&;:%=.,#]+)/u', '***please copy and paste: http$3://$4$5***', $text );

Edit: you'll also need to disable the parsing of the url bbcode as a link. I changed the relevant section of the parser file to:
Code:
case 'url' : $task->autolink_disable --; // www. > http://www. if (isset ( $tag->options ['default'] )) { $tempstr = $tag->options ['default']; if (substr ( $tempstr, 0, 4 ) == 'www.') { $tempstr = 'http://' . $tempstr; } $tns = "***link banned***"; $tne = ''; return TAGPARSER_RET_REPLACED;
Last edit: 13 years 4 months ago by Mr Livered. Reason: ps

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago - 12 years 3 weeks ago #10 by numerus
Hello,

Is it possible to disable automatic transformation URL address into clickable URL links (in posts)?
I need to disable this function in posts in order to bring working mp3 player in Kunena.
I'm using latest Kunena 1.7.2 with default template on Joomla 2.5.

P.S. Excuse me, i posted this post into the wrong section. You can change it.
Last edit: 12 years 3 weeks ago by numerus.

Please Log in or Create an account to join the conversation.

Time to create page: 0.363 seconds