![]() |
Setting pixel & file size queries...
With my Attachments per Forum Hack, Smoothie asked for the ability to set sizes per forum...
I have got these queries to run to test it : [sql]ALTER TABLE `forum` ADD `forumattachsize` MEDIUMBLOB NOT NULL ALTER TABLE `forum` ADD `forummaxwidth` BLOB NOT NULL ALTER TABLE `forum` ADD `forummaxheight` BLOB NOT NULL [/sql] The "forumattachsize" is the size in bytes... The "forummaxwidth" is the maximum width of the image in pixels... The "forummaxheight" is the maximum height of the image in pixels... Are those queries correct, and if not, what are the correct ones? Satan |
I don't think you'd want to use a blob in these cases; blob stores the data in binary, so is suitable for filedata such as the actually image data, for example.
I would use something like: [sql] ALTER TABLE `forum` ADD `forumattachsize` int(11) NOT NULL ALTER TABLE `forum` ADD `forummaxwidth` int(11) NOT NULL ALTER TABLE `forum` ADD `forummaxheight` int(11) NOT NULL [/sql] Although you could change the size of the fields as necessary. |
Thanks:)
Satan |
All times are GMT. The time now is 08:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|