The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
why is it going into dwipfiles table? it should be put in the attachments table..
this is why ur getting probs as attachments.php isnt coded to remove file from any table, more the actual attachments table in the database.. well thats my hunch on looking at the code |
#12
|
||||
|
||||
you cant understand that code as its not ascii format its the format that the file uses.. diff for jpeg giff etc
|
#13
|
|||
|
|||
Its going into another table for a reason that is very complicated to explain (short form, be used for something totally different). I have renamed attachment.php to attachments.php. I have also edited the code to what is above when I first posted. As you can see it looks in dwipfiles now.
Either way, it doesnt explain the issue because only images are the probs I am having. |
#14
|
||||
|
||||
it could as if your calling these files back tru attachments.php then its set to be able to work with this table and there may be additional code for handling images , that isnt being parsed due to you using the data from a differemt table..
i say this as i know that there is all the stuff for showing images in threads etc.. tho im not sure if it in attachments.php.. but anyway if i am wrong then soz im stumped but the new table would maybe be it, as if attachments was able to take any data from anytable you might end up with some probs in theory.. anyway just an idea.. probs wrong lol |
#15
|
|||
|
|||
You may be right, I have looked through any of the function calls and havent seen anything pointing there, but doesnt mean I haven't overlooked it. Just found it strange that ZIP and TXT files work fine, just images =\
Got me stumped bad ... lol |
#16
|
||||
|
||||
its also worth knowing that vb`d attachments work by having an attachment on every post, its just wether or not theres anything in the table
found this out when making a gallery hack and kept getting lots of attachments with ids but no filedata or names etc ( i echod the id to make sure of this) |
#17
|
|||
|
|||
I took all the verifyid out and all the checks to ensure it wasnt it, calling it like this.
/attachments.php?filesid=33 I did something for the hell of it. I uploaded through my script an attachment, then uploaded that same image through a post. So now both should hold the same filedata. The one shows up in a post. To see if it was getting corrupted in my upload script, I copied from dwipfiles (just that attachment filedata) over the one in attachment. Attachment still shows up fine and everything. So it appears its just the attachments.php file (my hacked one) to display images without the function call. I must be missing something =\ |
#18
|
|||
|
|||
Fixed it, for some reason I guess it dont like spaces to much and also needs an @ on a few...
Dunno why it only happened with images though /shrug PHP Code:
PHP Code:
|
#19
|
||||
|
||||
What is the exact finished file then? And how do we use it from the Admin CP?
|
#20
|
|||
|
|||
Let me work a few bugs out to where you can edit afterwards, etc. and I will zip it up for you...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|