The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
attachmenttype and extension and mimetype
im lost on a vbmod that im doin im not sure what the line of code would be for this idea i have in mind...
what im doin is im trying to make a .zip viewer mod where a user could click on a drop down and view the contents of a .zip file (Attachment) this mod uses the "postbit_attachment" template and showthread.php file.. my question is how would i just call a query for just .zip files only ? please help |
#2
|
|||
|
|||
You could select on the extension column.
|
#3
|
|||
|
|||
what do u mean ?
|
#4
|
|||
|
|||
[sql]SELECT * FROM attachement WHERE extension = 'zip';[/sql]
|
#5
|
|||
|
|||
thanks just one more thing how would i call the attachmentid for the .zip file ? or each zip file ?
would this work ? PHP Code:
|
#6
|
|||
|
|||
Are you coding for 3.0 or 3.5?
|
#7
|
|||
|
|||
only for 3.0.X
|
#8
|
|||
|
|||
Then there is no extension column, you would need to determine the type yourself.
Maybe with a: [sql]SELECT attachmentid FROM attachment WHERE filename LIKE '%.zip';[/sql] |
#9
|
|||
|
|||
well here is the start of the code here
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|