Durbatuluk wrote:Working in 3.0.6 as intended thank you
Uhmmm, actually as the mod stands now, no it is not 100% compatible with 3.0.6. At least not the board settings part (you will see the words "Array" where you should be able to enter a number for the max size). To fix
OPEN
includes/acp/acp_board.php
FIND
Code: Select all
// BEGIN MOD signature image check
function max_sig_img_size($value, $key = '')
{
// Determine size var and adjust the value accordingly
$size_var = ($value >= 1048576) ? 'mb' : (($value >= 1024) ? 'kb' : 'b');
$value = get_formatted_filesize($value, false);
return '<input type="text" id="' . $key . '" size="8" maxlength="15" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>';
}
// END MOD signature image check
REPLACE WITH
Code: Select all
// BEGIN MOD signature image check
function max_sig_img_size($value, $key = '')
{
// Determine size var and adjust the value accordingly
$filesize = get_formatted_filesize($value, false, array('mb', 'kb', 'b'));
$size_var = $filesize['si_identifier'];
$value = $filesize['value'];
return '<input type="text" id="' . $key . '" size="8" maxlength="15" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>';
}
// END MOD signature image check
..and then the mod works as intended 100%.
Update to mod has been submitted to MODDB.