View Full Version : No Option for FTP Attachment Uploads
steven72555
05-07-2010, 11:50 AM
after upgrading, I now have 2 navtabs showing my File area.
I used to be able to upload a file using my ftp program for larger files, now that is not an option? If I try to upload a file from a website, nothing happens.
I can upload small files though.
Brian
05-08-2010, 01:43 PM
1). Once a fix is determined it will be posted in this thread:
http://www.vbadvanced.com/forum/showthread.php?t=40308
2). Thank you for pointing this out. You should be able to resolve this issue by looking in your dynamics/newattachment.php file for this code:
// FTP
if ((defined('CAN_FTP_ATTACH') OR $vba_dyna->check_cat_perms('canftpattach')) AND $vba_options['dyna_attachmax'] > $totallimit)
{
$ftppath = $vba_options['dyna_attach_ftppath'] . '/' . $vbulletin->userinfo['userid'];
vba_template_alter('newattachment',
'".(($show[\'attachmentlist\'])',
$vbulletin->templatecache[ADV_DYNA_PREFIX . '_newattachment_ftpbit'] . '".(($show[\'attachmentlist\'])'
);
}
Replace with this:
// FTP
if ((defined('CAN_FTP_ATTACH') OR $vba_dyna->check_cat_perms('canftpattach')) AND $vba_options['dyna_attachmax'] > $totallimit)
{
$ftppath = $vba_options['dyna_attach_ftppath'] . '/' . $vbulletin->userinfo['userid'];
$templater = vB_Template::create(ADV_DYNA_PREFIX . '_newattachment_ftpbit');
$templater->register('ftppath', $ftppath);
$ftp_bit = $templater->render();
vba_template_alter(
'newattachment',
'if ($show[\'attachmentlist\']) {',
'$final_rendered .= \'' . $ftp_bit . '\'; if ($show[\'attachmentlist\']) {',
false
);
}
And then replace the contents of your 'adv_dyna_newattachment_ftpbit' template with the following:
<div class="blockbody formcontrols">
<h3 class="blocksubhead">{vb:rawphrase upload_files_via_ftp}</h3>
<div class="blockrow">
<input type="checkbox" name="ftpupload" id="ftpupload" value="1" />
{vb:rawphrase upload_files_via_ftp_desc}
<div style="padding-top: {vb:math {vb:stylevar padding}/2}"><i>{vb:raw ftppath}</i></div>
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" name="upload" value="{vb:rawphrase upload}" />
</div>
</div>
steven72555
05-08-2010, 02:34 PM
BAM!
Works like a charm!
Thanks Brian
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.