Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv2442
Modified Files:
updateprofile.php
Log Message:
Enhance profiles with the HTML editor (where available) and fix bug discovered by Stephanie Closs
Index: updateprofile.php
===================================================================
RCS file: /cvsroot/openfirst/members/updateprofile.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** updateprofile.php 9 Nov 2003 02:51:32 -0000 1.8
--- updateprofile.php 22 Nov 2003 11:25:13 -0000 1.9
***************
*** 83,87 ****
}
}
!
echo("<br><font color='green'>Profile updated.</font>");
}
--- 83,87 ----
}
}
! $user = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='$user->user';"));
echo("<br><font color='green'>Profile updated.</font>");
}
***************
*** 91,95 ****
<p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p>
! <form action='updateprofile.php' method='post'>
<table>
<tr>
--- 91,95 ----
<p>You may use this page to update your members profile. You should also: <a href="skills.php">update your skills list</a>.</p>
! <form action='updateprofile.php' onsubmit="return dhtmlEditorPrepareSubmit();" method='post'>
<table>
<tr>
***************
*** 166,170 ****
<td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr>
<tr>
! <th>Freeform Description</th><td><textarea name='description' cols="40" rows="10"><?php echo $user->description; ?></textarea></td>
</tr>
<tr>
--- 166,176 ----
<td><input type='text' name='yim' value='<?php echo $user->yim; ?>'></td></tr>
<tr>
! <th>Freeform Description</th><td>
! <?php if (function_exists("make_wysiwyg")) {
! make_wysiwyg("description",500,300,$user->description);
! } else {
! ?><textarea name="description" cols="40" rows="20">$user->description</textarea>
! <?php } ?>
! </td>
</tr>
<tr>
|