The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 27 posts ] 
Author Message
PostPosted: Mon May 15, 2006 6:27 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon May 15, 2006 5:32 pm
Posts: 4
Is there a way to disable New User Registration Notifications?

I don't want my e-mail box to get filled up.

Thanks!


Top
 Profile  
 
PostPosted: Mon Jun 05, 2006 10:49 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon May 15, 2006 5:32 pm
Posts: 4
I just found the solution.

Under user manager > click on your admin user and turn off "Receive System Emails"


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 4:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jan 24, 2006 3:10 pm
Posts: 39
won't that disable ALL system emails? Can we not just turn off the new user registration part only?


Top
 Profile  
 
PostPosted: Wed Nov 19, 2008 4:18 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Oct 24, 2008 4:22 am
Posts: 3
I NEED this function.... how to configure it? please tell me ....

chongfai13@gmail.com ... thanks..


Top
 Profile  
 
PostPosted: Tue Feb 24, 2009 6:37 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Feb 24, 2009 6:35 am
Posts: 4
Just in case you didn't get this yet, you need to comment out a section of the administrator/components/com_users/controller.php file.

Goto line 175 and comment out till line 189 like this:


/*if ($isNew)
{
$adminEmail = $me->get('email');
$adminName = $me->get('name');

$subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
$message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

if ($MailFrom != '' && $FromName != '')
{
$adminName = $FromName;
$adminEmail = $MailFrom;
}
JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
}*/


Top
 Profile  
 
PostPosted: Tue Feb 24, 2009 7:15 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Tue Sep 13, 2005 12:22 am
Posts: 5260
Location: Omaha, Nebraska, USA
When performing any Core Modification (hack), make sure that you document the change in a text file and place it in your website's root directory. That way, when you upgrade your site, you know what "hacks" you have to make again (assuming that the files you edited were overwritten).

Thanks for the information Dave! This is a great way to give back to the community. :)

_________________
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
Author of "Joomla! 1.5: Developing Secure Sites": http://www.lynda.com/home/DisplayCourse.aspx?lpk2=73559


Top
 Profile  
 
PostPosted: Tue Feb 24, 2009 7:36 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Feb 24, 2009 6:35 am
Posts: 4
Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.


Top
 Profile  
 
PostPosted: Wed Feb 25, 2009 3:06 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Tue Sep 13, 2005 12:22 am
Posts: 5260
Location: Omaha, Nebraska, USA
davegregoire wrote:
Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.


You did just fine! Nothing wrong. See you around the forums!

_________________
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
Author of "Joomla! 1.5: Developing Secure Sites": http://www.lynda.com/home/DisplayCourse.aspx?lpk2=73559


Top
 Profile  
 
PostPosted: Sun May 31, 2009 12:59 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 07, 2008 9:59 pm
Posts: 12
This didn't work for me, even though the lines in the file were in the exact place described by davegregoire above.

I'm using Joomla 1.5.10 - is this even possible? I've uploaded the changes and then re-downloaded them to confirm that they are there (and they are), but still I'm getting both an Admin email and an email to the user when I start a new account.


Top
 Profile  
 
PostPosted: Mon Jun 08, 2009 5:23 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri May 02, 2008 11:57 pm
Posts: 135
How can I enable a user to receive an email once they register? I seem to have the opposite problem :)


Top
 Profile  
 
PostPosted: Wed Jun 17, 2009 9:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jan 11, 2008 7:30 pm
Posts: 7
These instructions worked for me with previous versions of Joomla, but not with version 1.5.11. Does anyone have any insight into how to disable new user registration e-mail notification with Joomla 1.5.10 and 1.5.11? Thanks in advance.


Top
 Profile  
 
PostPosted: Tue Jun 23, 2009 12:59 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Nov 13, 2007 4:06 pm
Posts: 3
Change the Admin email address to an ambiguous string of characters :]

Yeah because the admin email doesn't appear to serve much other purpose. I'm oblivious otherwise.


Top
 Profile  
 
PostPosted: Tue Jun 23, 2009 6:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jan 11, 2008 7:30 pm
Posts: 7
Here's a workaround that I came up with... edit line 116 of /language/en-GB/en-GB.com_user.ini
to remove the activation link from the e-mail. The new user still receives the e-mail, but they cannot activate their account. Instead, I replaced the activation link with text that informs the new user that the website administrator received their account details and will contact them with further instructions.


Top
 Profile  
 
PostPosted: Tue Nov 03, 2009 12:41 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 06, 2008 9:59 pm
Posts: 6
BUMP

Any solution for this anybody. Really need to disable account activation emails to new users - the ones titled 'Account details for [user name]'

- I've tried playing around with components/com_user/controller.php
- Using 1.5.14

Thanks very much


