News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Lost Password Issue

Started by salim, April 16, 2007, 05:05:12 AM

Previous topic - Next topic

salim

Hello everyone,

i am using bridge 1.1.6. with smf rc3 and joomla 1.0.11.

there was a problem with when user were clicking link of `lost password` and they were getting a form which they fill in but NEVER received an email of it. I received several complains about it and i thought that it might be getting in their junk folder or somewhere. anyway i check this component and made some live tests on it, and find out, few `Global variables` were missing and `mosMail()` function was unable to send email to recipient as well as to admin of joomla and forum.

by the way im using smf login module to login in joomla and smf.

Open up file `/components/com_smf_registration/smf_registration.php`
Look for function name `function sendNewPass($option)`
And ADD this line
   
`global $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_mailfrom;`

and `lost password` option start working.

Please accept my apology, that i did look for this topic but i could not find so i thought just to post new topic that it might help someone else.

Thanks you
Faisal
The second half of a man's life is made up of nothing but the habits he has acquired during the first half. - Fyodor Dostoevsky

Orstio

Or, you could just upgrade to 1.1.7...

salim

Thanks Orstio for your reply.

i surely gonna test this tomorrow inshaAllah but still i wanna know how to  upgrade, and is it compatible with smf rc3 and joomla 1.0.11.

i did read `readme.html` file but i did not find anything saying about upgrade.

other issue i saw it in function `function resend_activation($option)` that global variable was missing again and in `mosMail($adminEmail2, $adminName2, $email, $subject, $message);` var $email was empty.

i dont know about this much (i mean by profession im not a programmer) but few variables were empty like ...

~~~~~~~~~~~~~~~~~
$database->setQuery("
      SELECT activation , username, name, email
      FROM {$mosConfig_dbprefix}users
      WHERE username = '$checkusername'
         AND email = '$confirmEmail'
      LIMIT 1");
   $row = $database->LoadObjectList();
   
   $activation = $row[0];
   $username = $row[1];
   $name = $row[2];
   $email = $row[3];
~~~~~~~~~~~~~~~~~

in bold. and work around i found and which i did for my site are as following ...

~~~~~~~~~~~~~~~~~
$database->setQuery("
      SELECT activation , username, name, email
      FROM {$mosConfig_dbprefix}users
      WHERE username = '$checkusername'
         AND email = '$confirmEmail'
      LIMIT 1");
   $row = $database->LoadObjectList();
   foreach ($row as $rs) {
      $activation = $rs->activation;
      $username = $rs->username;
      $name = $rs->name;
      $email = $rs->email;
   }

~~~~~~~~~~~~~~~~~

which is working now.

i Download new version of bridge 1.1.7 and check the code only and will work on it tomorrow (i like said b4) inshaAllah.
i compare code i found that those global variable are there, which is good  :D. But these code which i print above are same. Well i think $email variable will be blank this time also. Hopefully not  :).

Thanks again.

regards
Faisal
The second half of a man's life is made up of nothing but the habits he has acquired during the first half. - Fyodor Dostoevsky

salim

Quotebut still i wanna know how to  upgrade, and is it compatible with smf rc3 and joomla 1.0.11.

i did read `readme.html` file but i did not find anything saying about upgrade.

never mind i found where `upgrade steps` are posted

but thanks anyway :)

Faisal
The second half of a man's life is made up of nothing but the habits he has acquired during the first half. - Fyodor Dostoevsky

Advertisement: