Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 16 Hours, 57 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Problem build mailto href list
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Problem build mailto href list
#6426
Problem build mailto href list 2 Years, 1 Month ago  
I am reading several email addresses from a database and trying to concatenate those together in PHP to build a mailto link on a webpage.

I can demonstrate the problem I have quite simply.

If I place this code inside a Joomla article:

{source}
<?php
$variable='mike@mike.com,mike@mike.com';
echo "<a href=\"mailto:$variable\">CLICK HERE</a>"
?>
{/source}


The link ends up with this text (instead of the expected <a href=mailto:mike@mike.com,mike@mike.com>:

<a href="mailto:
<script language='JavaScript' type='text/javascript'>
<!--
var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
var path = 'hr' + 'ef' + '=';
var addy17970 = 'm&#105;k&#101;' + '&#64;';
addy17970 = addy17970 + 'm&#105;k&#101;' + '&#46;' + 'c&#111;m';
document.write( '<a ' + path + '\'' + prefix + ':' + addy17970 + '\'>' );
document.write( addy17970 );
document.write( '<\/a>' );
//-->\n </script><script language='JavaScript' type='text/javascript'>
<!--
document.write( '<span style=\'display: none;\'>' );
//-->
</script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
<script language='JavaScript' type='text/javascript'>
<!--
document.write( '</' );
document.write( 'span>' );
//-->
</script>,
<script language='JavaScript' type='text/javascript'>
<!--
var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
var path = 'hr' + 'ef' + '=';
var addy19694 = 'm&#105;k&#101;' + '&#64;';
addy19694 = addy19694 + 'm&#105;k&#101;' + '&#46;' + 'c&#111;m';
document.write( '<a ' + path + '\'' + prefix + ':' + addy19694 + '\'>' );
document.write( addy19694 );
document.write( '<\/a>' );
//-->\n </script><script language='JavaScript' type='text/javascript'>
<!--
document.write( '<span style=\'display: none;\'>' );
//-->
</script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
<script language='JavaScript' type='text/javascript'>
<!--
document.write( '</' );
document.write( 'span>' );
//-->
</script>">CLICK HERE</a>
Mike Schmitz
Posts: 2
User OfflineClick here to see the profile of this user
Last Edit: 2010/01/06 15:15 By peter.
The administrator has disabled public write access.
 
#6428
Re: Problem build mailto href list 2 Years, 1 Month ago  
That is the core email cloaker plugin messing stuff up.
You can disable it through the plugin manager.
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6431
Re: Problem build mailto href list 2 Years, 1 Month ago  
Perfect!!!! Thank you so very much!!!
Mike Schmitz
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support