Helpful Information
 
 
Category: vBulletin 3.0 Beta Releases
[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 (http://www.vbulletin.org/forum/member.php?u=18422) 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

Latest Version

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:

ALTER TABLE `forum` DROP `allowattachments`

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. ;)

LOL I forgot about that. Sorry. ;)
No problems :p

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 ;)

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 am experimenting with other methods, hence why it is still BETA :)

Satan

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.
How would you do this? I'm curious to learn. ;)

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:

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 :)

I have to install the hack, Ok, but it seems not to function, but do not have to authorize the file joined and one can nevertheless put them, an idea?

i am on RC3 ;)

Hmm, can you make it so I can specify How Many attachments, and if attachments can be made when replying in a certain forum.

-> Forum id = 2, number of maximum attachments in new thread = 1
-> Forum id = 2, cannot attach when "replying" to a thread

Xyphen - Perhaps in the Final version I can :)

Satan

On RC3, it's OK ;)

Thank you Hellsatan :)

Normally, this hack works without any problem.

Try it :)

I assume to help everybody for this hack if any problem exists.

100% compatible RC4.

* PitchouneN64ngc clicks install :)

http://forum.vbulletin-fr.org/licence.php

Once again, thank you for the assist :)

Assuming no bugs are reported by Sunday evening, I shall re-release as a full version :)

Satan










privacy (GDPR)