Email, MSN and Yahoo adresses as GD Images
This modification is in the archives.
First of all, I'm not sure if this is a hack or a template mod.
so, if its placed wrong, please advise. this is my first 'hack', so be nice My forum members were complaining about the load of spam they received after the emailaddresses were publicly viewable. We wouldn't use the secure mail function, because the users wanted to see eachothers mail addresses. Installation: Create a file called email.php. It must contain the following lines of code: Code:
<?php header("Content-type: image/png"); ########## Email, MSN and Yahoo adresses as GD Images ############ ########## Made by Corn for vb.org ########## $im = imagecreatefrompng("email.png"); $color = imagecolorallocate($im, 0, 0, 0); $px = (imagesx($im) - 7.5 * strlen($user)) / 2; imagestring($im, 4, $px, 1, $user, $color); imagepng($im); imagedestroy($im); ?> in the attached .zip, you can find a email.png file. put the files in your forum root dir. Go to the AdminCP and open the MEMBERINFO template, and search for Code:
$userinfo[msn] Code:
<img src="email.php?user=$userinfo[msn]" border="0"> Code:
$userinfo[yahoo] Code:
<img src="email.php?user=$userinfo[yahoo]" border="0"> you will find the following: Code:
The email address for $destusername is <a href="mailto:$email">$email</a> Code:
The email address for $destusername is <a href="mailto:$email"><img src="email.php?user=$email" border="0"></a> Download This modification is archived and cannot be downloaded. Screenshots
|