Topic: Force form mail...

Is there a simple way to force mail to be sent through the mail form even if the users e-mail address is set to be displayed?

Many of my users (myself included) access my forum from public terminals (school, etc.) and the mailto: command doesn't work.

It's a hassle to have to copy & paste into hotmail or something...

Thanks...

Find what you want...  Where you want it... www.truelocal.com

Re: Force form mail...

Sure, open up profile.php and look up

if ($user['email_setting'] == '0')
    $email_field = '<a href="mailto:'.$user['email'].'">'.$user['email'].'</a>';
else if ($user['email_setting'] == '1' && !$cookie['is_guest'])
    $email_field = '<a href="misc.php?email='.$id.'">'.$lang_common['Send e-mail'].'</a>';
else
    $email_field = $lang_profile['Private'];

and replace it with

if ($user['email_setting'] == '0' || ($user['email_setting'] == '1' && !$cookie['is_guest']))
    $email_field = '<a href="misc.php?email='.$id.'">'.$lang_common['Send e-mail'].'</a>';
else
    $email_field = $lang_profile['Private'];

Then open up viewtopic.php and look up

if ($cur_post['email_setting'] == '0' || $cur_user['status'] > PUN_USER)
    $links[] = '<a href="mailto:'.$cur_post['email'].'">'.$lang_common['E-mail'].'</a>';
else if ($cur_post['email_setting'] == '1' && !$cookie['is_guest'])
    $links[] = '<a href="misc.php?email='.$cur_post['poster_id'].'">'.$lang_common['E-mail'].'</a>';

and replace it with

$links[] = '<a href="misc.php?email='.$cur_post['poster_id'].'">'.$lang_common['E-mail'].'</a>';

That should do the trick.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Force form mail...

Thanks!

Find what you want...  Where you want it... www.truelocal.com