Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on July 01, 2006, 04:28:21 PM

Title: SMF User Email System
Post by: SMFHacks.com Team on July 01, 2006, 04:28:21 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=371)

Replaces email button with form to send email like phpBB. Helps prevent spam bots from harvesting emails from member list and profiles.

Place all bug reports and feature requests on this site:
http://www.smfhacks.com/index.php?action=modtracker
Title: Re: SMF User Email System
Post by: vbgamer45 on July 01, 2006, 07:37:15 PM
Some Screenshots
(http://www.smfhacks.com/smf-email-email.PNG)

(http://www.smfhacks.com/smf-email-mlist.PNG)

(http://www.smfhacks.com/smf-email-profile.PNG)
Title: Re: SMF User Email System
Post by: Skipdawg on July 02, 2006, 03:09:59 AM
Oh this is great. Thanks allot!  ;D 8) ;)
Title: Re: SMF User Email System
Post by: K_4_kelly on July 02, 2006, 06:22:01 AM
is this only for gmail???

thanks
Title: Re: SMF User Email System
Post by: vbgamer45 on July 02, 2006, 07:52:57 AM
It's for all emails. Admin's can still see email address in the profile.
Title: Re: SMF User Email System
Post by: invisiblex on July 02, 2006, 08:06:31 AM
i tested it and giving 2 problems.

1)doesnt display pic where email field is there


(http://img111.imageshack.us/img111/1350/fhdf6fh.png)


2)admin email still is seen direct
Title: Re: SMF User Email System
Post by: vbgamer45 on July 02, 2006, 08:16:41 AM
Are you using not the default theme?
You need to copy over the user_email.gif to each themes images folder that you want to use.

2. Email is only seen by other admins. Logout as guest.
Title: Re: SMF User Email System
Post by: K_4_kelly on July 02, 2006, 09:12:06 AM
good mod!
i installed, and it works well!!
* i've visited your website too...
hope the trade system can be proved by SMF soon!
aslo wish to see a lot of good mod!!
excellent!!

thanks

Kel
Title: Re: SMF User Email System
Post by: huijaa on July 02, 2006, 04:14:12 PM
does it mean that emailaddresses not visible anymore?
Title: Re: SMF User Email System
Post by: vbgamer45 on July 02, 2006, 04:29:18 PM
Correct. Only admin's can see emails in profiles. Everyone else get's an email user button unless person marks email as hidden.
Title: Re: SMF User Email System
Post by: Niteblade on July 04, 2006, 12:24:53 PM
Love the mod; you're brilliant for creating it.

One thing : Is it possible for me to change the color of the lines from #FFFFFF to #404040 ? The lines are the dividers that create a box effect around recipient, subject body, and the like. And while white looks good with lighter colored backgrounds, I would like to change it to be suitable for a dark background.
Title: Re: SMF User Email System
Post by: Jazeker on July 04, 2006, 04:06:32 PM
I have troubles getting installed although I really want it  :'(

It says :
QuoteInstall Actions for archive useremail.zip:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
2.    Execute Modification    ./index.php    Success
3.    Execute Modification    ./Sources/ManagePermissions.php    Success
4.    Execute Modification    ./Themes/default/Display.template.php    Success
5.    Execute Modification    ./Themes/default/Memberlist.template.php    Success
6.    Execute Modification    ./Themes/default/InstantMessage.template.php    Success
7.    Execute Modification    ./Themes/default/Profile.template.php    Success
8.    Extract File    ./Themes/default/images/user_email.gif    
9.    Extract File    ./Themes/default/User_Email.template.php    
10.    Extract File    ./Sources/User_Email.php

And then asks for my FTP account.  When I fill in that information and click proceed, nothing happens.
Title: Re: SMF User Email System
Post by: vbgamer45 on July 04, 2006, 07:27:51 PM
Quote from: nite0859 on July 04, 2006, 12:24:53 PM
Love the mod; you're brilliant for creating it.

One thing : Is it possible for me to change the color of the lines from #FFFFFF to #404040 ? The lines are the dividers that create a box effect around recipient, subject body, and the like. And while white looks good with lighter colored backgrounds, I would like to change it to be suitable for a dark background.
The mod uses the theme's stylesheet for all the colors. You can just change the css to the color's that you wish to use.
Title: Re: SMF User Email System
Post by: Harzem on July 04, 2006, 07:34:22 PM
Nice to see this feature. I was hoping that.

But don't forget, any spammer can use your mail forms to spam others, and your mail provider will be the mail source ;) You may get blacklisted.

I hope there is a filter like "a member can post mails using these forms five times an hour."
Title: Re: SMF User Email System
Post by: vbgamer45 on July 04, 2006, 07:41:23 PM
Don't have a filter yet. But it is permission based so you can ban members. IE guests from doing it.
Title: Re: SMF User Email System
Post by: Harzem on July 04, 2006, 08:03:13 PM
Yes, but a newly registered member can use it for spamming.

Anyway, when it has time limits, that will be an even greater mod :)
Title: Re: SMF User Email System
Post by: PrizeLive.com on July 06, 2006, 11:43:29 AM
how can i email members who havent been on the forum since a specific date?
Title: Re: SMF User Email System
Post by: vbgamer45 on July 06, 2006, 12:28:11 PM
Quote from: SurfExcelerator.com on July 06, 2006, 11:43:29 AM
how can i email members who havent been on the forum since a specific date?
That's not really part of this mod. That would be another mod.
Title: Re: SMF User Email System
Post by: ronsen on July 06, 2006, 01:15:28 PM
I got the following error while installing this mode..

copy(/home/*/public_html/forums/index.php~) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /home/*/public_html/forums/Sources/Subs-Package.php
Line: 1241
Title: Re: SMF User Email System
Post by: vbgamer45 on July 06, 2006, 01:25:48 PM
Make sure all the files and folders are writable.
Title: Re: SMF User Email System
Post by: ronsen on July 06, 2006, 01:29:14 PM
yes..all are writeable..though i will check it once again and will post here..
Title: Re: SMF User Email System
Post by: ronsen on July 06, 2006, 01:34:15 PM
Nope..the same error:(
Title: Re: SMF User Email System
Post by: vbgamer45 on July 06, 2006, 01:41:38 PM
I would suggest doing a manual install its harder but you can do it
Copy User_Email.php to the sources folder
Copy User_Email.template.php to the folder of your theme example default
Copy user_email.gif  to the folder of your theme example default
Then if you use SMF 1.1 RC2
open useremail.xml in a text editing program then follow the edits
Then if you use SMF 1.0.7
open useremail107.xml in a text editing program then follow the edits
Title: Re: SMF User Email System
Post by: PrizeLive.com on July 06, 2006, 03:13:01 PM
Quote from: vbgamer45 on July 06, 2006, 12:28:11 PM
Quote from: SurfExcelerator.com on July 06, 2006, 11:43:29 AM
how can i email members who havent been on the forum since a specific date?
That's not really part of this mod. That would be another mod.

which mod is it part of?
Title: Re: SMF User Email System
Post by: GJ-tje on July 22, 2006, 06:38:33 AM
Is it possible, to make this emailer possible for the members section in the administration panel?
If so, than I would love to see it also in the adminpanel! Maybe an idea, to make it settable, with a configuration panel for the user email mod? :D

Admins / Global moderators can still see the email address on the user's profile, but I don't think that it would be needed with this great mod :P

I also would like to prevent 'normal' users from emailing others via the forum and also guest users, but I can't find where I can arrange that... :(
Title: Re: SMF User Email System
Post by: vbgamer45 on July 22, 2006, 08:18:59 AM
Quote from: GJ-tje on July 22, 2006, 06:38:33 AM
I also would like to prevent 'normal' users from emailing others via the forum and also guest users, but I can't find where I can arrange that... :(
By default when you install the mod it prevents anyone from emailing each other ie guests, normal users.

There is a permission for each group called "Send User Email" which can you turn on or off to allow them to use the user email system.
Title: Re: SMF User Email System
Post by: mforum on August 01, 2006, 03:32:37 AM
It`s a great mod, installed it and works fine in rc2 except from some errors in error log

2: gzwrite(): supplied argument is not a valid stream resource
File: /home/*******/public_html/forum/Sources/Subs-Package.php

in several lines at Subs-Package.php around line 2110

anyone else has same errors?
Title: Re: SMF User Email System
Post by: Vinspire on August 01, 2006, 04:47:19 AM
Great mod from vbgamers again but somehow i think there is still a loopholes in this mod ... Like what harzem have said.

QuoteYes, but a newly registered member can use it for spamming.

Anyway, when it has time limits, that will be an even greater mod

Indirectly this mod make it easier for pplz to send out the email instead of harvesting the email easily.

Offtopic question : Is it possible for us to set the setting as hide the "email, yahoo messenger, msn messenger and other AIM" from regular members view ?

I've currently restrict my members from viewing each others profile coz i dont want to leak out their contact details as i've listed above but the thing is some of my forummers want to check what topic had been opened by this members and what post he've made in the forum.

Thanks :)
Title: Re: SMF User Email System
Post by: mforum on August 02, 2006, 03:22:20 AM
Vinspire, i believe an email per day limit would be more efficient  :-\
Admins and moderators can check if someone is sending emails every day, that would be unreasonable for a non spamer to do.
In my case, except from who`s on line list, i can check it cause of the errors i have in my error log ...  ;)   :D
Title: Re: SMF User Email System
Post by: Vinspire on August 02, 2006, 05:12:35 AM
Quote from: mforum on August 02, 2006, 03:22:20 AM
Vinspire, i believe an email per day limit would be more efficient  :-\
Admins and moderators can check if someone is sending emails every day, that would be unreasonable for a non spamer to do.
In my case, except from who`s on line list, i can check it cause of the errors i have in my error log ...  ;)   :D

email per day - Is this a mod ? How could i do this ?  ::)
Title: Re: SMF User Email System
Post by: vbgamer45 on August 02, 2006, 08:47:39 AM
I could add support for the CAPTCHA mod or general CAPTCHA once SMF RC3 comes out.
Title: Re: SMF User Email System
Post by: mforum on August 02, 2006, 05:16:43 PM
Quote from: Vinspire on August 02, 2006, 05:12:35 AM
Quote from: mforum on August 02, 2006, 03:22:20 AM
Vinspire, i believe an email per day limit would be more efficient  :-\
Admins and moderators can check if someone is sending emails every day, that would be unreasonable for a non spamer to do.
In my case, except from who`s on line list, i can check it cause of the errors i have in my error log ...  ;)   :D

email per day - Is this a mod ? How could i do this ?  ::)

I was hopping vbgamer45 add this to his mod  :)
Title: Re: SMF User Email System
Post by: vbgamer45 on August 02, 2006, 05:20:40 PM
That's a little tricker. I would have to create a database table to store when each email is sent and the user id.
Title: Re: SMF User Email System
Post by: mforum on August 02, 2006, 05:46:04 PM
I think is ok as it is.Needs a little bit of attention on who and how often sends emails.
Title: SMF User Email System - Other languages?
Post by: Surferbird on September 07, 2006, 08:11:56 AM
Could this MOD be made to support other languages?

Where to translate them now?

Thanks  ;)
Title: Re: SMF User Email System
Post by: vbgamer45 on September 07, 2006, 09:46:01 AM
Maybe, right now you would have to edit the template files the language strings are hardcoded.
Title: Re: SMF User Email System
Post by: Surferbird on September 07, 2006, 10:16:39 AM
Okay, i found needed text but when use 3 languages it shows up in the translated. Hope you get support
for more languages soon  8)

Quote from: vbgamer45 on September 07, 2006, 09:46:01 AM
Maybe, right now you would have to edit the template files the language strings are hardcoded.
Title: Re: SMF User Email System
Post by: marinelife on September 15, 2006, 12:08:02 AM
so far only my admins can send an email is there a setting that needs changed, also the admins can not see the email address
Title: Re: SMF User Email System
Post by: Vinspire on September 15, 2006, 01:39:26 AM
Quote from: marinelife on September 15, 2006, 12:08:02 AM
so far only my admins can send an email is there a setting that needs changed, also the admins can not see the email address

