The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Local File Attachments Help
Hello All,
I am very new to vbulletin coding, and am hoping someone can help me with this feature I am trying to add. I am trying to understand how I can add the ability to attach a local file to a thread, without using the upload functionality via the Attachment Manager. I have already modified the Attachment Manager UI to include the new local file path input (see attached image) This function will be for admins only, and have already locked that that down. I have been making my (non functional) edits in the newattachment.php file. I have setup the form field to use a different name for the form field (attach)so the code can be separated ... if (!$vbulletin->GPC['upload']) { if (!empty($vbulletin->GPC['attach'])) {....} } $vbulletin->GPC['attach'] holds the path/filename of the file that I want to attach, and the file will already be in the vb storage folder. I want to do this becuase I will be downloading files from a remote server directly into the vb storage folder via wget in shell, and some of the files are quite large, thus causing errors in memory allocation, plus would double the time required if I used the upload from url option. To clarify, I basically just need to feed a filename into the attachment manager, and have it create the proper database entries, avoiding the file upload process all together. I know this should be quite simple to achieve, I just dont understand vb well enough to figure it out. What do you guys think? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|