Top
 Profile  
 
PostPosted: Tue Nov 03, 2009 3:18 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Tue Sep 13, 2005 12:22 am
Posts: 5260
Location: Omaha, Nebraska, USA
I think JM wrote something that does this... I'll ping him on Skype and get him involved in this chat.

_________________
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
Author of "Joomla! 1.5: Developing Secure Sites": http://www.lynda.com/home/DisplayCourse.aspx?lpk2=73559


Top
 Profile  
 
PostPosted: Mon Dec 14, 2009 9:44 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17627
Location: Omaha, NE
As was previosly pointed out, to stop the new user email upon registration,
change administrator/components/com_users/controller.php file starting at line 175

Code:
      /*
        * Time for the email magic so get ready to sprinkle the magic dust...
        */
      if ($isNew)
      {
         $adminEmail = $me->get('email');
         $adminName   = $me->get('name');

         $subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
         $message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

         if ($MailFrom != '' && $FromName != '')
         {
            $adminName    = $FromName;
            $adminEmail = $MailFrom;
         }
         JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
      }

to
Code:
      /*
        * Time for the email magic so get ready to sprinkle the magic dust...
        */
   /*   if ($isNew)
      {
         $adminEmail = $me->get('email');
         $adminName   = $me->get('name');

         $subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
         $message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

         if ($MailFrom != '' && $FromName != '')
         {
            $adminName    = $FromName;
            $adminEmail = $MailFrom;
         }
         JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
      }*/

Note the addition of the /* at the beginning of the code and the */ at the end of the code to comment out the entire block of code. Alternatively, you can simply comment out the last line as in
Code:
/* JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );*/

_________________
Regards, Dave
http://www.kiwaniswest.org


Top
 Profile  
 
PostPosted: Tue Dec 15, 2009 9:02 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 07, 2009 8:58 am
Posts: 10
After editing the script i got some strange results.
When changing the script as said, complete from line 175 to 189, i couldn't enter/login to the useraccount (got a scripterror 500) at the control panel. Re-editing the script as before and chaning only the last line (JUtility), the new user doesn't get an e-mail.
BUT:
The now new users aren't displayed in the useraccount screen. It's like they don't exist/ were never added.
When re-editing the script, removing all the */ and /* (which were added), this still happens. After creating a new user (test), i do get an e-mail, but the user isn't displayed in the useraccount list. (everything is set, as far as i know, to the setting before editing)
What happened?


*EDIT:
Problem solved! Made an error with the amount of */ in the script.
Last method mentioned was helpfull, only disable the emailsetting in the script.
Thanks


Top
 Profile  
 
PostPosted: Fri Dec 18, 2009 11:22 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 07, 2009 8:58 am
Posts: 10
Another registration question:

Is it possible to register multiple persons/users with the same emailaddress. For instance, we have 3 different users of the same company. We want the possibilty that each of them can login to our site with their own password and username. But backend registration is cancelled because emailaddress (info@companyname) already exists. Registration without entering an emailaddress isn't possible (yet). Is their a line in the script to disable the obligation the enter an emailaddress?


Top
 Profile  
 
PostPosted: Sun Feb 14, 2010 8:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 10, 2008 12:02 pm
Posts: 37
I had this issue too, but I do not really see closure here - I would rather not manually mod the code at all. Plugins are fine, modding the code is not...

So... Is the "System Emails" used for anything else other than these emails?
If so, what?

TIA


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 3:33 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Feb 06, 2009 9:33 pm
Posts: 77
Location: Denver
Hi, same prob.
My code's different than what I'm seeing here
Code:
if ($isNew)
      {
         $adminEmail = $me->get('email');
         $adminName   = $me->get('name');
         
         if ($MailFrom != '' && $FromName != '')
         {
            $adminName    = $FromName;
            $adminEmail = $MailFrom;
         }
         /*
            $subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
            $message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );
         */
         
   //-------------------------------------------intercept mail and redirect to email editor-------------------------------
      $name = $user->get('name');
         $email = $user->get('email');
                  
         $query="Select * FROM #__nu_emailmsg Where code='ADD_NEW_USER'";
         
         $db->setQuery( $query );
         $rows = $db->loadObjectList();
         
         $patterns=array(   '/{name}/',   '/{username}/','/{password}/',
                  '/{sitename}/','/{siteurl}/','/{activationurl}/','/{loginurl}/',
                  '/{email}/','/{token}/'
                  );
         $replacements_subject=array(   $name,$post['username'],$user->password_clear,
                  $SiteName,   $siteURL,$activationURL,$siteURL,
                  $email,''
                  );
         $replacements_body=array(   $name,$post['username'],$user->password_clear,
                  $SiteName,   htmlLink($siteURL),htmlLink($activationURL),htmlLink($siteURL),
                  $email,''
                  );
         foreach($rows as $row)
         {         
            $subject    = preg_replace($patterns,$replacements_subject,$row->subject);
            $subject    = html_entity_decode($subject, ENT_QUOTES);
            $message    = preg_replace($patterns,$replacements_body,$row->body);
            $message   = html_entity_decode($message, ENT_QUOTES);
            $sender_name = $row->sender_name;
            $sender_name = html_entity_decode($sender_name, ENT_QUOTES);
            $sender_email = $row->sender_email;
            $sender_email = html_entity_decode($sender_email, ENT_QUOTES);
         }
         
         // Send email to user
         if(empty($sender_name) and empty($sender_email))
         {
            $from_name = $adminName;
            $mail_from = $adminEmail;            
         }
         //if sender name and email not set in template get default sender name and email
         elseif($sender_name =='{sendername}' or $sender_email == '{senderemail}')
         {            
            if ( $sender_name =='{sendername}')
            {
               $from_name = $adminName;
            }
            if ( $sender_email == '{senderemail}')
            {
               $mail_from = $adminEmail;
            }            
         }
         else{
            $from_name = $sender_name;
            $mail_from = $sender_email;
         }
         sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);   


