Version: 1.00, by Chris M
Developer Last Online: Feb 2013
Version: 3.0.0
Rating:
Released: 01-09-2004
Last Update: Never
Installs: 4
Is in Beta Stage
No support by the author.
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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
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
I agree ... permission-based hacks should utilize vb's bitfield values for permissions and options. For example, you can add a new bitfield under $_FORUMOPTIONS. There is no need to modify table in this case.
I agree ... permission-based hacks should utilize vb's bitfield values for permissions and options. For example, you can add a new bitfield under $_FORUMOPTIONS. There is no need to modify table in this case.
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:
if ($forum['options'] & CANHAVEATTACHMENTS) {
// this forum can have attachments, place code here
} else {
// this forum can't have attachments
}
CANHAVEATTACHMENTS would be defined in the $_FORUMOPTIONS array in init.php and is then defined as a constant later on.
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