Kunena 6.3.7 Released

The Kunena team has announce the arrival of Kunena 6.3.7 [K 6.3.7] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

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
14 years 2 weeks 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
14 years 2 weeks 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
14 years 2 weeks ago - 14 years 2 weeks 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: 14 years 2 weeks ago by Mr Livered. Reason: postscript

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

More
14 years 2 weeks 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
14 years 2 weeks 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
14 years 2 weeks 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
14 years 2 weeks 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
14 years 2 weeks 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
14 years 2 weeks ago - 14 years 2 weeks 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: 14 years 2 weeks ago by Mr Livered. Reason: ps

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

More
12 years 9 months ago - 12 years 9 months 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 9 months ago by numerus.

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

Time to create page: 0.487 seconds