![]() |
[RC3] Attachments per forum for vB3
New update - Please test :)
Please do the following before attempting to install: 1.) Backup your Database & Files before doing anything 2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files or database, I cannot condone your install of this hack... The installation file you should have in the .zip file attached (user can view own ip.zip) is: install_attachments_per_forum_vB3_3.0_txt.php Install Info: Hack Version: 3.0 Beta 2 Files to edit: 5 Templates to add: 0 Templates to edit: 0 Queries to Run: 0 Time to install: Approx 4 Minutes Credits Requested by - Nobody Thanks to - PitchouneN64ngc for helping me with bitfields Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming months (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread Hack info What does it do? - This basically will allow you to set Attachments to be allowed or disallowed Per Forum :) Live Demo/Screenshots There are no current screenshots or Live demos - If anyone is willing to supply some, please do [high]Latest Version[/high] You can download 3.0 Beta 2 below!:) Installed Beta 1? Please read! If you installed the first version of this vB3 hack, you will need to revert all file changes you made previously, and run this query: [sql]ALTER TABLE `forum` DROP `allowattachments`[/sql] Enjoy!:) Satan |
Can you do a text file for this? Auto-installers scare me. ;)
|
It's not an auto-installer ;)
It's just an install file in a .php extension, so that the contained template code doesn't get parsed by vB - It's an old habit from vB2 hacks ;) Satan |
LOL I forgot about that. Sorry. ;)
|
Quote:
Satan |
I'd recomend the use of bitfields for this option in the next realease instead of the outdated method of adding extra columns like you would have with vB2 hacks ;)
|
Quote:
|
I am experimenting with other methods, hence why it is still BETA :)
Satan |
Quote:
|
In this case, the forum table has an options column which contains a single number which can be used to work out what options are set, like use of smilies, vBcode, HTML etc.
Adding another bitfield to the array in init.php that defines your specific option and editing the code that changes the option in forum.php will allow to to check if the bit for your option is set, for example: PHP Code:
I didn't understand these at all when vB3 first came out but after reading a post on vB.com and sort of seeing how they worked and then getting them working with my vBindex hack. They save alot of time when you understand them :) |
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:
|