The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add attachments from control panel?
I am trying to add something to the admin control panel to add attachments into the database without going through all the checks. This way (as I am the only admin), I can add attachments without having the checks etc, and no posts/threads.
What would be the code to add the file into the databse? I keep getting /var/tmp/xxxxxxxx kinda stuff and I know its not right. |
#2
|
|||
|
|||
NM, figured it out I think...
I edited attachments.php and renamed it to what I want to use to pull those attachments... It works well with zip files but no so well with images... It says downloading picture for around 1-2 mins...then halts... This is whats inside the php file. PHP Code:
|
#3
|
||||
|
||||
If you get this figured out, I would be interested in trying it out.
|
#4
|
||||
|
||||
shouldnt be too hard, just create an edited attachment.php and put a form in it to add a new attachment and create a post id for it when you do so, or add an aditional filed to attachments like adminattachid and then you could insert them that way i guess
|
#5
|
|||
|
|||
Yeah I got it that far, it inserts it into the database...
But when you call from attachments.php like file (above)... You can get the ZIP files, txt files BUT On images, it just sits there saying Downloading picture. It will never show the picture no matter how long I wait. unsure why. Is there soemthing special I have to do ? |
#6
|
|||
|
|||
This is what I have in the upload section for the attachment..
PHP Code:
|
#7
|
||||
|
||||
thats cause ur not inserting anything to filedata... have a wee looky at the attachments table and see whats needED
|
#8
|
|||
|
|||
Its getting added into filedata, or I wouldnt be able to get the zip files, txt files
Let me post whole thing |
#9
|
|||
|
|||
PHP Code:
|
#10
|
|||
|
|||
I have also verified the filedata column and its there even though you cant understand the code =P
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|