1
dproductionz
Yogurt and other modules pagelinks without http://

Hello to all forum members
I would really like you to help me on an issue occurred on my xoops site and some modules like yogurt and other...

When a user registers and takes out the http:// when he puts he link then the link which will be visible to others in some modules like yogurt will give an error.

It will show as a link:
http://www.xoopssite.com/modules/yogurt/www.usersite.com
and it will show a "not found"
If they leave the http:// when they register (which they unfortunately don't) then the site will be correctly linked.

Any help will be appreciated

Thanks

Daniel

2
trabis
Re: Yogurt and other modules pagelinks without http://
  • 2011/3/25 20:20

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Open yogurt index.php,

find this line:
le="color: #000000"><?php $userwebsite = ($thisUser->getVar('url', 'E')!='')?'<a href="'.$thisUser->getVar('url', 'E').'" target="_blank">'.$thisUser->getVar('url').'</a>':'';


replace with:
le="color: #000000"><?php $userwebsite = ($thisUser->getVar('url', 'E')!='')?'<a href="'.formatUrl($thisUser->getVar('url', 'E')).'" target="_blank">'.$thisUser->getVar('url').'</a>':'';