The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Content Type Id
Hi,
I'm trying to get the extension of a defined attachement on the DB. On vB3, I used : Code:
SELECT attachmentid, userid, dateline, contentid, extension FROM vb4_attachment WHERE extension IN ('jpeg', 'jpg', 'png'); But on vB4, there isn't 'extension' field anymore. There is a 'contenttypeid' field in 'vb4_attachment' table and an 'extension' field in 'vb4_attachmenttype' table, and I didn't find any link between these fields. Can you help me? Thanks PS : Is there any diagram of the database somewhere? |
#2
|
||||
|
||||
In attachments you will find a field called filedataid - this links you to the relevant record in te filedata table, the extension is one of the fields in this table.
|
#3
|
|||
|
|||
Ok it works, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|