1. Please check ur membergroup permission if you want other membergroup to be able to send an email.

2. Admin can see the email address by checking the profile info :)
Title: Re: SMF User Email System
Post by: marinelife on September 15, 2006, 07:50:21 AM
nothing in the profile area as far as emails go. I check marked the email permission and it still does not work
Title: Re: SMF User Email System
Post by: Vinspire on September 15, 2006, 08:28:57 AM
Quote from: marinelife on September 15, 2006, 07:50:21 AM
nothing in the profile area as far as emails go. I check marked the email permission and it still does not work

1. Admin CP -> Members -> Permissions ( You might not be able to see this if you are using custom theme where it need manual installation to get it to work )

(http://img148.imageshack.us/img148/5245/emailzl0.png)

2. As an Admin

Click on members name that you want to see their email -> Modify Profile -> Account Related Settings

Title: Re: SMF User Email System
Post by: marinelife on September 15, 2006, 09:01:24 AM
yeah that is the permission box I have and if I check it the user still can not send an email, I will try to reinstall the mod
Title: Re: SMF User Email System
Post by: marinelife on September 15, 2006, 11:24:35 PM
on here you have useremail.zip file and on your site you have 18useremail.zip are there any differences in them
Title: Re: SMF User Email System
Post by: vbgamer45 on September 16, 2006, 09:24:22 AM
Not really. The main thing todo is check that every group that you want to send email has permission to do so.
Title: Re: SMF User Email System
Post by: carbonize on October 14, 2006, 03:51:19 PM
Great mod. Maybe you could tie up with HarzeM about getting it to work with his CAPTCHA mod.
Title: Re: SMF User Email System
Post by: Chad on October 15, 2006, 09:25:33 AM
Problem I have with this mod is that when a user sends another user an email, the FORUM EMAIL address, namely, mine, gets put in there as the person who sent the email and these people REPLY to the email and send me the response... lol  I then have to explain to them that I didn't send it and they need to go to the site and look the member up who did then send them the response.
Could we have 3 links in the email that is sent?
1 that is a link to the senders profile on the site.
1 that is a link directly to Private Message the user.
1 that is a link to send the user an email using the email system.

Title: Re: SMF User Email System
Post by: marinelife on October 15, 2006, 09:30:49 AM
That is a good idea
Title: Re: SMF User Email System
Post by: Daiima on October 20, 2006, 08:33:27 AM
Hello,

I am getting some trouble with this mod.
When trying to mail a member, a message: Cannot load 'main' template is displayed.
I installed it automatically on my SMF 1.1RC3 and then looked for misinstalling in all files (I found some, by the way), but even after this check I do not manage to make it run. I use it with PDX-DK theme.

Thanks
Title: Re: SMF User Email System
Post by: Daiima on October 27, 2006, 08:18:59 AM
Hello, I up as this problem is very annoying and because I just saw that this error comes with another one:
2: call_user_func(UserEmailMain) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /(...)/forum/index.php
Line: 142
?action=useremail;u=1


If you can help me solve it, it would be great! Thanks.
Title: Re: SMF User Email System
Post by: violaceous on October 31, 2006, 09:10:03 PM
This is an awesome mod (it should definately become standard in SMF), the one thing I noticed immediately is that it seems to display the person's username instead of their display name. I think it'd be better if it showed display names.

Quote from: Chad on October 15, 2006, 09:25:33 AM
Problem I have with this mod is that when a user sends another user an email, the FORUM EMAIL address, namely, mine, gets put in there as the person who sent the email and these people REPLY to the email and send me the response... lol  I then have to explain to them that I didn't send it and they need to go to the site and look the member up who did then send them the response.
Could we have 3 links in the email that is sent?
1 that is a link to the senders profile on the site.
1 that is a link directly to Private Message the user.
1 that is a link to send the user an email using the email system.
seems like a good idea too
Title: Re: SMF User Email System
Post by: violaceous on November 01, 2006, 10:46:05 PM
Quote from: violaceous on October 31, 2006, 09:10:03 PM
This is an awesome mod (it should definately become standard in SMF), the one thing I noticed immediately is that it seems to display the person's username instead of their display name. I think it'd be better if it showed display names.
I went into User_Email.php and replaced all the instances of memberName with realName to get it to show the display name instead of the username, it seems to work fine :)

edit: after a little more tweaking to User_Email.php I got the emails to look like this:
QuoteHello anotherUser,

The following is an email sent to you by violaceous via your account on ForumName. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at [email protected]

The message sent to you follows:
--------------------------------------------------

this is the message

okay?

--------------------------------------------------
violaceous's profile: http://domain.com/forum/index.php?action=profile;u=6
ForumName: http://domain.com/forum
Basically, it uses display names instead of usernames, the message is separated a little more from the surrounding text, and there's links back to the forum as well as to the sender's profile page

Here's the modified User_Email.php (feel free to use it or not :P )
<?php
/*
User Email System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
*/

if (!defined('SMF'))
die('Hacking attempt...');

function
UserEmailMain()
{
global $context, $mbname, $webmaster_email, $ID_MEMBER, $txt, $db_prefix, $sourcedir, $scripturl, $boardurl;

//Check if the current user can send emails
isAllowedTo('send_useremail');

if(isset($_GET['sa']))
{

if($_GET['sa'] == 'save')
{

@$subject = $_POST['subject'];
if($subject == '')
fatal_error('You need to enter a subject.',false);
@$message = $_POST['message'];
if($message == '')
fatal_error('You need to enter a message.',false);


@$userid = (int) $_POST['userid'];
if($userid == '')
fatal_error('No user selected.',false);

$request = db_query("SELECT realName, emailAddress FROM {$db_prefix}members WHERE ID_MEMBER = $userid LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);

$rec = $row['realName'];
$rec_email = $row['emailAddress'];

mysql_free_result($request);

$request2 = db_query("SELECT realName, emailAddress FROM {$db_prefix}members WHERE ID_MEMBER = $ID_MEMBER LIMIT 1", __FILE__, __LINE__);
$row2 = mysql_fetch_assoc($request2);
$sec_name = $row2['realName'];
$sec_email = $row2['emailAddress'];
mysql_free_result($request2);

$m ="Hello $rec,

The following is an email sent to you by
$sec_name via your account on $mbname. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at $webmaster_email

The message sent to you follows:\n--------------------------------------------------\n\n"
;
$m .=  strip_tags($message);
$m .= "\n\n--------------------------------------------------\n";
$m .= $sec_name . "'s profile: " . $scripturl . "?action=profile;u=" . $ID_MEMBER;
$m .= "\n" . $mbname . ": " . $boardurl;
//For send mail function
require_once($sourcedir . '/Subs-Post.php');

//Send email to member
sendmail($rec_email, $subject, $m);

//Check if it should send the sender a copy of email
@$sendcopy = $_POST['sendcopy'];
if($sendcopy == 'ON')
{
sendmail($sec_email, $subject, $m);
}

//Show template that mail was sent
loadtemplate('User_Email');

//Load the main User Email template
$context['sub_template']  = 'send';

//Set the page title
$context['page_title'] = $mbname . ' - Email sent.';

}
}
else
{
$u = (int) $_GET['u'];

$request = db_query("SELECT realName FROM {$db_prefix}members WHERE ID_MEMBER = $u LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
$context['user_email_name'] = $row['realName'];
$context['user_email_id'] = $u;

//Load the main User Email template
loadtemplate('User_Email');

//Load the main User Email template
$context['sub_template']  = 'main';

//Set the page title
$context['page_title'] = $mbname . ' - ' . $txt['user_email_title'];
}
}
?>

I didn't change any conditional statements so there shouldn't be any security concerns introduced (tested on 1.1 RC3)
Title: Re: SMF User Email System
Post by: vbgamer45 on November 06, 2006, 04:47:12 PM
Updated mod so it uses the displayname instead of the username.
Title: Re: SMF User Email System
Post by: violaceous on November 06, 2006, 08:50:31 PM
I've also noticed that it doesn't seem to check the member's permission for "Hide email address from public?"

If checked, then the link isn't public, however it's still possible (and really easy) to manually enter the link in your browser's address bar to get to the send email form for the member in question, and then send them an email
Title: Re: SMF User Email System
Post by: vbgamer45 on November 06, 2006, 09:38:03 PM
Quote from: violaceous on November 06, 2006, 08:50:31 PM
I've also noticed that it doesn't seem to check the member's permission for "Hide email address from public?"

If checked, then the link isn't public, however it's still possible (and really easy) to manually enter the link in your browser's address bar to get to the send email form for the member in question, and then send them an email
Good find I will fix that for next release.
Title: Re: SMF User Email System
Post by: bebe on November 08, 2006, 10:33:23 AM
hmm.. i have problem with version 1.1.

My current forum still using version 1.0 and no errors at all, but i set up another forum with the version 1.1 and i get the error as follows whenever i typed at the all fields and click submit.
QuoteAn Error Has Occurred!
You need to enter a message.

Once i click 'Back', all the message that i just typed still showing there.

FYI, i'm using 1.1RC3, patched, installed the Reason for Editing, Contact Page mod. This is the 3rd mod i installed and i get the error.

I don't know what files are related to this error. Any helps would be appreciated.
Title: Re: SMF User Email System
Post by: vbgamer45 on November 08, 2006, 04:04:48 PM
Fixed.

Added Guest email support as well. Requires a guest to enter their email address.
Title: Re: SMF User Email System
Post by: bebe on November 08, 2006, 06:03:35 PM
Oh, not sure what you've done, version 1.1.2 is error free. Thanks! :D
Title: Re: SMF User Email System
Post by: violaceous on November 08, 2006, 09:55:12 PM
Quote from: vbgamer45 on November 06, 2006, 09:38:03 PM
Quote from: violaceous on November 06, 2006, 08:50:31 PM
I've also noticed that it doesn't seem to check the member's permission for "Hide email address from public?"

If checked, then the link isn't public, however it's still possible (and really easy) to manually enter the link in your browser's address bar to get to the send email form for the member in question, and then send them an email
Good find I will fix that for next release.
hmm.... admins by default overide all the permissions...... however when I click on the email link now (and the email link is shown for everyone)......... it'll give me a "cannot email this user" error (for the users who've disabled it)

Is there a way to change the permission checking so admins can still email the user regardless

thanks :)
Title: Re: SMF User Email System
Post by: violaceous on November 14, 2006, 03:50:02 AM
Quote from: violaceous on November 08, 2006, 09:55:12 PM
Quote from: vbgamer45 on November 06, 2006, 09:38:03 PM
Quote from: violaceous on November 06, 2006, 08:50:31 PM
I've also noticed that it doesn't seem to check the member's permission for "Hide email address from public?"

If checked, then the link isn't public, however it's still possible (and really easy) to manually enter the link in your browser's address bar to get to the send email form for the member in question, and then send them an email
Good find I will fix that for next release.
hmm.... admins by default overide all the permissions...... however when I click on the email link now (and the email link is shown for everyone)......... it'll give me a "cannot email this user" error (for the users who've disabled it)

Is there a way to change the permission checking so admins can still email the user regardless

thanks :)

The 2 parts in User_Email.php that said:
if($row['hideEmail'] == 1)
fatal_error('This user has hidden their email and you can not email them.',false);

I just changed to:
if($row['hideEmail'] == 1 && !$context['user']['is_admin'])
fatal_error('This user has hidden their email and you can not email them.',false);

This lets admins overide the setting, which seems to make more sense since admins overide all other permissions anyways
Title: Re: SMF User Email System
Post by: vbgamer45 on November 14, 2006, 09:57:01 AM
Added violaceous idea to allow admin's to send mail even if user hides email.
Title: Re: SMF User Email System
Post by: Krysia on December 02, 2006, 09:55:22 PM
Perplexed: The icon doesn't show even though I have the image in the images folder (for both the default theme and my custom theme) in the member list. It worked great before I upgraded to SMF 1.1. Any ideas?

