Hello,
I finally got to understand what the %s in the fr-FR.com_chronocontact.ini you told me to create.
It's almost functioning well.
However the password and the site name don't pass through.
Looking at the Joomla plugin code it seems there may be a mistake.
as you can see there is no line for the password? Is it taken from somewhere else.
Then you've got
I then wrote my own text in fr-FR.com_chronocontact.ini
SEND_MSG="my own text"
Using the fr-FR.com_user.ini alone doesn't work. You still have to create one file with chronocontact in it even with the stable version
Furthermore in $name, $sitename, $siteURL,$username, $password
$sitename and $password are not integrated in the email.
Please let me know how to include them.
Thank you,
L.....
I finally got to understand what the %s in the fr-FR.com_chronocontact.ini you told me to create.
It's almost functioning well.
However the password and the site name don't pass through.
Looking at the Joomla plugin code it seems there may be a mistake.
function _sendMail(&$user, $password, $emailuser, $emailadmins)
{
global $mainframe;
$db =& JFactory::getDBO();
$name = $user->get('name');
$email = $user->get('email');
$username = $user->get('username');
$usersConfig = &JComponentHelper::getParams( 'com_users' );
$sitename = $mainframe->getCfg( 'sitename' );
$useractivation = $usersConfig->get( 'useractivation' );
$mailfrom = $mainframe->getCfg( 'mailfrom' );
$fromname = $mainframe->getCfg( 'fromname' );
$siteURL = JURI::base();
as you can see there is no line for the password? Is it taken from somewhere else.
Then you've got
$subject = sprintf ( JText::_( 'Your account details' ), $name, $sitename);
$subject = html_entity_decode($subject, ENT_QUOTES);
if ( $useractivation == 1 ){
$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
} else {
$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);
}
I then wrote my own text in fr-FR.com_chronocontact.ini
SEND_MSG="my own text"
Using the fr-FR.com_user.ini alone doesn't work. You still have to create one file with chronocontact in it even with the stable version
Furthermore in $name, $sitename, $siteURL,$username, $password
$sitename and $password are not integrated in the email.
Please let me know how to include them.
Thank you,
L.....
Hi Laure,
Both the $sitename and the $password are there in the first block of code you posted, and I tested the emails before the stable version without the com_chronocontact language file and it was fine, maybe I didn't check the password and sitename though but I will test that, sorry for the delay but I'm having a very busy 2 days here with life issues!
Regards
Max
Both the $sitename and the $password are there in the first block of code you posted, and I tested the emails before the stable version without the com_chronocontact language file and it was fine, maybe I didn't check the password and sitename though but I will test that, sorry for the delay but I'm having a very busy 2 days here with life issues!
Regards
Max
Hello Max,
I hope it's not too bad (your personal life matter).
Call me stupid but I felt there was a line missing for the password so I tried out this
I got a string of letters and numbers instead of the password in the confirmation e-mail
which was not what I wanted but I got something. I used to get nothing. I take that
as an improvement.
I added this line
Maybe this will help you.
Thanks,
Laure
I hope it's not too bad (your personal life matter).
Call me stupid but I felt there was a line missing for the password so I tried out this
$name = $user->get('name');
$email = $user->get('email');
$username = $user->get('username');
$password = $user->get('password');
$usersConfig = &JComponentHelper::getParams( 'com_users' );
$sitename = $mainframe->getCfg( 'sitename' );
$useractivation = $usersConfig->get( 'useractivation' );
$mailfrom = $mainframe->getCfg( 'mailfrom' );
$fromname = $mainframe->getCfg( 'fromname' );
$siteURL = JURI::base();
I got a string of letters and numbers instead of the password in the confirmation e-mail
which was not what I wanted but I got something. I used to get nothing. I take that
as an improvement.
I added this line
$password = $user->get('password');
Maybe this will help you.
Thanks,
Laure
Hi Laure,
Thank you!๐
at this line :
as you can see the $password is already feeded to the function, no need to redefine it, what you get with your new line is the encoded password!
give me a chance and I will go there and will check the whole thing, those issues here are not hard but very time and efforts consuming, that's all!๐
Regards
Max
Thank you!๐
at this line :
sendMail(&$user, $password, $emailuser, $emailadmins)
as you can see the $password is already feeded to the function, no need to redefine it, what you get with your new line is the encoded password!
give me a chance and I will go there and will check the whole thing, those issues here are not hard but very time and efforts consuming, that's all!๐
Regards
Max
actually it is this code I'm looking at
but sitename and password are not forwarded in the email.
I don't see where the password is forwarded
It seems this line has no effect on passing the password.
Please help me with this.
Thanks,
Laure
$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);
but sitename and password are not forwarded in the email.
I don't see where the password is forwarded
function _sendMail(&$user, $password, $emailuser, $emailadmins)
{
global $mainframe;
$db =& JFactory::getDBO();
$name = $user->get('name');
$email = $user->get('email');
$username = $user->get('username');
$usersConfig = &JComponentHelper::getParams( 'com_users' );
$sitename = $mainframe->getCfg( 'sitename' );
$useractivation = $usersConfig->get( 'useractivation' );
$mailfrom = $mainframe->getCfg( 'mailfrom' );
$fromname = $mainframe->getCfg( 'fromname' );
$siteURL = JURI::base();
$subject = sprintf ( JText::_( 'Welcome to my site' ), $name, $sitename);
$subject = html_entity_decode($subject, ENT_QUOTES);
if ( $useractivation == 1 ){
$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password);
} else {
$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL,$username, $password);
}
It seems this line has no effect on passing the password.
function _sendMail(&$user, $password, $emailuser, $emailadmins)
Please help me with this.
Thanks,
Laure
Hi Laure, I think you sent me the login info to check this issue somewhere before but I can't find them now ? could you please send them again at a PM and I will check this problem for you!
Cheers
Max
Cheers
Max
Hello Max,
I didn't get a reply from you. Did you find a solution to this? I gave you login at your email address.
Can you see how to fix this?
Thank you,
Laure
I didn't get a reply from you. Did you find a solution to this? I gave you login at your email address.
Can you see how to fix this?
Thank you,
Laure
Hi Laure, I will check this today, don't worry, its only unexpected issues keep popup!
Best regards
Max
Best regards
Max
Unexpected problems? Tell me about it :wink:
Give me your conclusion when you know what's causing the problem.
Thanks,
Laure
Give me your conclusion when you know what's causing the problem.
Thanks,
Laure
Hi Laure,
Well, I will tell you some when I email you in reply for the issues๐ I will do my best to have them ready today.
Regards
Max
Well, I will tell you some when I email you in reply for the issues๐ I will do my best to have them ready today.
Regards
Max
Hello Max,
I can't find your reply anywhere. Please don't leave me hanging.
Thank you,
Laure
I can't find your reply anywhere. Please don't leave me hanging.
Thank you,
Laure
Hi Laure,
Actually I tried to login again and it said wrong password which means you blocked my access and I thought you got it solved ?
I'm not sure whats the problem you are having now but if its only the password not included in the email then I have an easy patch for this one.
Let me know!
Cheers,
Max
Actually I tried to login again and it said wrong password which means you blocked my access and I thought you got it solved ?
I'm not sure whats the problem you are having now but if its only the password not included in the email then I have an easy patch for this one.
Let me know!
Cheers,
Max
This topic is locked and no more replies can be posted.