|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/04/30 13:07
|
By: e_builds
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 14 |   | |
|
Thanks so far, B0ris. You set me on the way to further investigate this. Check comprofiler.class.php around line 4965:
| Code: | if ( $row->cbactivation ) {
$confirmCode = $row->cbactivation;
} else {
$confirmCode = ''; // this was registrations-confirm codes before 1.0.2, removed at 1.1: md5($row->id);
}
|
Why was this removed at 1.1 ?
Anyway, seems your code belongs there, B0ris.
Checking it out further... www.e-builds.com (A crappy sites is often proof of many customers holding you from your own site)
|
|
The topic has been locked. |
|
|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/04/30 13:31
|
By: e_builds
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 14 |   | |
|
OK, I adjusted it a bit and placed it in the class. You never know where else the class is misused. SO, around line 4962 in "comprofiler.class.php", make the function like this:
| Code: | function _replaceVariables($msg, $row){
global $mainframe, $_CB_database, $mosConfig_live_site, $ueConfig, $mosConfig_emailpass;
if($ueConfig['reg_confirmation']==1) {
if ( $row->cbactivation ) {
$confirmCode = $row->cbactivation;
} else {
$row->cbactivation =
"reg" . md5( cbMakeRandomString() ) .
sprintf( "%08x", ((int) hexdec(substr( md5 ( $mainframe->getCfg( 'secret' ) . $mainframe->getCfg( 'db' ) ), 0, 7)))
^ ( (int) $row->id ) );
$_CB_database->setQuery( "UPDATE #__comprofiler "
. "\n SET cbactivation='".$row->cbactivation."' "
. "\n WHERE user_id='".$row->id."' "
);
$_CB_database->query();
$confirmCode = $row->cbactivation;//$row->cbactivation; // this was registrations-confirm codes before 1.0.2, removed at 1.1:
md5($row->id);
}
|
Post edited by: e_builds, at: 2008/04/30 13:32
Post edited by: e_builds, at: 2008/04/30 13:32 www.e-builds.com (A crappy sites is often proof of many customers holding you from your own site)
|
|
The topic has been locked. |
|
|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/05/05 10:07
|
By: beat
|
Status: Admin
|
|
|
Karma: 256  
|
|
Admin  | Posts: 4214 |   | |
|
Thanks, fixed in CB 1.2 in the new CB user class. Beat - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.2 RC4 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The topic has been locked. |
|
|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/08/08 16:41
|
By: kdeelstra
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 10 |   | |
|
Hi, i yust installed cb yeserday so tis the last one, but i get also empty confirmcode= emails
So its not corrected in CB 1.2 in the new CB user class?
|
|
The topic has been locked. |
|
|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/08/08 17:47
|
By: yogiboy
|
Status:
|
|
|
Karma: 0  
|
|
Junior Joomlapolitan  | Posts: 28 |   | |
|
Since the initial posting, I have upgraded to CB 1.2 RC2 and have not found another program for resending activation emails. Aaron Star www.chelseayoga.net
|
|
The topic has been locked. |
|
|
|
|
Re:Bug in "Resend Activation Emails"
|
|
Date: 2008/09/29 21:12
|
By: lgadola
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
I have installed CB 1.2 RC2 and still get emails with empty confirmcode. Any news on this? Thanks Lukas
|
|
The topic has been locked. |
|
|