I'm using the following code to upload & re-size images. However it isn't resizing them. Any ideas?
PHP Code:
require_once(DIR . '/includes/class_upload.php');
require_once(DIR . '/includes/class_image.php');
$upload = new vB_Upload_Image($vbulletin);
$upload->image =& vB_Image::fetch_library($vbulletin);
$upload->path = $vbulletin->GPC['imagespath'];
$upload->maxwidth = 120;
$upload->maxheight = 120;
$imagepath = $upload->process_upload($vbulletin->GPC['upload']));
Thanks,