Thank you. :)
Title: Re: SMF User Email System
Post by: vbgamer45 on December 02, 2006, 10:03:08 PM
I just fixed it about 15 minutes ago. Forgot to include the image heh. Redownload the mod
Title: Re: SMF User Email System
Post by: Krysia on December 03, 2006, 07:15:30 PM
Thank you! It's all good now. :)
Title: Re: SMF User Email System
Post by: Xarcell on December 07, 2006, 12:13:17 AM
Nice mod...
Title: Re: SMF User Email System
Post by: ThaRealMatix on December 10, 2006, 09:50:52 AM
Hi...

i just edited the xml file to add the entries to the german utf language files. Would you mind if i post this edited files to the german support board? Credits for all that would - of course - stay by you
Title: Re: SMF User Email System
Post by: vbgamer45 on December 10, 2006, 10:35:09 AM
Quote from: ThaRealMatix on December 10, 2006, 09:50:52 AM
Hi...

i just edited the xml file to add the entries to the german utf language files. Would you mind if i post this edited files to the german support board? Credits for all that would - of course - stay by you
That's ok
Title: Re: SMF User Email System
Post by: ThaRealMatix on December 11, 2006, 08:06:42 AM
Thanks :) well actually the xml file doesnt work :( maybe you want to have a look at this?

One Question, or two to be honest, i have right away: Is there a way to let the mod work with the Staff Page Mod (which is also from) you .. and possibly the gmail Mod?
Title: Re: SMF User Email System
Post by: Inflame on December 18, 2006, 03:46:28 PM
Heya

im getting an error installing this one at my SMF 1.1.1 forum

Could you please update the mod to the newest SMF update?

Thank you alot


This mod is serious a good one!
Title: Re: SMF User Email System
Post by: vbgamer45 on December 18, 2006, 06:37:36 PM
Quote from: Inflame on December 18, 2006, 03:46:28 PM
Heya

im getting an error installing this one at my SMF 1.1.1 forum

Could you please update the mod to the newest SMF update?

Thank you alot


This mod is serious a good one!
Done
Title: Re: SMF User Email System
Post by: Doug Simspon on December 18, 2006, 10:26:55 PM
Hey 1st post here I think lol. 

The mod works for partially really about 3/4 of the way.

It works totally with the default smf theme.

Im trying to get it to work with A christmas theme and it works in the profile but not in the topic. Can any on help....I ve been digging through templates for hours.
I'd appreciate it. I was on the display.template.php trying to edit

// Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] .  '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

            // Since we know this person isn't a guest, you *can* message them.



with this   

http: //mydomain.com/smf/index.php?action=useremail;u=1

Title: Re: SMF User Email System
Post by: vbgamer45 on December 18, 2006, 10:34:32 PM
Change To

if (empty($message['member']['hide_email']))
<a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

Title: Re: SMF User Email System
Post by: Doug Simspon on December 19, 2006, 04:41:46 PM
My post last I believe is not what was wrong with what I'm experiencing, I was tired and didnt look closer to where I was located that code was under messaging not emailing I
Have messaging disabled.

I did this below all except the

"open useremail.xml in a text editing program then follow the edits"
am I supposed to load this on my server, and I' not sure what I'm to edit


Quote from: vbgamer45 on July 06, 2006, 01:41:38 PM
I would suggest doing a manual install its harder but you can do it
Copy User_Email.php to the sources folder
Copy User_Email.template.php to the folder of your theme example default
Copy user_email.gif  to the folder of your theme example default
Then if you use SMF 1.1 RC2
open useremail.xml in a text editing program then follow the edits
Then if you use SMF 1.0.7
open useremail107.xml in a text editing program then follow the edits

What I'm experiencing is in the topics the mail icon is still pull up outlook.

Title: Re: SMF User Email System
Post by: vbgamer45 on December 19, 2006, 05:03:46 PM
You would need to edit display.template.php
Find

// Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

            // Since we know this person isn't a guest, you *can* message them.

Replace with

// Don't show the email address if they want it hidden.
           if (empty($message['member']['hide_email']))
<a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


            // Since we know this person isn't a guest, you *can* message them.
Title: Re: SMF User Email System
Post by: Doug Simspon on December 19, 2006, 06:31:01 PM
Thank-You vbgamer45 8)

It is working now I really appreciate the help :D

Doug
Title: Re: SMF User Email System
Post by: Dirk67 on December 31, 2006, 09:16:53 AM
thanks, great mod so far    (why isn't this standard ??  :o)

2 Questions:

1)
I need french and spanish text for it (so that I can modify the given "useremail.xml")
maybe someone did the translation already ?

2)
Is it planned to integrate with "Advanced Visual Verification" from HarzeM ?
I would find this idea very usefull,
otherwise a "bad person" could register himself (personally) as a new user (with captcha),
and then start his spambot to send an email to all 5000 users via your form mailer ?
I mean, could this scenario become true (speaking theoretically) ?
Title: Re: SMF User Email System
Post by: Dirk67 on December 31, 2006, 10:19:53 AM
puh,
I just found out that you "hardcoded" the english language for the E-Mail-Screen itself and also for some error messages and so on
within the files "User_Email.php" and "User_Email.template.php" (?)

So no matter what language the bord-user chooses,
the E-Mail-Dialog appears always in English, thats not good... ::)

Why don't you use the native system of SMF's language-files as other mod's do ?
is this planned in future ?
Title: Re: SMF User Email System
Post by: vbgamer45 on December 31, 2006, 10:23:08 AM
When I get some free time I will do it.
Title: Re: SMF User Email System
Post by: Greengoat on January 04, 2007, 12:01:25 AM
Strike everything below.  I solved the problem based on the knowledge that 9 out of 10 times it's generally a user error on my part when it comes to SMF.  But I figured I'd post the problem in case others have the same thing happen to them.  Basically I did not have a title for the forum so there wasn't one showing up in the email.  Secondly, the test board used my email address instead of the admins email address.  Once I realized that the solution was simple.


QuoteAt first I was going to pass on this one simply because on our forum email addresses are freely passed between members.  However after trying it on the test board I saw how quickly it opened up when sending emails.  Much easier sometimes then opening a boggy email program to send an email.

So I sent myself a test letter.  Worked great but the message was missing the forum name and admins email addy.

QuoteHello Greengoat,

The following is an email sent to you by Greengoat via your account on . If this
message is spam, contains abusive or other comments you find offensive please
contact the webmaster of the board at the following address at
greengoat@xxxxxxxxxx

Message sent to you follows
test email system

Seems to be missing the forum name and an address for the admins.  Instead it points to the sender.


Question though, I thought I read somewhere about linking to the members profile on the site.  Was I dreaming or was it real?  Mine only lists the users display name, but not a link to their profile.

Just wondering because on bigger boards this could require a search of the member list.  Not a terrible thing but a direct link to avoid confusion would be cool.

All this aside, Great Mod.  Let the emails fly!
Title: Re: SMF User Email System
Post by: vbgamer45 on January 04, 2007, 12:13:42 AM
Profile link currently is not in the mod.
Title: Re: SMF User Email System
Post by: Greengoat on January 04, 2007, 12:53:12 AM
Still an excellent mod.
Title: Re: SMF User Email System
Post by: Dirk67 on January 04, 2007, 05:12:10 AM
back to my older question(s):

Quote from: Dirk67 on December 31, 2006, 09:16:53 AM
thanks, great mod so far    (why isn't this standard ??  :o)

2 Questions:

1)
I need french and spanish text for it (so that I can modify the given "useremail.xml")
maybe someone did the translation already ?

2)
Is it planned to integrate with "Advanced Visual Verification" from HarzeM ?
I would find this idea very usefull,
otherwise a "bad person" could register himself (personally) as a new user (with captcha),
and then start his spambot to send an email to all 5000 users via your form mailer ?
I mean, could this scenario become true (speaking theoretically) ?

any comments on that ?  :)
Title: Re: SMF User Email System
Post by: vbgamer45 on January 04, 2007, 08:05:10 AM
No language support yet. No CAPTCHA support.
Title: Re: SMF User Email System
Post by: Greengoat on January 04, 2007, 01:04:24 PM
Hi again, everyone is loving the new internal mail system.

Had one idea though, would it be possible to include a link in the email back to the page from which you clicked the email button show up automatically?

We have to manually copy and paste links back to the topic to ensure the person knows which topic we are referring to.  And adding that would be a massive time saver.

Curious if something like that was even possible.
Title: Re: SMF User Email System
Post by: vbgamer45 on January 04, 2007, 01:09:21 PM
The link back would be tricky unless you want it from the topic only.  Sine the email form is on the topic display, profile, and the members list.
Title: Re: SMF User Email System
Post by: Greengoat on January 04, 2007, 01:59:47 PM
Yes, I think the topic only is what I would be wanting.  For instance if you wanted to contact Dirk67 about this topic the email he gets would include a direct link back to this thread, possibly even the message inside the topic.

So adding a line inside the email message like - To view the topic this originated from click here, or Click here to view topic.

Maybe even make it an option like the option to send yourself a copy of the email.  This way if you just wanted to contact someone regarding the weather the email wouldn't link back to some generic topic.  Or you clicked on their email addy through the memberlist, again you wouldn't want that linking back to the memberlist.
Title: Re: SMF User Email System
Post by: buhaychat.com on January 05, 2007, 06:50:01 PM
Great mod!

Got it working on my 1.1.1 custom template.

Thanks!
Title: Re: SMF User Email System
Post by: SactoEric on January 12, 2007, 12:17:23 PM
Sorry for the noob question, but where do I make the following changes? Where is this file located?


Quote from: violaceous on November 01, 2006, 10:46:05 PM
Quote from: violaceous on October 31, 2006, 09:10:03 PM
This is an awesome mod (it should definately become standard in SMF), the one thing I noticed immediately is that it seems to display the person's username instead of their display name. I think it'd be better if it showed display names.
I went into User_Email.php and replaced all the instances of memberName with realName to get it to show the display name instead of the username, it seems to work fine :)

edit: after a little more tweaking to User_Email.php I got the emails to look like this:
QuoteHello anotherUser,

The following is an email sent to you by violaceous via your account on ForumName. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at [email protected]

The message sent to you follows:
--------------------------------------------------

this is the message

okay?

--------------------------------------------------
violaceous's profile: http://domain.com/forum/index.php?action=profile;u=6
ForumName: http://domain.com/forum
Basically, it uses display names instead of usernames, the message is separated a little more from the surrounding text, and there's links back to the forum as well as to the sender's profile page

Here's the modified User_Email.php (feel free to use it or not :P )
<?php
/*
User Email System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
*/

if (!defined('SMF'))
die('Hacking attempt...');

