News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF User Email System

Started by SMFHacks.com Team, July 01, 2006, 04:28:21 PM

Previous topic - Next topic

vbgamer45

You would have to edit the main source file of the user email system and switch to use another emai other than the $webmaster_email
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Chas Large

Thanks,

I'll have a go and if I success I'll document how to do it for others.

Cheers

Chas.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Chas Large

Hi Vbgamer,

Quick question will you be releasing a version of this for SMF 2.0 (RC 1-1 and above) ? I have a test forum that I updated from 1.1.8 > 1.1.9 which worked OK but then upgraded to 2.0 RC 1-1 and now the mod will not install. Of course, you don't state that it's compatible with 2.0 so I'm not complaining ;)

Just wanted to know if it was in the pipeline.

Cheers

Chas.

My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

vbgamer45

Don't plan for SMF 2.0 since it is already built into SMF 2.0
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Chas Large

Doh - Yes you can call me a dork, I never checked. Sorry.  ::)
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

searchgr

This mod does not support the greek characters.

[Core]


searchgr

Quote from: searchgr on June 20, 2009, 06:02:15 AM
This mod does not support the greek characters.

Any ideas how to support utf-8 characters?

searchgr

Tried to unistall and have the following error:

   Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed

vbgamer45

You can ignore that error.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bbmtalk

Hello vbgamer45, great mod and thanks for making it. I have installed it and modified a little to have a consistent look in the profile.

Am I understanding correctly that if members don't have their emails hidden, admins would only see the email icon? If not, could you please help me revise the code?

I am wondering though - is it possible to show both email address and the email icon only to admins?



/// Only show the email address if it's not hidden.
if ($context['member']['email_public'])
echo '
</td>
</tr><tr>
<td><img src="', $settings['images_url'], '/picons/email.png" alt="" align="top" /> &nbsp;<b>', $txt[69], ': </b></td>
<td>
<a href="' . $scripturl . '?action=useremail;u=' . $context['member']['id'] . '"><img src="' . $settings['images_url'] . '/user_email.gif" alt="' . $txt[69] . '" /></a>';
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif (!$context['member']['hide_email'])
echo '
                </tr><tr>
    <td><img src="', $settings['images_url'], '/picons/email.png" alt="" align="top" /> &nbsp;<b>', $txt[69], ': </b></td>
   <td><i><a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a></i>';
else
echo '
</tr><tr>
<td><img src="', $settings['images_url'], '/picons/email.png" alt="" align="top" /> &nbsp;<b>', $txt[69], ': </b></td>
<td><i>', $txt[722], '</i>
';
 

Thanks for your help!!

ChaosEnergy

Hi

I use this mod for a longer time with no issues
Since users mostly send PM, and often dont report issues

some time ago the mod got broken

when trying to send an email i get the message

"The letters you typed don't match the letters that were shown in the picture. "

I surely tried this more than once, and also as admin (funny sometimes the admin this the email image, sometimes the plain mailaddress)

smf 1.10
Chaos Empire ®

Angie on Dialysis

Quote from: bbmtalk on August 30, 2009, 10:15:06 AM
I am wondering though - is it possible to show both email address and the email icon only to admins?

I would like to see that as well!

Shorti25

 :-[ waiting for the smf2.0 version - we need it

vbgamer45

No SMF 2.0 is version it is built into SMF 2.0....
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shadowwolf_tw

For those folks trying to use this mod with the "Advanced Visual Verification" mod and running into the captcha image not verifying properly error, I fixed the issue with some slight modification to this mod.

Edit Sources\User_Email.php

Find:
// Check whether the visual verification code was entered correctly.
if ((empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1) && (empty($_REQUEST['visual_verification_code']) || strtoupper($_REQUEST['visual_verification_code']) !== $_SESSION['visual_verification_code']))
{
$_SESSION['visual_errors'] = isset($_SESSION['visual_errors']) ? $_SESSION['visual_errors'] + 1 : 1;
if ($_SESSION['visual_errors'] > 3 && isset($_SESSION['visual_verification_code']))
unset($_SESSION['visual_verification_code']);

fatal_lang_error('visual_verification_failed', false);
}


Replace With:
// Check whether the visual verification code was entered correctly.
// --- Begin modified code - Advanced Visual Verification ---
// Generate a visual verification code to make sure the user is not a bot.
$context['visual_verification'] = empty($modSettings['disable_visual_verification']) && empty($modSettings['verificationDontAskRegister']);
$context['verificiation_image_href'] = $scripturl . '?action=verificationcode;rand=' . md5(rand());
// See whether you are allowed to register now.
if($context['visual_verification'])
{
global $sourcedir;
require_once($sourcedir . '/Verification.php');
verificationNotExceed();
}
if ((empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1) && (empty($_REQUEST['visual_verification_code']) || strtoupper($_REQUEST['visual_verification_code']) !== $_SESSION['visual_verification_code']))
{
require_once($sourcedir . '/Verification.php');
if ((empty($_REQUEST['visual_verification_code']) || !verifyCode(strtoupper($_REQUEST['visual_verification_code']))))
fatal_lang_error('visual_verification_failed');
}
// --- End modified code ---


Also, to add a link to change the captcha image or pop up a sound file with the captcha code, do the following:

Edit Themes\default\User_Email.template.php

Find:
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />

Add After:

<div class="smalltext">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>
</div>

snyperthugs

OK I installed it, and the email pic is showing up and it goes to a form when I click it, but the words "SUBJECT" "MESSAGE BODY" etc. are missing. and the SEND EMAIL button is blank, and when i click the blank button it doesn't send
www.4mydjs.com - Get Your Music Heard!

vbgamer45

copy the text from modifications.english.php to modificatoins.yourlanguage.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

snyperthugs

Thanks for replying so fast. That worked. All this time I didnt know the language to mysite was Modifications.english-utf8.php and just Modifications.english.php  Thanks
www.4mydjs.com - Get Your Music Heard!

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: