![]() |
Attachments Per Forum...
The Instructions are in the .txt file attached:)
There are 3 screenshots...There is a more detailed explaination of the hack in the .txt file attached, but the concept is simple : It will allow you to set Attachments to be allowed or disallowed Per Forum:) SQL Queries to Run : 1 Files to edit : 3 (admin/forum.php, root/newthread.php & root/newreply.php) This hack has been tested @ My Forums (DarkBlazes.com)... Satan |
Admin Cp:)
Satan |
New Post with the Attachments...
Satan |
New Post without the Attachments...
Satan |
Hey, this is pretty handy :) I have a few boards where I don't like members to post new threads, nor reply with an attachment.
|
Glad it could help out:)
I use it in conjunction with 2 signature limit hacks, and vBulletin's own Attachment Size limiting software:) - Now my members can only upload attachments of their sigs or avatars, so I can upload them for them, then delete the attachments:) Satan |
quite nice :D
- Mist |
I'll consider that a compliment;):p
Satan |
Nice hack bub. But, it's pretty useless if you have the quick reply box with attachment. A fix for this? (besides removing the attachment box)
|
thankz man im looking this for long time.......
another question if also have can set different attch file bytes per forum function will be better,how do u think?? |
@Smoothie - I never thought of that;) I think, if you replaced the code for the attachment box, with the variable "$atachmentoption", it would work...I shall have a look and get back to you:)
@squawell - Good idea:) Im not quite sure how that would be achieved, but I shall take a look;) Satan |
Smoothie - I know it has something to do with this line in admin/functions.php :
PHP Code:
Satan |
Well, keep pluggin away buddy. It's a great hack, and will be even better when you can figure that qrb out. :)
|
Cool:)
I have an idea how to work it, and I will have a think over the week:) I hope you can wait till next Friday or so;) (school work) Satan |
no problem! take as long as you need. :)
|
Ok:)
I shall see you all next Friday!:) Satan |
How's it going? Any updates?
|
Unfortunately not at this time:(
I am having trouble with identifying what code needs modifying... I know that I have to change some code in admin/functions.php, and will need to in newthread.php and newreply.php, but I am not sure how I can make it recognise the "maxattachsize" if there is no "forumattachsize" set... I will battle on;) I shall post an update on the situation later on:) Satan |
Aha...Some progress:)
I have got no function errors;) Satan |
Also it would be cool if you could make it so you can set the file types allowed per forum, like .zip's in one and .jpg's in another thread.
Is this possible? |
hellsatan-
Bumping this thread because I wanted to ask if its possible to set the size of the attachment per forum. |
Nice hack, I have no real use for it, but, it's a good idea ;D
|
Smoothie, I found a fix for this for the Quick reply Box if you still need it. If you have Logician's Dynamic Templates hack installed, all you need to do is this:
PHP Code:
NOTE: The code for my attachments is a little different than yours. Just use the opening and closing [[($forum[forumallowattach]==1)]] tags on yours. |
Did anyone find a way to limit attachment sizes by Forum? I'd like to set a smaller global size for all forums, but increase max size for 2 private forums.
|
All times are GMT. The time now is 04:46 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:
|