URL and email fields template issue

  • KATHRYN O'GORMAN
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 3 weeks ago #122934 by KATHRYN O'GORMAN
URL and email fields template issue was created by KATHRYN O'GORMAN
Hello,
I'm not sure this has been noted elsewhere but there is an error in the Membership template files. The file is in:

components/com_osmembership/view/members/tmpl/columns.php
if (filter_var($fieldValue, FILTER_VALIDATE_URL))
	{
		$fieldValue = '<a href="' . $fieldValue . '" target="_blank">' . $fieldValue . '<a/>';
	}
       elseif (filter_var($fieldValue, FILTER_VALIDATE_EMAIL))
	{
		$fieldValue = '<a href="mailto:' . $fieldValue . '">' . $fieldValue . '<a/>';
	}

the closing link tags are not formatted correctly and should be:

</a>

I hope this helps!

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

More
2 months 2 weeks ago #122946 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic URL and email fields template issue
Thanks. I can confirm the issue and get it fixed. If you want, you can access to My Downloads menu item, download latest package, upgrade it to your site and it will work well

Regards,

Tuan

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