function
UserEmailMain()
{
global $context, $mbname, $webmaster_email, $ID_MEMBER, $txt, $db_prefix, $sourcedir, $scripturl, $boardurl;

//Check if the current user can send emails
isAllowedTo('send_useremail');

if(isset($_GET['sa']))
{

if($_GET['sa'] == 'save')
{

@$subject = $_POST['subject'];
if($subject == '')
fatal_error('You need to enter a subject.',false);
@$message = $_POST['message'];
if($message == '')
fatal_error('You need to enter a message.',false);


@$userid = (int) $_POST['userid'];
if($userid == '')
fatal_error('No user selected.',false);

$request = db_query("SELECT realName, emailAddress FROM {$db_prefix}members WHERE ID_MEMBER = $userid LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);

$rec = $row['realName'];
$rec_email = $row['emailAddress'];

mysql_free_result($request);

$request2 = db_query("SELECT realName, emailAddress FROM {$db_prefix}members WHERE ID_MEMBER = $ID_MEMBER LIMIT 1", __FILE__, __LINE__);
$row2 = mysql_fetch_assoc($request2);
$sec_name = $row2['realName'];
$sec_email = $row2['emailAddress'];
mysql_free_result($request2);

$m ="Hello $rec,

The following is an email sent to you by
$sec_name via your account on $mbname. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at $webmaster_email

The message sent to you follows:\n--------------------------------------------------\n\n"
;
$m .=  strip_tags($message);
$m .= "\n\n--------------------------------------------------\n";
$m .= $sec_name . "'s profile: " . $scripturl . "?action=profile;u=" . $ID_MEMBER;
$m .= "\n" . $mbname . ": " . $boardurl;
//For send mail function
require_once($sourcedir . '/Subs-Post.php');

//Send email to member
sendmail($rec_email, $subject, $m);

//Check if it should send the sender a copy of email
@$sendcopy = $_POST['sendcopy'];
if($sendcopy == 'ON')
{
sendmail($sec_email, $subject, $m);
}

//Show template that mail was sent
loadtemplate('User_Email');

//Load the main User Email template
$context['sub_template']  = 'send';

//Set the page title
$context['page_title'] = $mbname . ' - Email sent.';

}
}
else
{
$u = (int) $_GET['u'];

$request = db_query("SELECT realName FROM {$db_prefix}members WHERE ID_MEMBER = $u LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
$context['user_email_name'] = $row['realName'];
$context['user_email_id'] = $u;

//Load the main User Email template
loadtemplate('User_Email');

//Load the main User Email template
$context['sub_template']  = 'main';

//Set the page title
$context['page_title'] = $mbname . ' - ' . $txt['user_email_title'];
}
}
?>

I didn't change any conditional statements so there shouldn't be any security concerns introduced (tested on 1.1 RC3)
Title: Re: SMF User Email System
Post by: vbgamer45 on January 12, 2007, 12:19:39 PM
Sources/User_email.php I thought I had that built in the latest release.
Title: Re: SMF User Email System
Post by: SactoEric on January 12, 2007, 12:29:50 PM
oops, thought I looked there... thank you very much for the extremely fast reply!

sorry, I'm not using the latest release & I didn't realize it was coming from my admin address until someone replied to an email earlier today...
Title: Re: SMF User Email System
Post by: buhaychat.com on January 14, 2007, 04:01:56 AM
GREAT MOD, INSTALLED NICELY ON MY 1.1.1
Title: Re: SMF User Email System
Post by: Greengoat on January 21, 2007, 07:07:58 PM
Had some issues with members getting emails that were sent to other users.  Anyone else have this problem?
Title: Re: SMF User Email System
Post by: WhatsUp on February 06, 2007, 11:43:01 AM
This mod works perfectly with 1.1.1 and TP .97. Many thanks  :D
Title: Re: SMF User Email System
Post by: my evil twin on February 07, 2007, 06:26:03 PM
Quote from: Chad on October 15, 2006, 09:25:33 AM
Problem I have with this mod is that when a user sends another user an email, the FORUM EMAIL address, namely, mine, gets put in there as the person who sent the email and these people REPLY to the email and send me the response... lol  I then have to explain to them that I didn't send it and they need to go to the site and look the member up who did then send them the response.
Could we have 3 links in the email that is sent?
1 that is a link to the senders profile on the site.
1 that is a link directly to Private Message the user.
1 that is a link to send the user an email using the email system.



has this already been implemented?

and, though i am admin, i do not see the emailadress in the profile. what am i doing wrong?

thanks!
Title: Re: SMF User Email System
Post by: rotor on February 13, 2007, 07:24:34 AM
This is a great mod  :D

Many thanks for the quick update to 1.1.2

rotor
Title: Re: SMF User Email System
Post by: Chriss Cohn on February 28, 2007, 05:06:52 AM
This thing is not so good, and should be changed - although its a standard in most other Forum-scripts like "Burning-Board" and so on:
Every user should have the abillity to choose between the following options:
1. Complete Hide of email adress - so nothing would be showed and no possibiliy to send an email to this user.
2. Hide of email adress - so your mod would be used to send the emails
3. Complete show of email adress so everybody could see them complete

In current version of your mod, everybody who shows their adress get forced to only get email via your mod - and all the ones who hides their adress (which is marked as "recommend" in the standart registration), to them no email can be send anymore   -   That really bad!

regards Christian
Title: Re: SMF User Email System
Post by: vbgamer45 on February 28, 2007, 08:48:22 AM
That's the point of the mod.
If you show the your email address you will get an email form.
If you hide your email address must likely you do not want to recieve email from the form anyway so it is blocked.
Title: Re: SMF User Email System
Post by: lucia2 on March 03, 2007, 10:17:18 AM
I installed on 1.1.2 using the package manager. I get the added "Send User Email" permission check box on the permissions page.  However, members still shows email addresses, and the whole board still uses the original mailing method.  I am using the default screen.

What step did I miss?  
Title: Re: SMF User Email System
Post by: vbgamer45 on March 03, 2007, 10:24:50 AM
Probably using a custom theme. Only works on the default theme.
Title: Re: SMF User Email System
Post by: lucia2 on March 03, 2007, 10:29:06 AM
Sorry... user error. I was looking at the members as manager.  Also, I expected the "mail" icon next to the posts to change. (The one next to the AIM, pm etc. messages.)

I'd like to make it impossible for guests to email members by any method at all!  It looks like this mod does almost everything I'd like! :)
Title: Re: SMF User Email System
Post by: lucia2 on March 03, 2007, 12:13:30 PM
Shoot! I looked at the .xml file and I think there is a glitch in my installation. 

Example: View this message.
http://theknittingfiend.com/forum/index.php?topic=274.0

It looks like the Display.template.php is supposed to be changed so that little mail icon on the left below "Guest"  doesn't ever show. Right?

(I am using the default template.)  Basically, it looks like this bit in useremail.xml doesn't take hold!


<file name="$themedir/Display.template.php">

<operation>

<search position="replace"><![CDATA[<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';]]></search>

<add><![CDATA[<a href="' . $scripturl . '?action=useremail;u=' . $message['member']['id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';]]></add>

</operation>

</file>


I looked at Displaytemplate, and the stuff that is supposed to be replaced is still in Display.template.php.  (Other stuff does change.)
Title: Re: SMF User Email System
Post by: goitalone on April 13, 2007, 04:05:18 PM
Nice mod but too small of a typing area ..and too bad it doesn't can't have bbc style options to change fonts bold etc.

Edit: Ahh, I found where to make the box bigger to type...nice!
Title: Re: SMF User Email System
Post by: texasflats on April 13, 2007, 08:57:59 PM
Installed and works flawlessly, very much appreciated! Thanks!
Title: Re: SMF User Email System
Post by: SactoEric on April 26, 2007, 11:53:56 AM
I have the latest version (1.1.3) and forgot about the problem of the admin email address being used as the reply to address... I received an email from a member and, not thinking, replied - to myself!

Is there any way to fix this? It's beyond annoying to to have to find the member, get their address, copy the subject and content of the original email to a new one and send when I should just be able to click Reply.

Otherwise, great mod & like others have said, it should be standard in SMF like other forum scripts (once this problem gets fixed).

*edited to add that it looks like 2.0 Alpha has it...
Title: Re: SMF User Email System
Post by: goitalone on April 26, 2007, 04:43:56 PM
What is 2.0 Alpha?
Title: Re: SMF User Email System
Post by: SactoEric on April 26, 2007, 05:12:18 PM
Scroll down...

QuotePowered by SMF 2.0 Alpha | SMF © 2006–2007, Simple Machines LLC
XHTML | CSS | XML
Title: Re: SMF User Email System
Post by: goitalone on April 26, 2007, 05:14:21 PM
Yeah, sorry, I just saw that after I asked lol...I was just now readong about it all...this a long ways off though. I can't wait to see the improvments...especially the new email features!
Title: Re: SMF User Email System
Post by: santanu on May 01, 2007, 02:11:56 AM
i am using this mod but it does not hide the email address of the members in the posts. How to do that.
Title: Re: SMF User Email System
Post by: vbgamer45 on May 01, 2007, 08:01:15 AM
You would need to edit display.template.php by default only works on default theme.
Title: Re: SMF User Email System
Post by: carbonize on May 27, 2007, 09:40:32 AM
I was annoyed at this sending emails from the forums email address but thats because SMF's email sending is not that flexible. It always sends from the forums email address and there is nothing you can really do without changing their sendmail function. Here are my changes I have done to inform users of where to reply to and to provide a profile link.

Open User_Email.php and find

global $context, $mbname, $webmaster_email, $ID_MEMBER, $txt, $db_prefix,$sourcedir,$user_info;

Change it to

global $context, $mbname, $webmaster_email, $ID_MEMBER, $txt, $db_prefix,$sourcedir,$user_info, $scripturl;

next find

mysql_free_result($request2);

replace with

$profilemsg = " or you can view their profile at $scripturl?action=profile;u=$ID_MEMBER\n";
mysql_free_result($request2);


then replace

$sec_name ='Guest';

replace with

$sec_name ='Guest';
$profilemsg = '';


finally replace

The following is an email sent to you by $sec_name via your account on $mbname. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at $webmaster_email

with

The following is an email sent to you by $sec_name ( $sec_email ) via your account on $mbname. Please do not reply to this email as it was sent via the forum, instead use the email address provided earlier$profilemsg.
If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at $webmaster_email
Title: Re: SMF User Email System
Post by: vbgamer45 on June 14, 2007, 10:45:45 PM
Version 1.2 released
+Moved text strings to language file
+Added CAPTCHA support for SMF 1.1.x
Title: Re: SMF User Email System
Post by: Dirk67 on June 15, 2007, 02:03:20 AM
Quote from: vbgamer45 on June 14, 2007, 10:45:45 PM
Version 1.2 released
+Moved text strings to language file
+Added CAPTCHA support for SMF 1.1.x

very nice to hear !  :D
SMF User Email System is a "must have" MOD.

...should be a standard as a matter of course
do you know if a Mod is still needed in SMF 2.0,
or is it "built in"  ?
Title: Re: SMF User Email System
Post by: diplomat. on June 15, 2007, 02:19:27 AM
Built in on 2.0
Title: Re: SMF User Email System
Post by: SactoEric on June 22, 2007, 06:19:46 PM
doh! I thought I made the changes previously, but obviously didn't upload them as I received another email and caught me replying to myself again...

Here's what I changed the last part of the code to:

$m ="Hello $rec,

The following is an email sent to you by $sec_name ( $sec_email ) via your account on $mbname. Please do not reply to this email as it was sent via the forum, instead use the email address provided earlier or visit the sender's profile via the link below.

The message sent to you follows:\n--------------------------------------------------\n\n";
$m .=  strip_tags($message);
$m .= "\n\n--------------------------------------------------\n";
$m .= $sec_name . "'s profile: " . $scripturl . "?action=profile;u=" . $ID_MEMBER;
$m .= "\n\nIf this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address at $webmaster_email\n";
//For send mail function


I didn't like the idea of members unknowingly exposing their email addresses, so I added a disclaimer right above the "Send e-mail" button to the User_Email.template.php file in the Themes directory...

Quote* Please note that your email address will be exposed to the recipient
Title: Re: SMF User Email System
Post by: shadow82x on July 08, 2007, 11:10:08 PM
VB gamer I now get a problem! The user email works fine but in users profile it displays the actual email
Title: Re: SMF User Email System
Post by: vbgamer45 on July 08, 2007, 11:13:50 PM
Quote from: shadow82x on July 08, 2007, 11:10:08 PM
VB gamer I now get a problem! The user email works fine but in users profile it displays the actual email
IPB fan xD j/k heh Custom themes will need to be modified if you are using them.
Title: Re: SMF User Email System
Post by: shadow82x on July 08, 2007, 11:17:34 PM
But this is on the core! What does ipb have to do anything (shadow hates ipb so much!)
Title: Re: SMF User Email System
Post by: shadow82x on July 08, 2007, 11:20:11 PM
Actually I got it to work. I forgot admin were able to see hidden email.  :o
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 11:03:50 AM
my email form is blank. doesn't have any text fields like what people are supposed to be typign in, how do i change that

Quote from: vbgamer45 on July 01, 2006, 07:37:15 PM
Some Screenshots
(http://www.smfhacks.com/smf-email-email.PNG)

(http://www.smfhacks.com/smf-email-mlist.PNG)

(http://www.smfhacks.com/smf-email-profile.PNG)
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 11:25:50 AM
my email form is blank. no text fields and no one can send email to each other but me. i'm sure it's a permission issues, but i checked everything.

oh my message is down here, sorry.  see picture below. do i have to type in text fields
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 12:05:10 PM
Have you gone to ACP>Members>Permissions and modified the relevant groups so as to allow

Send User Email
Read personal messages     
Send personal messages

As regsrds your message image...yes you have to type in a subject, a message and the Visual Verification.

Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 12:11:55 PM
yes that is all checked, see image


i also want the pretext

user name
your email address
like type message here
send button

on the form. it's totally blank.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 12:50:02 PM
Judging by that image you may be using the wrong forum language...please go to:

ACP>Server Settings>Default Forum Language

Make sure it is set to English and not English utf8...this would explain why the text is not showing next to some of the check boxes...in particular the one immediately above "Change Other Peoples Karma" should show text saying "Send User Email" ...that was one of the ones I advised you to check to give what you required...the text isn't shown (due to incorrect language setting most likely) and the box isn't checked in the image you provided.

You would have to type those text items in the message body.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 01:00:11 PM
holy cow it works.&nbsp; thanks so much. i still do have a permission setting it seems like but i'll keep working on that.


;) :) :D ;D
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 01:06:03 PM
My Pleasure!
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 01:13:26 PM
Quotesaying "Send User Email" ...that was one of the ones I advised you to check to give what you required..

this is not there, but the box is and i checked it so i'll see if it works now
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 01:29:41 PM
okay the box and words showed up

still not working for moderators though. no words.

and now this message


It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 01:37:12 PM
Please check using the following site to see that all the edits this mod seeks to make have been made:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

I suspect that Modifications.english.php in the languages directory of your theme may not have been edited properly but that makes it sensible for you to also check the other files.

Try that first and make sure that all edits have been properly applied and all new files uploaded then again check the permissions given to moderators
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 01:47:44 PM
you are right, there is a problem with that. working on it now
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 01:51:14 PM
do i have to make the edits it suggest because it doesn't make too much sense

um, sorry, looks like i have to make the edits, will try

its also saying
find this
?>  ( I HAVE NEVER FOUND THIS CHARACTER)

Add before:

// Begin User Email System Text Strings
$txt['whoall_useremail'] = 'Writing a user an email.';
// END User Email System Strings
         

BUT AM REPLACING THE TEXT ABOVE
Title: Re: SMF User Email System
Post by: vbgamer45 on July 29, 2007, 01:55:49 PM
Quote from: naturalwoman on July 29, 2007, 11:25:50 AM
my email form is blank. no text fields and no one can send email to each other but me. i'm sure it's a permission issues, but i checked everything.

oh my message is down here, sorry.  see picture below. do i have to type in text fields
Copy the text strings  from
themes/default/langauges/modifications.english.php
to every
themes/default/langauges/modifications.*.php
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 02:01:06 PM
I'M only using the default them and i don't allow others to change the theme.  the post above said that mod.eng.php file is not updated, so if i copy it, it won't matter, right?
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 02:16:00 PM
May I try to clarify this a bit for you?

In Modifications.english.php you need to have one instance of the following code:


//Begin User Email System Text Strings
$txt['user_email_title'] = 'User Email System';
$txt['permissionname_send_useremail'] = 'Send User Email';
$txt['permissionhelp_send_useremail'] = 'See if the user is allowed to send email.';
$txt['cannot_send_useremail'] = 'You can not send email.';
//END Begin User Email System Text Strings


The file should end with:

?>

...and there should be only one instance of that code...it should be at the very end of the file on a line of its own.

The next code you quoted was:


//Begin User Email System Text Strings
$txt['whoall_useremail'] = 'Writing a user an email.';
//END User Email System Strings


That code belongs in the Who.english.php and again there should be only one instance of it.

Like the Modifications.english.php file Who.english.php shold have a single instance of the following code at the end on the file and on a line of its own.


?>
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 02:20:19 PM
oh okay, that helps, will try that

i put that code ?> on it's on line after both of those other codes and nothing. files are attached.  can you see if i did it right. sometimes i will get text fields, and some times i won't.

a moderator still can never use the form
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 02:49:39 PM
Modifications.english.php had a second instance of:

?>

...at line 68...removed in the file below.

Lines 142 to 175 inclusive were a second instance of the code from this mod...also removed in the file below.

Who,english.php had two instances of:

?>

...also...the erroneous one at line 95...this also removed in the file below.

Lines 104 to 106 inclusive were a second instance of the code from this mod...also removed in the file below.

You need to go to the permissions for moderators and check the fields there to allow permission to use the form...as stated previously.

Please note the editing you needed to do was not simply to add code...you needed to check for multiple instances of code.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 02:55:28 PM
oh, sorry didn't quite understand.  the corrected files are attached?

thanks for your help.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 03:08:45 PM
Yes the corrected files are attached to my last post.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 03:20:17 PM
nope. don't work.&nbsp; the form works, but no text.&nbsp; will log in to see if mods can use the form

it works for mods, just no text at all.  blank text fields.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 03:46:09 PM
Advice given via PM to try to sort this out.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 04:32:13 PM
i reinstalled a new board on another forum i have, uploaded the 2 files you modified and still nothing.  i guess i give it.  only the words are missing. the form sends the message over, but it's all jumbled together. no formatting of the to, email address, message. just a straight line.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 04:44:21 PM
If you started a fresh forum (no mods, no custom themes), presumably on a new database too...then you had no need to upload those two files.

You should have then installed mods from scratch.

If you do the above and it still doesn't work then please post the same two files from that forum and I may need access to the forum itself to see what has happened.. (a PM giving the details please...admin account and I may need ftp access too.)
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 06:14:33 PM
on my personal website, i went through fantastico (my control panel with my hosting company) and uninstalled the message board that i had there and reinstalled a fresh version, to my knowledge, then i installed only the PM mod and it did not work, so i moved those two files over and nothing.

the forum in question is on another site, a shared site. i really don't want to do a fresh one on that one because i dont know what i'm doing and i don't want to lose my users, even though i do a back up, i never restored a back up so i don't know how that works.

it works a little, just no text regarding what you should be typing and its not quite formatted when you get the message.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 07:08:56 PM
Fantastico is quite often wrongly set to give SMF forums english utf8 rather than english as the Default Language in ACP>Server Settings (of your forum) so you might try putting that right. Other than that it would appear that you have some peculiar hosting issue that can't be easily rectified (or at all without the hosts assistance.) Save for suggesting a change to a better host there's not much else I can advise.

I use this mod myself, and on a number of forums, I've no problems with it and it would seems that the large number of other users don't either...that doesn't help you fix your problem but it does put it in perspective. In the end you have to accept it as it is or change hosts.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 07:30:35 PM
okay. i did make that change in the acp, server setting the first time and it did work, but when i went to make other permissions, it disappeared.&nbsp; thanks for your help.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 07:39:27 PM
Could you be more exact please...what other permissions and do you mean that the text was made visible then reverted to how it was while maintaining the server setting?
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 07:41:09 PM
it works now on my personal website, (the one i took off and reinstalled through fantastico) so it looks like i have to uninstall the entire forum and reinstall it. not sure how to recover a backup, but i'll look that up now

thanks
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 07:41:52 PM
i was trying to give the moderators permission to send email through this system.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 08:07:52 PM
Your last posting but one said:

Quotebut when i went to make other permissions, it disappeared.

...hence my question. That statement implies that by trying to change the permissions for moderators you lost previously visible text.

You would recover a backup via phpMyAdmin.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 08:16:11 PM
yes that what happened. when i made modifcations or tried to for the moderators, the "text" then disappeared.  it would show, then not show up.  now its not there.

on my personal site, i did the complete uninstall and saved the two files plus attachements and it says - when i tried to upload this file and go back to the forum it says:

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 08:26:49 PM
 The files you need to have left unchanged were (as I mentioned to you via PM) Settings.php and Settings_bak.php...amongst other settings these contain the settings that allow the files to interact with your database...did you preserve these two files unchanged?

If you failed to do so then all may not be lost...repair_settings.php can get you out of that problem but preserving the files as instructed is a preferred solution:

http://www.simplemachines.org/download/?tools (http://www.simplemachines.org/download/?tools)
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 08:29:35 PM
yes the 2 files were not touched.  unchanged and attachments
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 08:32:55 PM
When you did your "complete uninstall" might this have lost the database? If so then use the file I mentioned in my last posting to connect to a new one.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 08:55:26 PM
i'm sorry i don't know how to connect to a new database. i downloaded the file and it means nothing.  thanks for your help.

when i did the reinstall on my personal site again and reinstall the mod, the words are now gone. i dont know what could be the problem, other than me not really understand everything i'm doing.  thank you anyway for trying.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 09:00:56 PM
i appreciate all your help and your endurance.  you were great, we are just on two different levels and i don't quiet understand everything, but thank you so much!!!
Title: Re: SMF User Email System
Post by: TrueSatan on July 29, 2007, 09:05:47 PM
Don't worry...patience and any involvement in support are hand in glove.

I suggested that file as you had said:

QuoteSorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

If it were a permanent failure to connect that file might have helped fix it...it is used by putting it into the forum root then visiting the file using your browser...the last posting you made suggests that you can now connect so it isn't needed.

Check the language in server settings again...other than that I may need to have access to your forum to sort this out.
Title: Re: SMF User Email System
Post by: naturalwoman on July 29, 2007, 09:16:43 PM
it doesn't appear to be permanent because i uninstalled the "test" forum and reinstalled it and it works there fine.  not getting the "test" backup to upload properly is another story.

i don't want to reinstall the other forum that i really want to keep unless i know what i'm doing and i guess you can see from my posts, i dont.  i can give you access,
Title: Re: SMF User Email System
Post by: naturalwoman on July 30, 2007, 12:05:15 AM
everytime i log in i have to go to ACP, server settings and move it off english to e-utf8 - save it. then go back to ACP, server settings and set it back to english before i can see the words on the email form..

the setting is not holding, will contact my hosting company. if it holds it works fine.
Title: Re: SMF User Email System
Post by: naturalwoman on July 30, 2007, 12:50:09 AM
i just went ahead and uninstalled the forum. found how to save a back up of my data base, prayed and prayed again and i think i'm okay. didn't want to install, but who knew what else would not work. 

it appears to be working. thank you so much.  i'll be glad to donate in your honor for being such a great support staff.
Title: Re: SMF User Email System
Post by: TrueSatan on July 30, 2007, 06:26:42 AM
Thanks! Any donations to SMF are always much appreciated.

I've investigated your main site at great length and am completely sure that your files aren't to blame...the issues you have been having are down to bad hosting and only that...despite the files being exactly as they should be something horrible in the host configuration won't let one file call information from another (CHMOD is all as it should be...just to save anyone mentioning it.) The only advice I can give is to pray some more and ask them to put it right...my experience says that this will be futile as any host who has configuration that bad won't know enough or care enough to fix it...or change to a better host.

I'm always unhappy when a problem is left less than fully resolved but on this occasion unless the hosting can be put right there's nothing else we can do. Good luck!
Title: Re: SMF User Email System
Post by: naturalwoman on July 30, 2007, 10:33:41 AM
okay this is crazy. on my personal site, the settings stay

on the site with the active forum, the settings don't stay. i have to go to ACP, server settings.&nbsp; they are both on the same server.&nbsp; maybe it's ths computer i'm working on now, it's crappy and i'm not home, but my personal site seems to be in tact, but the other one has "holding" issues.

should i remove all other forums except the main one if it appears a problem with the hosting company not letting more than one forum access a particular file

also since the first database seems to hold, where my personal site is, what if i create the database 1st for the 2nd site and rename it with a 1 instead of 2, since the 1st database seems to hold.&nbsp; make sense?\


Quotesomething horrible in the host configuration won't let one file call information from another
i can contact them and ask them to change it, but i'm not sure what i should be asking.  what file won't do this?  the CHMOD file?
Title: Re: SMF User Email System
Post by: TrueSatan on July 30, 2007, 12:16:16 PM
I've dug as deeply into the site as I can and still I can't spot what the cause behind the problem might be...symptoms are very obvious but causes well hidden.

Your own machine has no relevance to these issues...they are all server related. It appears that the site is having trouble reliable writing to its database and to its files even though all settings are as they should be and it can sometimes undertake tasks properly...

The only way I would consider handling this if I were the server admin would be to move your sites to new hardware and a different server software installation then rebuild your existing server software from whatever master they use. Getting them to do this might not be easy.

I would think of the mix and match you have suggested as a waste of time without fixing the underlying problem...and there should be no problem at all in handling more than one forum.

BTW I note that their hosting claims are something of a joke...overselling gone mad...unlimited this that and the other. Those claims should tell you that they aren't a good choice.

Given that we are very off topic now perhaps we had best close the discussion here...you are welcome to PM me and continue it that way.
Title: Re: SMF User Email System
Post by: naturalwoman on July 30, 2007, 12:22:59 PM
will send pm, thanks.
Title: Re: SMF User Email System
Post by: naturalwoman on August 02, 2007, 09:49:03 AM
okay one last post. i found out why the settings were not holding.  i don't know if this should make any difference, but this is the reason why......

i have several add on domains in addition to my main domain, so the settings for the add on domain would always be lost when i log out of the forum, so i said, let me install a smf forum on the main domain and see if the settings hold. viola!  they did.  so now i'm going to swap my add on domain with my main domain so that the features i need in the forum will hold.  just in case any one else has this problem this is what worked for me.  so i will keep my hosting company, as i have never had a problem or down time with them.  thanks true satan for all your help.
Title: Re: SMF User Email System
Post by: jido on August 31, 2007, 12:46:39 PM
When I try to send an e-mail it fails (an error has occurred!) and I see that in the logs:

8: Undefined index: user_email_title
File: /home/d/denis/smf/Sources/User_Email.php
Line: 134

SMF 1.1.3  useremail 1.2

Thanks!
Title: Re: SMF User Email System
Post by: jido on August 31, 2007, 01:52:16 PM
OK I switched to the default theme and the error is more explicit:

QuoteAn Error Has Occurred!
You can not send email.

Then I went to Permissions. And I understood: there is now a new option, "Send User Email". I was checking "Send a forum email to members" earlier because the other option did not show up.

I think the bottom line is, This mod does not really work with themes (using orange-lt). Sad.
Title: Re: SMF User Email System
Post by: jido on August 31, 2007, 04:36:08 PM
Finally I edited by hand Modifications.english.php as suggested here, and the form seems to work. I also did this change in User_Email.php:

//Send email to member
$hostname = ereg_replace('^(www\.|forum\.|forums\.)', "", $_SERVER['HTTP_HOST']);
sendmail($rec_email, $subject, $m, 'do-not-reply@'.$hostname);


The Reply-To address is changed to do-not-reply@hostname, so when the recipient replies to the message it goes to that address.
Title: Re: SMF User Email System
Post by: kjevans on September 08, 2007, 11:32:49 AM
Simply excellent.

many thanks.
Title: Re: SMF User Email System
Post by: ohioreef on September 26, 2007, 07:57:03 PM
Is there anyway to make the form attach the sender's email address as the "reply to" rather than defaulting to the site admin email address?

A lot of people are using the form on my site, but unfortunately people are just clicking reply and I end getting the replies which I then have to forward to the original sender.
Title: Re: SMF User Email System
Post by: lhb on September 28, 2007, 08:21:25 PM
Quote from: ohioreef on September 26, 2007, 07:57:03 PM
Is there anyway to make the form attach the sender's email address as the "reply to" rather than defaulting to the site admin email address?

A lot of people are using the form on my site, but unfortunately people are just clicking reply and I end getting the replies which I then have to forward to the original sender.
I agree.  The email should have the reply to: come from the original senders email address if possible.  If the origianl sender is wanting to contact a member via email, then they should be prepered to give up their address as well.  This keeps the email between members.

Just my .02
Title: Re: SMF User Email System
Post by: vbgamer45 on September 28, 2007, 08:48:36 PM
Add it to my feature request list
http://www.smfhacks.com/index.php?action=modtracker
Title: Re: SMF User Email System
Post by: ohioreef on September 28, 2007, 09:17:38 PM
I sent a request at the link you provided.
Title: Re: SMF User Email System
Post by: vbgamer45 on September 28, 2007, 09:25:01 PM
Thanks helps me manage requests better.
Title: Re: SMF User Email System
Post by: shen on September 29, 2007, 06:36:54 PM
I just tried this mod with SMF 1.1.4 fresh install and it did not work. I says it does but I have not been able to make it work at all on two different hosts and domains.
Title: Re: SMF User Email System
Post by: wicked1 on October 02, 2007, 02:28:33 AM
I also tried to install it. it appears to install properly, but the email form shows up blank  (it doesnt say "recipient, subject, body") and the submit box is just gray--no words on it.
Once the email gets sent, the text is jumbled so it doesnt even resemble a normal email

I mean: when you check your inbox, it says the sender is the forum's email address and the subject line doesnt say anything to hint that its from a forum you signed up to lol its just whatever the user put in there (which means it could end up in spam/trash)

Then once you open the email, it says simply:
Quote[recipientsname][sendersname][forumsname][forumsemailaddy]

[body]

Example:
Quotesmfuser12AdminSMF Fan [email protected]

just testing!

I am using 1.1.4 and I've tried both through the package installer and manually installing it. Same results. :(
Title: Re: SMF User Email System
Post by: SactoEric on November 01, 2007, 05:18:25 PM
I started a new site and, even though I got this mod working well enough on my other site running SMF, it's all funky on the new one... I copied over a lot, if not all, of the same edits I made on the first site to the new one, but have one major hangup.... the emails do not go to the user (I got the copy though)! For the life of me I can't find where to change this... help please! :D

**edited to add that I've noticed the captcha characters don't change, while the font & background does...

**edited again to mention that it seems to work w/ SMTP, but not PHP to send mail
Title: Re: SMF User Email System
Post by: DougD on November 15, 2007, 12:17:18 PM
Posted a question on SMFHacks which has gone ignored, as has a PM to the developer of the hack.

Runinng 1.0.12 and the installed hack (also done manually) generates a missing CATCHA image, thus not allowing an email to be sent.  The code in the user_email.php seems to be the problem, it's forcing to the 1.1 selections.

I love the mod and want to use it, but can't.
Title: Re: SMF User Email System
Post by: vbgamer45 on November 16, 2007, 12:45:12 AM
Correct haven't test the verification code with SMF 1.0.x and more than likely the checks would need to be removed for the older version of SMF.
Title: Re: SMF User Email System
Post by: DougD on November 16, 2007, 07:52:48 AM
Quote from: vbgamer45 on November 16, 2007, 12:45:12 AM
Correct haven't test the verification code with SMF 1.0.x and more than likely the checks would need to be removed for the older version of SMF.

I'd just as happily go without the verification if you could identify what to remove.
Title: Re: SMF User Email System
Post by: izar on December 18, 2007, 10:02:23 AM
Quote from: DougD on November 16, 2007, 07:52:48 AM
Quote from: vbgamer45 on November 16, 2007, 12:45:12 AM
Correct haven't test the verification code with SMF 1.0.x and more than likely the checks would need to be removed for the older version of SMF.

I'd just as happily go without the verification if you could identify what to remove.

I think I have the same problem. Im using Captcha (Advanced Visual Verification) and when I try to send the E-mail, Its says that the image doesn't match

Any help or fix?
Title: Re: SMF User Email System
Post by: jhealis on December 18, 2007, 06:35:51 PM
I've installed v 1.2 on 1.1.4 and I am not seeing the visual verification (I even checked in the default theme) yet the system says them email was sent.  The error log shows no problems, but the emails never arrive at their destination.
Forum emails, such as announcements, work just fine.

Any ideas?
Title: Re: SMF User Email System
Post by: vbgamer45 on February 04, 2008, 10:09:03 PM
Released an update that now when a message is to sent someone it shows the sender email address. So when they reply it goes to the sender and not the webmaster.
Title: Re: SMF User Email System
Post by: DougD on February 05, 2008, 08:49:54 AM
Quote from: vbgamer45 on February 04, 2008, 10:09:03 PM
Released an update that now when a message is to sent someone it shows the sender email address. So when they reply it goes to the sender and not the webmaster.


That's nice, but how about addressing the CAPTCHA issue?
Title: Re: SMF User Email System
Post by: CoNTeCAuTR on February 05, 2008, 09:03:45 AM
Very Good.. Thanks..
Title: Re: SMF User Email System
Post by: Randy A. on February 16, 2008, 12:46:28 AM
I'm having a very hard time getting this MOD to work with a new theme - Visions MC (1.1) http://custom.simplemachines.org/themes/index.php?lemma=519.  I tried the Parser (http://sleepycode.com/PackageParser/index.php) but still no luck. 

Both on the member list and the profile, the email addresses still view and the email button that is supposed to show is not showing.

I have it installed on my default and it works great.

Any ideas?
Title: Re: SMF User Email System
Post by: N3RVE on February 16, 2008, 09:02:23 AM
This is lovely and it installed smoothly on defualt SMF theme.
Vbgamers, Yoi're the man for the feature . . .
;)
Title: Re: SMF User Email System
Post by: samvirtual on February 28, 2008, 10:04:55 PM
I installed it fine. but i had a serious issue with captcha. I have advanced smf captcha installed. Captcha image shows up on the email form, but the captcha image is never recognized as valid. visua verification always fails. I think this can be fixed , but how. i have tried but failed.
Title: Re: SMF User Email System
Post by: izar on March 10, 2008, 07:49:39 AM
Any fix or  is planned a new version?
Title: Re: SMF User Email System
Post by: vbgamer45 on March 10, 2008, 07:57:44 PM
Any fix for what?
Title: Re: SMF User Email System
Post by: izar on March 14, 2008, 10:58:28 AM
Quote from: samvirtual on February 28, 2008, 10:04:55 PM
I installed it fine. but i had a serious issue with captcha. I have advanced smf captcha installed. Captcha image shows up on the email form, but the captcha image is never recognized as valid. visua verification always fails. I think this can be fixed , but how. i have tried but failed.

A fix for that issue
Title: Re: SMF User Email System
Post by: kota069 on March 24, 2008, 07:48:44 AM

I'm an idiot -

Never mind.
Title: Re: SMF User Email System
Post by: Manu.G on April 11, 2008, 01:47:52 PM
Hi,

I'm using this mod and it works perfect, but
is it possible to add the User Email System to the Staff page mod?
What changes must be done for it?

Thanks in advance for your help.  :)
Title: Re: SMF User Email System
Post by: BobNY on April 16, 2008, 09:17:19 AM
Seems like a great mod but only works for Administrator.  I've been told to check "send user email" option but I've been unable to locate that option anywhere.  Am I missing something?  Where is it located?
Title: Re: SMF User Email System
Post by: vbgamer45 on April 16, 2008, 10:37:34 PM
Check under Admin -> Permissions

You need to allow each group to send mail.
Title: Re: SMF User Email System
Post by: MissyNL on April 27, 2008, 12:30:30 PM
hello,

I really like this mod :) However.. when i tried to install i got the message

Voer aanpassing uit     ./Themes/default/languages/Modifications.english.php     Test mislukt
2.    Voer aanpassing uit    ./Themes/default/languages/Who.english.php    Succes
3.    Voer aanpassing uit    ./index.php    Succes
4.    Voer aanpassing uit    ./Sources/ManagePermissions.php    Succes
5.    Voer aanpassing uit    ./Themes/default/Display.template.php    Succes
6.    Voer aanpassing uit    ./Themes/default/Memberlist.template.php    Succes
7.    Voer aanpassing uit    ./Themes/default/PersonalMessage.template.php    Succes
8.    Voer aanpassing uit    ./Themes/default/Profile.template.php    Succes
9.    Uitpakken Bestand    ./Themes/default/images/user_email.gif    
10.    Uitpakken Bestand    ./Themes/default/User_Email.template.php    
11.    Uitpakken Bestand    ./Sources/User_Email.php    

Do you have a solution?

I have a lot of mods installed
1.     Ultimate Profile      0.8   
2.    Custom Profile Field Mod    3.17    
3.    Profile Comments    1.3.6    
4.    TinyPortal    0.983    
5.    Temporary fix    0.5    
6.    Load Standard Language    1.0.1    
7.    Language File Compare    1.0.1    
8.    Signature Dropdown Choices    1.0    
9.    SMF 1.1.4 Search "brd" Bug Fix (1.0.1)    1.0.1    
10.    Enhanced Quick Reply Box 2.0.2    2.0.2    
11.    User Control Panel By Alan S    2.0    
12.    Force Reason for Deletion    1.0    
13.    Separated Birthdays from Events    1.0    
14.    Registration - Show Gender mod    1.0.0    
15.    YouTube BBCode    2.3    
16.    Todays Birthday    0.1    
17.    FontandSizeDropdown_1.2    1.3    
18.    Topic starter    1.4    
19.    Todays Birthday for TP    1.0    
20.    Stars And Badges    1.0    
21.    Auto Embed Video Clips    2.1.5    
22.    FlashChat Integration    1.0    
23.    SMF Arcade    2.0.12    
24.    Ad Managment    2.3    
25.    delete inactive users    1.0.3    
26.    Admin member list registration date    1.0    
27.    Admin Notepad    1.0

Bey Bey
Title: Re: SMF User Email System
Post by: vbgamer45 on April 27, 2008, 12:36:02 PM
Solution open Modifications.english.php
find
?>

Change to


?>
Title: Re: SMF User Email System
Post by: MissyNL on April 27, 2008, 01:12:14 PM
Wow.. so simple :D  Thanks.. it works great!
Title: Re: SMF User Email System
Post by: MissyNL on April 27, 2008, 01:45:05 PM
Hi There.. i have the dutch translation for you :D

// Begin User Email System Text Strings
$txt['user_email_title'] = 'Gebruiker Email Systeem';
$txt['permissionname_send_useremail'] = 'Verzend member een e-mail';
$txt['permissionhelp_send_useremail'] = 'Check of het is toegestaan dat de gebruiker een e-mail verstuurd';
$txt['cannot_send_useremail'] = 'Je mag geen e-mail verzenden.';

$txt['user_email_sendtitle'] = 'Verzend een e-mail bericht.';
$txt['user_email_recipient'] = 'Ontvanger';
$txt['user_email_youremail'] = 'Jouw e-mailadres';
$txt['user_email_subject'] = 'Onderwerp';
$txt['user_email_body'] = 'Tekst box';
$txt['user_email_options'] = 'Opties';
$txt['user_email_sendcopy'] = 'Verzend een kopie van het e-mail bericht naar jezelf';
$txt['user_email_sendemail'] = 'Verzend e-mail';
$txt['user_email_emailsent'] = 'Jouw e-mail bericht is verzonden.';
$txt['user_email_emailreturn'] = 'Jouw e-mail bericht is verzonden! Klik <a href="' . $scripturl . '">hier</a> om terug te keren naar het Board.';
$txt['user_email_errsubject'] = 'Je moet een onderwerp invoeren.';
$txt['user_email_errmessage'] = 'Je moet een bericht invoeren.';
$txt['user_email_errnouser'] = 'Er is geen member geselecteerd.';
$txt['user_email_errnousersend'] = 'Deze gebruiker heeft zijn e-mail adres verborgen, dus kan je de member niet e-mailen.';
$txt['user_email_errnoemail'] = 'Jouw e-mail adres is verplicht.';
$txt['user_email_err_invalidemail'] = 'Jouw Your email address is not valid. Check your input.';
$txt['user_email_hello'] = ' "Hallo " ';
$txt['user_email_emailsentby'] = 'Het volgende is een e-mail verstuurd naar jouw door';
$txt['user_email_viaaccount'] = ' via jouw profiel op ';
$txt['user_email_ifmsgspam'] = ' . Als dit bericht spam is, het aggresieve materiaal of andere bezwaarlijke elementen of commentaar bevat die jij verwerpelijk vindt, contact dan alstjeblieft de beheerder van het forum op ';
$txt['user_email_msgsentas'] = 'Bericht naar jouw verzonden volgt';
$txt['user_email_emailsent'] = ' - E-mail verzonden.';
$txt['user_email_guest'] = 'Gast';


// END Begin User Email System Text Strings         


// Begin User Email System Text Strings
$txt['whoall_useremail'] = 'Is een member een e-mail aan het versturen. ';
// END User Email System Strings         

I also believe that you miss some ' at the hello string in the english version :D I could be wrong..
Title: Re: SMF User Email System
Post by: MissyNL on April 29, 2008, 02:48:54 PM
Hello,

in the docs states that if i want the link removed i have to contact you for  purchase copyright removal. How much does it cost?
Title: Re: SMF User Email System
Post by: vbgamer45 on April 29, 2008, 07:55:04 PM
Copyright removal
http://www.smfhacks.com/copyright_removal.php
Title: Re: SMF User Email System
Post by: MissyNL on May 14, 2008, 09:22:50 AM
hai!

I got the e-mail that some of the e-mail adres are behind the button, but some or not.. i have checked and loged in with an test account with no rights, and indeed.. some of the e-mail adresses are still visable on there profile..
(not in thememberlist) Can you help me please?
Title: Re: SMF User Email System
Post by: MissyNL on May 27, 2008, 12:34:43 PM
Can i Please receive a reply? I have bought this mod.. but it now doesnt work.. everyone is now hidding there e-mail adres.. :(
Title: Re: SMF User Email System
Post by: vbgamer45 on May 27, 2008, 08:10:59 PM
Only works on the custom theme and does not chnage all mods.

Admin's can still see the mods
Title: Re: SMF User Email System
Post by: MissyNL on May 28, 2008, 03:38:52 PM
i have the custom theme installed.. it only not functions on the profile page.. on the memberlist it still does
Title: Re: SMF User Email System
Post by: vbgamer45 on May 28, 2008, 11:37:19 PM
Then for the custom theme the mod edits will need to be applied to the profile template of that theme
Title: Re: SMF User Email System
Post by: MissyNL on May 30, 2008, 11:29:34 AM
I'm sorry.. but i do not understand you.. i need to edit the mod?
Title: Re: SMF User Email System
Post by: vbgamer45 on May 30, 2008, 06:16:29 PM
No you need to edit the template files of your custom theme where it is still showing the email address.
Title: Re: SMF User Email System
Post by: MissyNL on May 31, 2008, 05:11:03 AM
First of all.. i have the default theme.. The e-mail adress is showing on the profiles of the members.. I also have ultimate profile installed...

What do i have to change / edit and what file so that it works?  the profile.php ?
Title: Re: SMF User Email System
Post by: MissyNL on July 18, 2008, 10:45:59 AM
sorry.. but can you help me please? now a lot of members has hidden there e-mail adress.. and it would be nice if the form worked :)
Title: Re: SMF User Email System
Post by: N3RVE on July 18, 2008, 10:56:03 AM
Lafemme,
Most modifications make changes to the default theme's template files. If themes do not have a certain template file required by SMF, it automatically rolls back and uses the default. In cases where a theme has it's own template file, the mod will modify only the default; you will have to manually make changes to your theme's files to work with the mod. Mods will automatically install on themes you want them to in SMF 2.0 which is still in Beta.

In this case,  the Profile.template.php file needs to be edited which is usually found in the theme's dir. On this mod's page (http://custom.simplemachines.org/mods/index.php?mod=371), select your SMF version and parse the mod to find the required modifications.

-[n3rve]
Title: Re: SMF User Email System
Post by: MissyNL on August 14, 2008, 09:38:21 PM
oke.. i have found the solution for my problem.. I the mod did not install for Ultimate profile..

so what i did was...

In file UltimateProfile.template.php page

Find:

if ($context['member']['email_public'])
echo '
<a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a>';


replace with:

if ($context['member']['email_public'])
echo '
<a href="' . $scripturl . '?action=useremail;u=' . $context['member']['id'] . '"><img src="' . $settings['images_url'] . '/user_email.gif" alt="' . $txt[69] . '" /></a>';


and it now works great :)
Title: Re: SMF User Email System
Post by: Marcus Forsberg on August 30, 2008, 04:41:56 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: SMF User Email System
Post by: vbgamer45 on August 30, 2008, 12:59:57 PM
It is built into SMF 2.0
Title: Re: SMF User Email System
Post by: Marcus Forsberg on August 30, 2008, 01:04:23 PM
Ye, I noticed that as I tried 2.0 out
Title: Re: SMF User Email System
Post by: MissyNL on September 22, 2008, 05:46:34 PM
Hi,

My visual verification seems to be gone....

(http://i35.tinypic.com/xc42ms.jpg)

Do you know what could be wrong?

Title: Re: SMF User Email System
Post by: vbgamer45 on September 22, 2008, 07:54:06 PM
Any errors in your forum error log?

Does work when you try to register on the forum?
Title: Re: SMF User Email System
Post by: MissyNL on September 23, 2008, 07:21:15 AM
yes.. there are errors... but not related to the mail system...

I also do not see the visual verification on registration..
Title: Re: SMF User Email System
Post by: vbgamer45 on September 23, 2008, 08:06:14 PM
I would post in support forum since that is more of an SMF issue. Might be you don't have gd installed or something messed up the image.
Title: Re: SMF User Email System
Post by: MissyNL on October 01, 2008, 02:10:40 PM
thanks.. it seems that one other person also have this problem.. http://www.simplemachines.org/community/index.php?topic=263220.0
Title: Re: SMF User Email System
Post by: Garou on October 11, 2008, 01:59:29 PM
I was working this mod into the wowdk theme and for the most part it works however on the page where you actually send an email the description text is missing. At first I thought it was due to the black background but it doesn't even show up when trying to highlight it for copying to the clipboard. Its just disappeared and so far I cant find where to fix it.

This is the text missing on the page.
QuoteSend an e-mail message
Recipient
Subject    
Message body

Oddly enough the CAPTCHA descriptions/instructions  are there in white text which fits the theme.

Any suggestions?
Title: Re: SMF User Email System
Post by: genieuk on October 11, 2008, 02:08:31 PM
Excellent Mod,

Works Like a charm on my SMF 1.1.6 forum,

Thank you, I was concerned about people seeing email and spammers etc but now no worries.

:)

Mathew
Title: Re: SMF User Email System
Post by: vbgamer45 on October 11, 2008, 02:53:04 PM
Quote from: Garou on October 11, 2008, 01:59:29 PM
I was working this mod into the wowdk theme and for the most part it works however on the page where you actually send an email the description text is missing. At first I thought it was due to the black background but it doesn't even show up when trying to highlight it for copying to the clipboard. Its just disappeared and so far I cant find where to fix it.

This is the text missing on the page.
QuoteSend an e-mail message
Recipient
Subject    
Message body

Oddly enough the CAPTCHA descriptions/instructions  are there in white text which fits the theme.

Any suggestions?
Check your language settings under Admin -> Settings. Should be to English and not english utf8

Copy the text from themes/default/languages.modifications.english.php
To
themes/yourtheme/languages.modifications.english.php
Title: Re: SMF User Email System "Visual verification:" picture
Post by: Mr_Lon on October 21, 2008, 08:12:03 PM
I have had this running for a while but lost the "Visual verification:" Picture?
I did update from SMF1.1.5 to SMF1.1.6? I did uninstall "User Email" then downloaded it again and reinstalled it with no results ???
Oh Yes I'm using the "default" theme.

We can't send any email because we can't put in the Visual verification Numbers. Can the "Visual verification" be turned off? I'm just asking this question but still would like the Visual verification Picture to work again.

Title: Re: SMF User Email System
Post by: vbgamer45 on October 21, 2008, 08:21:29 PM
Do you have visual verification turned on registration? If so does it work there?
Title: Re: SMF User Email System
Post by: Mr_Lon on October 21, 2008, 08:58:38 PM
Yes it is turned on and I just logged in as a new member and no Varification picture showed up there also?
Title: Re: SMF User Email System
Post by: vbgamer45 on October 21, 2008, 09:04:54 PM
Do you have a link to the page?
Title: Re: SMF User Email System
Post by: Mr_Lon on October 21, 2008, 09:09:36 PM
What page do you need?
Title: Re: SMF User Email System
Post by: vbgamer45 on October 21, 2008, 09:12:05 PM
Link the registration page with visual verification turned on what to see if i can see an error.
Title: Re: SMF User Email System
Post by: vbgamer45 on October 21, 2008, 09:16:40 PM
Yeah it hangs on the image
http://74.220.202.35/~greathid/forum/index.php?action=verificationcode;rand=aa69a55898eebffb8c606c980556106c
I would post in the support forums. Could an issue with permissions, GD or something else
Title: Re: SMF User Email System
Post by: Mr_Lon on October 21, 2008, 09:18:44 PM
Thanks I'll give that a try.
Title: Re: SMF User Email System
Post by: nay27uk on November 05, 2008, 06:56:17 AM
please could you tell me how and wher you made the button that says email user
Title: Re: SMF User Email System
Post by: vbgamer45 on November 05, 2008, 09:38:48 PM
I used a button generator for SMF forget the site though.
Title: Re: SMF User Email System
Post by: TechPrince on December 06, 2008, 09:11:21 PM
Quote from: nay27uk on November 05, 2008, 06:56:17 AM
please could you tell me how and wher you made the button that says email user

Photoshop / Gimp
Title: Re: SMF User Email System
Post by: Apllicmz on January 02, 2009, 08:04:34 PM
when update mod plaese update portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin User Email System Text Strings portuguese by Candidosa2 Suporte By Joomlamz
$txt['user_email_title'] = 'Utilizador sistema de e-mail';
$txt['permissionname_send_useremail'] = 'Enviar e-mail para utilizador';
$txt['permissionhelp_send_useremail'] = 'Veja se o utilizador esta autorizado a enviar e-mail.';
$txt['cannot_send_useremail'] = 'Voc&ecirc; n&atilde;o pode enviar e-mail.';

$txt['user_email_sendtitle'] = 'Enviar uma mensagem de e-mail';
$txt['user_email_recipient'] = 'Recipient';
$txt['user_email_youremail'] = 'Seu e-mail';
$txt['user_email_subject'] = 'Assunto';
$txt['user_email_body'] = 'Corpo da Messagem';
$txt['user_email_options'] = 'Op&ccedil;&otilde;es';
$txt['user_email_sendcopy'] = 'Envie uma cópia deste e-mail para mi mesmo';
$txt['user_email_sendemail'] = 'Enviar e-mail';
$txt['user_email_emailsent'] = 'Seu e-mail foi enviado!';
$txt['user_email_emailreturn'] = 'Seu e-mail foi enviado! Clique <a href="' . $scripturl . '">Aqui</a> para retornar para o quadro.';
$txt['user_email_errsubject'] = 'Voc&ecirc; precisa digitar um assunto.';
$txt['user_email_errmessage'] = 'Voc&ecirc; precisa digitar uma mensagem.';
$txt['user_email_errnouser'] = 'Nenhum membro selecionado.';
$txt['user_email_errnousersend'] = 'Esse membro tem  seus e-mails escondido e voc&ecirc; n&atilde;o pode envi&aacute;-las.';
$txt['user_email_errnoemail'] = 'Seu endere&ccedil;o de email &eacute; necessario.';
$txt['user_email_err_invalidemail'] = 'Seu endere&ccedil;o de email n&atilde;o &eacute; v&aacute;lido. Verifique se o seu contributo.';
$txt['user_email_hello'] = "Ol&aacute; ";
$txt['user_email_emailsentby'] = ',

The following is an email sent to you by ';
$txt['user_email_viaaccount'] = ' atrav&eacute;s de sua conta em ';
$txt['user_email_ifmsgspam'] = ' . Se esta mensagem &eacute; spam, cont&eacute;m abusivo ou outros coment&aacute;rios que achar ofensivos por favor contacte o webmaster do quadro, no seguinte endere&ccedil;o ';
$txt['user_email_msgsentas'] = 'Mensagem enviada para voc&ecirc; seguiu';
$txt['user_email_emailsent'] = ' - E-mail enviado.';
$txt['user_email_guest'] = 'Visitante';


// END Begin User Email System Text Strings       
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin User Email System Text Strings portuguese by Candidosa2 Suporte By Joomlamz
$txt['user_email_title'] = 'Utilizador sistema de e-mail';
$txt['permissionname_send_useremail'] = 'Enviar e-mail para utilizador';
$txt['permissionhelp_send_useremail'] = 'Veja se o utilizador esta autorizado a enviar e-mail.';
$txt['cannot_send_useremail'] = 'Voc&ecirc; n&atilde;o pode enviar e-mail.';

$txt['user_email_sendtitle'] = 'Enviar uma mensagem de e-mail';
$txt['user_email_recipient'] = 'Receptor';
$txt['user_email_youremail'] = 'Seu e-mail';
$txt['user_email_subject'] = 'Assunto';
$txt['user_email_body'] = 'Corpo da Messagem';
$txt['user_email_options'] = 'Op&ccedil;&otilde;es';
$txt['user_email_sendcopy'] = 'Envie uma cópia deste e-mail para mi mesmo';
$txt['user_email_sendemail'] = 'Enviar e-mail';
$txt['user_email_emailsent'] = 'Seu e-mail foi enviado!';
$txt['user_email_emailreturn'] = 'Seu e-mail foi enviado! Clique <a href="' . $scripturl . '">Aqui</a> para retornar para o quadro.';
$txt['user_email_errsubject'] = 'Voc&ecirc; precisa digitar um assunto.';
$txt['user_email_errmessage'] = 'Voc&ecirc; precisa digitar uma mensagem.';
$txt['user_email_errnouser'] = 'Nenhum membro selecionado.';
$txt['user_email_errnousersend'] = 'Esse membro tem  seus e-mails escondido e voc&ecirc; n&atilde;o pode envi&aacute;-las.';
$txt['user_email_errnoemail'] = 'Seu endere&ccedil;o de email &eacute; necessario.';
$txt['user_email_err_invalidemail'] = 'Seu endere&ccedil;o de email n&atilde;o &eacute; v&aacute;lido. Verifique se o seu contributo.';
$txt['user_email_hello'] = "Ol&aacute; ";
$txt['user_email_emailsentby'] = ',

The following is an email sent to you by ';
$txt['user_email_viaaccount'] = ' atrav&eacute;s de sua conta em ';
$txt['user_email_ifmsgspam'] = ' . Se esta mensagem &eacute; spam, cont&eacute;m abusivo ou outros coment&aacute;rios que achar ofensivos por favor contacte o webmaster do quadro, no seguinte endere&ccedil;o ';
$txt['user_email_msgsentas'] = 'Mensagem enviada para voc&ecirc; seguiu';
$txt['user_email_emailsent'] = ' - E-mail enviado.';
$txt['user_email_guest'] = 'Visitante';


// END Begin User Email System Text Strings   


<file name="$languagedir/Who.portuguese_pt.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
//Begin User Email System Text Strings
$txt['whoall_useremail'] = 'Escrever um e-mail a um membro .';
//END User Email System Strings           
]]></add>
    </operation>
</file>
Title: Re: SMF User Email System
Post by: bashconsole on March 31, 2009, 12:36:02 PM
Hello!

I have a problem with this mod - i can see email address under icon on message posts. Again: Yes, I can see email-form in user datails and user list. But there is mailto link under email icon on any message post at the left and I can see email of any other member in forum when I logged in as a member.

Can somebody help to solve the problem?
Title: Re: SMF User Email System
Post by: vbgamer45 on March 31, 2009, 01:48:46 PM
Is it a custom theme under than the default theme?
Title: Re: SMF User Email System
Post by: bashconsole on March 31, 2009, 02:09:08 PM

yes, custom theme.
Title: Re: SMF User Email System
Post by: vbgamer45 on March 31, 2009, 03:50:11 PM
Then the edits would also be needed to the theme files as well check the modsite with the installer it tells you what theme files were edited.
Title: Re: SMF User Email System
Post by: ohioreef on April 20, 2009, 06:02:27 PM
 have version 1.1.3 of this mod. If I want to update to this version do I have to uninstall the prior version or do I just install over top it?

Title: Re: SMF User Email System
Post by: vbgamer45 on April 20, 2009, 07:46:49 PM
Yes you would have to uninstall the old version first.
Title: Re: SMF User Email System
Post by: ohioreef on April 20, 2009, 08:06:28 PM
Quote from: vbgamer45 on April 20, 2009, 07:46:49 PM
Yes you would have to uninstall the old version first.

Ok, I tried that and it told me that it could not uninstall because the mod creator did not include an uninstall file. (or something to that effect)
Title: Re: SMF User Email System
Post by: Chas Large on May 13, 2009, 02:17:54 PM
Hi VBgamer,

Just want to say thank you for this great mod. I answered a lot of issues from my members about hiding their addresses.

Just one question I couldn't see the answer to in all the previous posts. The sending e-mail address is the admin one. Is there a place I can change this to another address without having to change the admin address.

Many thanks and great work.

Chas
Title: Re: SMF User Email System
Post by: vbgamer45 on May 14, 2009, 11:46:25 AM
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
Title: Re: SMF User Email System
Post by: Chas Large on May 14, 2009, 01:22:29 PM
Thanks,

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

Cheers

Chas.
Title: Re: SMF User Email System
Post by: Chas Large on May 23, 2009, 10:33:26 AM
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.

Title: Re: SMF User Email System
Post by: vbgamer45 on May 23, 2009, 10:36:56 AM
Don't plan for SMF 2.0 since it is already built into SMF 2.0
Title: Re: SMF User Email System
Post by: Chas Large on May 23, 2009, 03:17:45 PM
Doh - Yes you can call me a dork, I never checked. Sorry.  ::)
Title: Re: SMF User Email System
Post by: searchgr on June 20, 2009, 06:02:15 AM
This mod does not support the greek characters.
Title: Re: SMF User Email System
Post by: [Core] on June 20, 2009, 09:02:18 AM
Nice mod.
Title: Re: SMF User Email System
Post by: searchgr on July 13, 2009, 05:13:46 PM
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?
Title: Re: SMF User Email System
Post by: searchgr on July 17, 2009, 11:37:01 AM
Tried to unistall and have the following error:

   Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
