2014-03-20, 01:54 AM
I use alot of custom profile fields in my forum. So I thought I would make buttons at the top of the editprofile area of the Modcp to use modal to quickly access some of the custom profile fields I need to update frequently.
I have succeeded partially: I've got the modal working, and it will update the check box I have, but it will not update the text box( which I use as a date)
Can anyone point me in the right direction: here is my code I added to the modcp_editprofile template
I have succeeded partially: I've got the modal working, and it will update the check box I have, but it will not update the text box( which I use as a date)
Can anyone point me in the right direction: here is my code I added to the modcp_editprofile template
<a href="" name="modal" rel="#updateModal"> <img src="/DealerSupport/images/reps/Qvisit.png" width="145" height="145"></a><div id="updateModal" class="modalBox updateModalBox">
<div class="thead">
Update {$mybb->settings['bbname']}
</div>
<div class="modalContent updateModalContent">
<table border="0" width="100%">
<tr>
<td height="34">
<label for="profile_fields[fid36]">Quarter 1 Update:</label>
</td>
<td>
<label class="smalltext" title="Insert the date here."><input type="text" value="" maxlength="8" size="8" class="textbox" name="profile_fields[fid36]"></label>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<label class="smalltext" title="If ticked, you are verifying you have completed this update."><input type="checkbox" value="Q1 UPdate complete" checked="checked" name="profile_fields[fid22][]" class="checkbox">
Quarter 1 Visit Complete</label></td>
<td>
<input type="hidden" value="" name="url" />
<input type="hidden" name="action" value="do_editprofile" />
<input type="hidden" name="uid" value="{$user['uid']}" />
<input type="submit" class="button" value="{$lang->update_profile}" />
</td>
<td>
<a rel="closeModal" href="#">Close</a>
</td>
</tr>
</table>
</div>
</div>