|
There is a problem with the php code. I got it the other way:
DB entry was http://www.example.com
When a user then clicks on it the browser it comes up with an error, cause the link will be:
http://http://www.example.com
Also when you hover over the link it shows the double http://http://
Update the code in helpers/joodb.php
from:
if ($params->get('link_urls')) { // try to detect and link urls and emails if (preg_match('/^[^@]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$/', $field)) { $field= JHtml::_('email.cloak', $field); } else if (strtolower(substr($field,0,4))=="www.") { $field= '<a href="http://'.$field.'" target"_blank">'.$field.'</a>'; } else if (strtolower(substr($field,0,4))=="http") { $field= '<a href="http://'.$field.'" target"_blank">'.$field.'</a>';
to
if ($params->get('link_urls')) { // try to detect and link urls and emails if (preg_match('/^[^@]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$/', $field)) { $field= JHtml::_('email.cloak', $field); } else if (strtolower(substr($field,0,4))=="www.") { $field= '<a href="http://'.$field.'" target"_blank">'.$field.'</a>'; } else if (strtolower(substr($field,0,4))=="http") { $field= '<a href="'.$field.'" target"_blank">'.$field.'</a>';
And it should work
|