Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 Next > End >>
Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/06 21:09 By: king.lui Status: CB Doc subscriber  
Karma: 10  
Expert Joomlapolitan

Posts: 101
graphgraph
same problem and i don't have installed joomcomment.
I know, my english seems a little .. unusual .. but really, it's not bad, it's only a bavarian version
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/06 21:21 By: king.lui Status: CB Doc subscriber  
Karma: 10  
Expert Joomlapolitan

Posts: 101
graphgraph
Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}
I know, my english seems a little .. unusual .. but really, it's not bad, it's only a bavarian version
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/06 22:39 By: WebTrooper Status: User  
Karma: -3  
Fresh Joomlapolitan

Posts: 20
graphgraph
King Lui, you Bavarian God! Thanks a gazillion!

Post edited by: WebTrooper, at: 2007/11/07 14:19
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/07 11:21 By: lucser Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 10
graphgraph
i had on line 4992...
tryied but not working...
king.lui wrote:
Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/07 21:16 By: cord Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
Hi king.lui,

your workaround works partly for me:

the mail with the activation link now really does contain the password - that's the part that works and I do thank you for the hint!

But the welcome mail still does not resolve the variable but still contains [PASSWORD].

Is there some kind of solution for the welcome mail?

Cord

king.lui wrote:
Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONFIRMED] Registration emails [PASSWORD]
Date: 2007/11/07 23:28 By: beat Status: Admin  
Karma: 238  
Admin

Posts: 3998
graphgraph
@ king.lui : Thanks a lot for troubleshooting and providing the fix.


cord wrote:
Hi king.lui,

your workaround works partly for me:

the mail with the activation link now really does contain the password - that's the part that works and I do thank you for the hint!

But the welcome mail still does not resolve the variable but still contains [PASSWORD].

Is there some kind of solution for the welcome mail?

Cord



Cord,

This is absolutely normal behavior of CB.

CB can only send password in the email sent when pressing "register", as passwords are never stored in cleartext, but with one-way hashing, so they can be checked, but not reverted to cleartext.
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 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
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login