By Tristan on Tuesday, 03 March 2015
Posted in Technical Issues
Replies 1
Likes 0
Views 562
Votes 0
Hi,

I have found several issues with built-in BBcode editor related to user entering urls:

1 - If using the [url] button, I have found this hack (http://stackideas.com/forums/is-easydiscuss-links-follow-or-nofollow-seo) to add the nofollow but it is, well, a hack

2 - if NOT using the [url] button, that is if simply typing a full url, then this url is transformed into a live "a" tag, without any nofollow rel attribute

3 - If inserting an internal url such as index.php?option=com_content&view=article&id=3, that url is transformed into an "a" tag (without nofollow attribute) but it is not turned into a SEF url as it should

Can you offer comments and solutions for this please?

Thanks and regards
Hello Tristan,

Sorry for late reply to this,
Can you try apply this following code and see how it goes?
JoomlaFolder\components\com_easydiscuss\helpers\url.php

//LINE 48
$text = JString::str_ireplace($match, '<a href="' . $matchProtocol . '"' . $targetBlank . '>' . $match . '</a>', $text);

//Replace with
$text = JString::str_ireplace($match, '<a rel="nofollow" href="' . $matchProtocol . '"' . $targetBlank . '>' . $match . '</a>', $text);

·
Tuesday, 03 March 2015 11:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post