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
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)
Oh this is great. Thanks allot! ;D 8) ;)
is this only for gmail???
thanks
It's for all emails. Admin's can still see email address in the profile.
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
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.
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
does it mean that emailaddresses not visible anymore?
Correct. Only admin's can see emails in profiles. Everyone else get's an email user button unless person marks email as hidden.
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.
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.
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.
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."
Don't have a filter yet. But it is permission based so you can ban members. IE guests from doing it.
Yes, but a newly registered member can use it for spamming.
Anyway, when it has time limits, that will be an even greater mod :)
how can i email members who havent been on the forum since a specific date?
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.
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
Make sure all the files and folders are writable.
yes..all are writeable..though i will check it once again and will post here..
Nope..the same error:(
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
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?
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... :(
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.
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?
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 :)
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
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 could add support for the CAPTCHA mod or general CAPTCHA once SMF RC3 comes out.
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 :)
That's a little tricker. I would have to create a database table to store when each email is sent and the user id.
I think is ok as it is.Needs a little bit of attention on who and how often sends emails.
Could this MOD be made to support other languages?
Where to translate them now?
Thanks ;)
Maybe, right now you would have to edit the template files the language strings are hardcoded.
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.
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
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 :)
nothing in the profile area as far as emails go. I check marked the email permission and it still does not work
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
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
on here you have useremail.zip file and on your site you have 18useremail.zip are there any differences in them
Not really. The main thing todo is check that every group that you want to send email has permission to do so.
Great mod. Maybe you could tie up with HarzeM about getting it to work with his CAPTCHA mod.
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.
That is a good idea
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
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.
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
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)
Updated mod so it uses the displayname instead of the username.
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
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.. 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.
Fixed.
Added Guest email support as well. Requires a guest to enter their email address.
Oh, not sure what you've done, version 1.1.2 is error free. Thanks! :D
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 :)
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
Added violaceous idea to allow admin's to send mail even if user hides email.
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. :)
I just fixed it about 15 minutes ago. Forgot to include the image heh. Redownload the mod
Thank you! It's all good now. :)
Nice mod...
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
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
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?
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!
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
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
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>';
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.
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.
Thank-You vbgamer45 8)
It is working now I really appreciate the help :D
Doug
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) ?
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 ?
When I get some free time I will do it.
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!
Profile link currently is not in the mod.
Still an excellent mod.
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 ? :)
No language support yet. No CAPTCHA support.
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.
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.
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.
Great mod!
Got it working on my 1.1.1 custom template.
Thanks!
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)
Sources/User_email.php I thought I had that built in the latest release.
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...
GREAT MOD, INSTALLED NICELY ON MY 1.1.1
Had some issues with members getting emails that were sent to other users. Anyone else have this problem?
This mod works perfectly with 1.1.1 and TP .97. Many thanks :D
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!
This is a great mod :D
Many thanks for the quick update to 1.1.2
rotor
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
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.
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?
Probably using a custom theme. Only works on the default theme.
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! :)
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.)
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!
Installed and works flawlessly, very much appreciated! Thanks!
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...
What is 2.0 Alpha?
Scroll down...
QuotePowered by SMF 2.0 Alpha | SMF © 2006–2007, Simple Machines LLC
XHTML | CSS | XML
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!
i am using this mod but it does not hide the email address of the members in the posts. How to do that.
You would need to edit display.template.php by default only works on default theme.
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
Version 1.2 released
+Moved text strings to language file
+Added CAPTCHA support for SMF 1.1.x
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" ?
Built in on 2.0
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
VB gamer I now get a problem! The user email works fine but in users profile it displays the actual email
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.
But this is on the core! What does ipb have to do anything (shadow hates ipb so much!)
Actually I got it to work. I forgot admin were able to see hidden email. :o
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)
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
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.
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.
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.
holy cow it works. thanks so much. i still do have a permission setting it seems like but i'll keep working on that.
;) :) :D ;D
My Pleasure!
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
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.
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
you are right, there is a problem with that. working on it now
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
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
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?
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.
?>
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
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.
oh, sorry didn't quite understand. the corrected files are attached?
thanks for your help.
Yes the corrected files are attached to my last post.
nope. don't work. the form works, but no text. will log in to see if mods can use the form
it works for mods, just no text at all. blank text fields.
Advice given via PM to try to sort this out.
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.
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.)
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.
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.
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. thanks for your help.
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?
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
i was trying to give the moderators permission to send email through this system.
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.
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.
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)
yes the 2 files were not touched. unchanged and attachments
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.
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.
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!!!
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.
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,
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.
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.
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!
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. they are both on the same server. 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. 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?
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.
will send pm, thanks.
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.
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!
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.
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.
Simply excellent.
many thanks.
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.
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
Add it to my feature request list
http://www.smfhacks.com/index.php?action=modtracker
I sent a request at the link you provided.
Thanks helps me manage requests better.
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.
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. :(
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
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.
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.
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.
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?
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?
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.
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?
Very Good.. Thanks..
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?
This is lovely and it installed smoothly on defualt SMF theme.
Vbgamers, Yoi're the man for the feature . . .
;)
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.
Any fix or is planned a new version?
Any fix for what?
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
I'm an idiot -
Never mind.
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. :)
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?
Check under Admin -> Permissions
You need to allow each group to send mail.
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
Solution open Modifications.english.php
find
?>
Change to
?>
Wow.. so simple :D Thanks.. it works great!
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..
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?
Copyright removal
http://www.smfhacks.com/copyright_removal.php
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?
Can i Please receive a reply? I have bought this mod.. but it now doesnt work.. everyone is now hidding there e-mail adres.. :(
Only works on the custom theme and does not chnage all mods.
Admin's can still see the mods
i have the custom theme installed.. it only not functions on the profile page.. on the memberlist it still does
Then for the custom theme the mod edits will need to be applied to the profile template of that theme
I'm sorry.. but i do not understand you.. i need to edit the mod?
No you need to edit the template files of your custom theme where it is still showing the email address.
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 ?
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 :)
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]
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 :)
Will this work whit 2.x?
And if not, will it do in the future?
It is built into SMF 2.0
Ye, I noticed that as I tried 2.0 out
Hi,
My visual verification seems to be gone....
(http://i35.tinypic.com/xc42ms.jpg)
Do you know what could be wrong?
Any errors in your forum error log?
Does work when you try to register on the forum?
yes.. there are errors... but not related to the mail system...
I also do not see the visual verification on registration..
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.
thanks.. it seems that one other person also have this problem.. http://www.simplemachines.org/community/index.php?topic=263220.0
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?
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
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
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.
Do you have visual verification turned on registration? If so does it work there?
Yes it is turned on and I just logged in as a new member and no Varification picture showed up there also?
Do you have a link to the page?
What page do you need?
Link the registration page with visual verification turned on what to see if i can see an error.
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
Thanks I'll give that a try.
please could you tell me how and wher you made the button that says email user
I used a button generator for SMF forget the site though.
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
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ê nã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çõ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ê precisa digitar um assunto.';
$txt['user_email_errmessage'] = 'Você precisa digitar uma mensagem.';
$txt['user_email_errnouser'] = 'Nenhum membro selecionado.';
$txt['user_email_errnousersend'] = 'Esse membro tem seus e-mails escondido e você não pode enviá-las.';
$txt['user_email_errnoemail'] = 'Seu endereço de email é necessario.';
$txt['user_email_err_invalidemail'] = 'Seu endereço de email não é válido. Verifique se o seu contributo.';
$txt['user_email_hello'] = "Olá ";
$txt['user_email_emailsentby'] = ',
The following is an email sent to you by ';
$txt['user_email_viaaccount'] = ' através de sua conta em ';
$txt['user_email_ifmsgspam'] = ' . Se esta mensagem é spam, contém abusivo ou outros comentários que achar ofensivos por favor contacte o webmaster do quadro, no seguinte endereço ';
$txt['user_email_msgsentas'] = 'Mensagem enviada para você 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ê nã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çõ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ê precisa digitar um assunto.';
$txt['user_email_errmessage'] = 'Você precisa digitar uma mensagem.';
$txt['user_email_errnouser'] = 'Nenhum membro selecionado.';
$txt['user_email_errnousersend'] = 'Esse membro tem seus e-mails escondido e você não pode enviá-las.';
$txt['user_email_errnoemail'] = 'Seu endereço de email é necessario.';
$txt['user_email_err_invalidemail'] = 'Seu endereço de email não é válido. Verifique se o seu contributo.';
$txt['user_email_hello'] = "Olá ";
$txt['user_email_emailsentby'] = ',
The following is an email sent to you by ';
$txt['user_email_viaaccount'] = ' através de sua conta em ';
$txt['user_email_ifmsgspam'] = ' . Se esta mensagem é spam, contém abusivo ou outros comentários que achar ofensivos por favor contacte o webmaster do quadro, no seguinte endereço ';
$txt['user_email_msgsentas'] = 'Mensagem enviada para você 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>
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?
Is it a custom theme under than the default theme?
yes, custom theme.
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.
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?
Yes you would have to uninstall the old version first.
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)
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
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
Thanks,
I'll have a go and if I success I'll document how to do it for others.
Cheers
Chas.
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.
Don't plan for SMF 2.0 since it is already built into SMF 2.0
Doh - Yes you can call me a dork, I never checked. Sorry. ::)
This mod does not support the greek characters.
Nice mod.
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?
Tried to unistall and have the following error:
Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
You can ignore that error.
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" /> <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" /> <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" /> <b>', $txt[69], ': </b></td>
<td><i>', $txt[722], '</i>
';
Thanks for your help!!
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
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!
:-[ waiting for the smf2.0 version - we need it
No SMF 2.0 is version it is built into SMF 2.0....
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>
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
copy the text from modifications.english.php to modificatoins.yourlanguage.php
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
Glad you got it working.
Want to point out some incorrect text strings:
$txt['user_email_emailsent'] is mentioned twice in modifications.english.php.
Thanks older mod though likely to be updated unless major bugs.
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. ;)