I've tried
Code:
/*sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);*/   

and
Code:
//sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);   


as well as commenting out the entire block but nothing happens

I've also tried the same thing in root/components/com_user/controller.php but still nothing...


Top
 Profile  
 
PostPosted: Wed Jun 29, 2011 2:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 27, 2011 2:19 pm
Posts: 10
Hi,

I'd also like to stop emails to new registered users saying 'Thank you for registering at...'. I'm using Version 1.5.22. I've also tried the hacks listed above but they don't work.

Jamie


Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 7:23 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Nov 12, 2007 9:42 am
Posts: 7
Hey what do you know, 5 years later the problem still remains. No wonder I switched to a different CMS. ;)


Top
 Profile  
 
PostPosted: Sun Dec 25, 2011 11:41 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Dec 11, 2011 1:01 am
Posts: 16
This 'NEW_USER_MESSAGE' is driving me nuts

I can't find the solution, I couldn't even disable the email after I create a new user by inserting /* */

Why the hell does this happend? I have been searching for hours, and no one has a solution, it seems impossible to edit that mesage or to disable it.

some try with public_html/administrator/components/com_users/controller.php

others try with public_html/administrator/language/en-GB/en-GB.com_users.ini

others try from the backend

I even tried installing a plugin...

nothing FUCKIN works...BTW: DIC-2011 :pop


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 3:11 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 03, 2012 3:08 am
Posts: 8
I know its a month late.. but can I offer a simple solution to this problem that may have been missed??

Setup a filter in your mail program, or webmail, to automatically delete emails from your site with matching Subject. Or dump them in a folder and mark as read.

This way you dont miss out on any Other type of system admin emails that may be setup.

Simples!!


Top
 Profile  
 
PostPosted: Mon Feb 06, 2012 12:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 01, 2012 4:04 pm
Posts: 35
can anyone help with customizing new registration e-mail notifications. i have edited the message in language/en-GB/en-GB.com_user but the changes are not reflecting.

Thanks


Top
 Profile  
 
PostPosted: Fri Feb 17, 2012 4:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Apr 01, 2011 9:40 pm
Posts: 17
I tried the commenting the code and the user still gets the Thank you email.
Is there any other way to stop it?


Top
 Profile  
 
PostPosted: Wed Mar 21, 2012 11:29 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Mar 28, 2006 12:35 am
Posts: 4
Quote:
There are 3 user activation options in Joomla 1.6, 1.7 & 2.5 (they can be found in Users > User Manager > Options > New User Account Activation):
None - no activation required. After registration account is activated automatically and user can login. Notification email is sent to the registered user
Self - user receives an email with a link to activate his account. Once activated, user can login.
Admin - user receives an email with a link to verify his account. Once verified, administrators (users with "Receive System Email" option enabled) receives and email with a link to activate user's account. Once activated registered user receives a notification that his account has been activated by administrator. User can now login.
As you can see administrator is only notified about new user registration only if New User Account Activation is set to Admin. If it's set to None or Self no notification email is sent to the admin account. This behaviour is different from Joomla 1.5 where administrator was always notified.
I couldn't find a suitable extension to enable administrator notifications with none activation option so had to resort to a small hack on core Joomla files. Be aware that any change to the core files may be overwritten by a Joomla update. Always document changes you make to the core files so you can quickly re-do them if required. Also make backups of all files you modify.

http://www.mysysadmintips.com/web/132-joomla-17-admin-email-alert-after-user-registration

Hope this helps


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group