Title: Re: SMF User Email System
Post by: vbgamer45 on July 17, 2009, 04:01:25 PM
You can ignore that error.
Title: Re: SMF User Email System
Post by: bbmtalk on August 30, 2009, 10:15:06 AM
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?

(http://i41.photobucket.com/albums/e266/ethanwow/email.jpg)

/// 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!!
Title: Re: SMF User Email System
Post by: ChaosEnergy on August 31, 2009, 10:58:11 AM
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
Title: Re: SMF User Email System
Post by: Angie on Dialysis on November 22, 2009, 02:19:28 AM
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!
Title: Re: SMF User Email System
Post by: Shorti25 on December 12, 2009, 08:32:49 PM
 :-[ waiting for the smf2.0 version - we need it
Title: Re: SMF User Email System
Post by: vbgamer45 on December 12, 2009, 10:00:36 PM
No SMF 2.0 is version it is built into SMF 2.0....
Title: Re: SMF User Email System
Post by: Shadowwolf_tw on April 24, 2010, 06:48:15 PM
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>
Title: Re: SMF User Email System
Post by: snyperthugs on January 25, 2011, 04:48:40 PM
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
Title: Re: SMF User Email System
Post by: vbgamer45 on January 25, 2011, 04:49:57 PM
copy the text from modifications.english.php to modificatoins.yourlanguage.php
Title: Re: SMF User Email System
Post by: snyperthugs on January 25, 2011, 04:59:16 PM
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
Title: Re: SMF User Email System
Post by: vbgamer45 on January 25, 2011, 05:10:28 PM
Glad you got it working.
Title: Re: SMF User Email System
Post by: Biology Forums on July 16, 2013, 11:41:44 PM
Want to point out some incorrect text strings:

$txt['user_email_emailsent'] is mentioned twice in modifications.english.php.
Title: Re: SMF User Email System
Post by: vbgamer45 on July 17, 2013, 12:02:41 AM
Thanks older mod though likely to be updated unless major bugs.
Title: Re: SMF User Email System
Post by: Biology Forums on July 17, 2013, 06:07:29 PM
Quote from: vbgamer45 on July 17, 2013, 12:02:41 AM
Thanks older mod though likely to be updated unless major bugs.

It is somewhat problematic, depends how you look at it. ;)