2005-09-20, 05:35 PM
Quote:stupid question #1... can you give me an idea of how the template should look for "edit photo"?You're right, I forgot the edit photo ('usercp_changephoto') template:
<html>
<head>
<title>$settings[bbname] - $lang->change_photo</title>
$headerinclude
</head>
<body>
$header
<form enctype="multipart/form-data" action="usercp.php" method="post">
<table width="$theme[tablewidth]" border="0" align="center">
<tr>
$usercpnav
<td valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
<tr>
<td class="tborder">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td class="thead" colspan="3"><strong>$lang->change_photo</strong></td>
</tr>
<tr>
<td align="center" class="trow2" width="5%"></td>
<td class="trow2" width="40%"><strong>$lang->photo_upload</strong><br /><span class="smalltext">$lang->photo_upload_note</span></td>
<td class="trow2" width="55%"><input type="file" name="photoupload" size="25" value="" />$uploadedmsg</td>
</tr>
</table>
</td></tr></table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_photo" />
<input type="submit" name="submit" value="$lang->update_photo" />
</div>
</td>
</tr>
</table>
</form>
$footer
</body>
</html>
The member profile template will look something like this:
...(profilefields & stuff)...
<tr><td colspan="3">
<br />
<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
<tr><td class="tborder">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td colspan="2" class="thead"><strong>$lang->photo_title</strong></td>
</tr>
<tr><td class="trow1" align="center">
$photo</td></tr>
</table></td></tr></table</td></tr>
....
Quote:stupid question #2... any SQL queries need to be done? (i.e. creating mybb_photos table)Done automatically on intialisation of the plugin I think.
Quote:stupid question #3... any other files need to be changed?Just the usercpnav as I salready mentioned I think.
There are no stupid questions