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:
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:
$userwebsite = ($thisUser->getVar('url''E')!='')?'<a href="'.$thisUser->getVar('url''E').'" target="_blank">'.$thisUser->getVar('url').'</a>':'';


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


Login

Who's Online

222 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits