PDA

View Full Version : Upload PDF as sig & link


Uberguilds
12-23-2010, 04:20 AM
Can anyone point me in the right direction in allowing PDFs to be uploaded as sigs and then displaying the link.

Thanks in advance to any reply.

If you are able to do this, but don't see how it is even useful in the first place, hit me up in PMs. Let me lobby to you why it is important. You'll probably want to test the same exact thing.

Profile.php
else if (($vbulletin->GPC['sigpicurl'] != '' AND $vbulletin->GPC['sigpicurl'] != 'http://www.') OR $vbulletin->GPC['upload']['size'] > 0)
{
require_once(DIR . '/includes/class_upload.php');
require_once(DIR . '/includes/class_image.php');

$upload = new vB_Upload_Userpic($vbulletin);

$upload->data =& datamanager_init('Userpic_Sigpic', $vbulletin, ERRTYPE_STANDARD, 'userpic');
$upload->image =& vB_Image::fetch_library($vbulletin);
$upload->maxwidth = $vbulletin->userinfo['permissions']['sigpicmaxwidth'];
$upload->maxheight = $vbulletin->userinfo['permissions']['sigpicmaxheight'];
$upload->maxuploadsize = $vbulletin->userinfo['permissions']['sigpicmaxsize'];
$upload->allowanimation = ($vbulletin->userinfo['permissions']['signaturepermissions'] & $vbulletin->bf_ugp_signaturepermissions['cananimatesigpic']) ? true : false;

if (!$upload->process_upload($vbulletin->GPC['sigpicurl']))
{
eval(standard_error($upload->fetch_error()));
}
$redirectsig = true;
$vbulletin->userinfo['sigpicrevision']++;
}

$userinfo_sigpic = fetch_userinfo($vbulletin->userinfo['userid'], FETCH_USERINFO_SIGPIC);