forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: bnies on December 12, 2005, 09:26:08 am

Title: BUG: Email gets lost in profile.php
Post by: bnies on December 12, 2005, 09:26:08 am
Version: Coppermine 1.4.2

Problem Description: If the user option "Allow users to change their email address in profile" is set to "no" and the user opens profile.php and clicks "apply modification" the email address gets deleted in the MySQL database.

Cause: In the HTML form an appropriate hidden input type tag is missing.

Fix: In profile.php in function make_form() in the switch statement replace the case 'text' as follows:

Code: [Select]
        case 'text' :
            if ($form_data[$element[1]] == '') break;
            echo <<<EOT
    <tr>
        <td width="40%" class="tableb" height="25">
            {$element[2]}
        </td>
        <td width="60%" class="tableb">
            {$form_data[$element[1]]}
        </td>
    </tr>
    <input type="hidden" name="{$element[1]}" value="{$form_data[$element[1]]}">
EOT;
Title: Re: BUG: Email gets lost in profile.php
Post by: Nibbler on December 15, 2005, 07:54:36 pm
Fix committed to CVS.
Title: Re: BUG: Email gets lost in profile.php
Post by: yeomanjake on February 22, 2006, 06:32:32 am
Fix committed to CVS.

Hello, I am using v1.3.2. and thank you for this fix; I do have a question, however, in Profiles.. Is there a way to get a User's name in a Profile to have a mailto: link (Email) so a person can send a message to a photo contributor?
please send reply to kenjaccard@bellsouth.net - thanks

Ken Jaccard
Title: Re: BUG: Email gets lost in profile.php
Post by: Joachim Müller on February 22, 2006, 10:49:49 am
this is the cpg1.4.x bugs board. No support is given here, particularly not for cpg1.3.x. Thread locked.