Quote:
Originally Posted by spankaveli
Is there an easy way to have a banner clickable to a mailto: email address?
|
Yep there is
Goto Control Panel
Plugin Manager
Cyb - Flash-Image Banner Rotator - SP
edit it
Find (at the Bottom)
PHP Code:
(strip_tags($vbulletin->GPC['url']));
}
and replace it with
PHP Code:
if (strstr($vbulletin->GPC['url'], 'mailto'))
{
$toemail=$vbulletin->GPC['url'];
echo "<a href=\"$toemail?subject=Question From the **** BB\" id=\"clickME\"></a>\n";
echo<<<PPPRINT
Please Close this Window
<script type="text/javascript">
window.onload = function() {
document.getElementById("clickME").click();
}
</script>
PPPRINT;
exit;
}
else
{
exec_header_redirect(strip_tags($vbulletin->GPC['url']));
}
}
Then all you have todo is put mailto:some@home.com in the url field
Giz