Update: 1.9Beta
I have just released Version 1.9Beta!
What you should do to upgrade:
1) Open up the "file mods - queries.txt" file
2) Find the "UPDATE" section
3) Run the Queries
4) Modify the "error_signaturebaddimensions" template
Replace the entire template with:
Code:
That image is too large. The maximum dimensions are $signaturemaxwidth by $signaturemaxheight pixels.
5) Modify the "modifysignature_custom" template
Replace the entire template with:
Code:
<script language="Javascript">
<!--
function checkCustom(formname) {
formname.customsignaturecheck.checked=true;
}
//-->
</script>
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>Custom Signatures</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D"><normalfont><b>Use custom signature</b></normalfont><br>
<smallfont>Note: the maximum size of your custom image is $signaturemaxwidth by $signaturemaxheight pixels or $signaturemaxsize bytes (whichever is smaller).</td>
<td bgcolor="#13486D"><normalfont>
<input type="radio" name="signatureid" value="0" $signaturechecked[0] id="customsignaturecheck"> yes </normalfont><br>
<smallfont>(The database currently has the following custom signature in your name: <img src="$bbuserinfo[signatureurl]" border="0" alt="Your custom signature"><br>
If you want to keep it as it is, leave the fields below as they are.)</smallfont></td>
</tr>
$customsigwebsite
$customsigupload
6) Open root/member.php
Find:
PHP Code:
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$signaturemaxdimensions or $imginfo[1]>$signaturemaxdimensions) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_signaturebaddimensions")."\");");
}
replace with:
PHP Code:
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$signaturemaxwidth and $imginfo[0]>$signaturemaxheight or $imginfo[1]>$signaturemaxwidth and $imginfo[1]>$signaturemaxheight) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_signaturebaddimensions")."\");");
}
What does this new update do?
It adds the ability to restrict image sizes by Height and Width, rather than just by Maximum Dimensions via the Admin Options...
ONLY FOLLOW THIS IF YOU ARE RUNNING 1.8Beta or below
Satan