vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Allowed Attachment Extensions per Forum (https://vborg.vbsupport.ru/showthread.php?t=83055)

Marco van Herwaarden 06-13-2005 10:00 PM

Allowed Attachment Extensions per Forum
 
Allowed Attachment Extensions per Forum - Version 1.00

What does this hack do?
It will allow you to set the allowed attachment extensions (file types) on a per forum base.

Installation:
Install/uninstall script included. Time to install 2 minutes. 2 file edits, 1 new column in forum table.

How it works?
You will find a new option to set allowed extensions in Forum Manager->Edit Options. You can set per forum a comma seperated list of allowed extensions. Leave this option blank to allow all default extensions.

Screenshots:
Are you kidding me? Ok, added one of the Forum settings page.

Disclaimer:
Make a backup of your forum before installing any hack. I can not held liable for any damage.

Donations.
Donations are not asked for, but if they are made they will be greatly appreciated. Paypal: marcoh64@gmail.com

SlimWicked Donated for this hack. Very much appreciated.

Please click install if you have this hack running on your board.

Marco van Herwaarden 06-14-2005 10:51 AM

Reserved for update notices.

SlimWicked 06-14-2005 12:00 PM

after uploading all files to the install directory and after running
www.mysite.com/install/hack_install.php

i get this error message...

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290

Fatal error: Call to undefined function print_cp_header() in /home2/facialf/public_html/install/his_files/hack_install_b3.php on line 67

Marco van Herwaarden 06-14-2005 12:16 PM

Oops my mistake. All from the upload directory should go into the 'install' directory.

I will update the zip-file in a minute, or you can just upload into install.

Marco van Herwaarden 06-14-2005 12:18 PM

Zip file updated.

SlimWicked 06-14-2005 12:31 PM

after uploading all files to the install directory and after running
www.mysite.com/install/hack_install.php

i get this error message...

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290

Fatal error: Call to undefined function print_cp_header() in /home2/facialf/public_html/install/his_files/hack_install_b3.php on line 67

Marco van Herwaarden 06-14-2005 12:33 PM

Hmm what php version are you using?

SlimWicked 06-14-2005 12:38 PM

i'm using php 5.0.4

also in the hack_install_b3.php

Quote:

// Protect this file as if it was ran in /admincp.
chdir("../$admincpdir");
does "chdir("../$admincpdir");" needs to be chdir("../$admin_cpdir");
if i renamed my admin directory to admin_cp or that doesn't really matter..

Marco van Herwaarden 06-14-2005 12:41 PM

No That variable gets replaed by the real name of your admincp directory.

I uploaded a new zip, with a modified hack_install_b3.php to also support PHP5. Not tested on PHP5, but it can do no harm.

You can reupload all files, or just the hack_install_b3.php

Edit: Hang on a second, must check soemthing.

Marco van Herwaarden 06-14-2005 12:46 PM

If this is your first install using the HIS installer (the installer that is included) and you have renamed your admincp, follow these instructions:
- Go to the directory ./install/his_files
- Rename 'hack_config_default.php' to 'hack_config.php'
- Open the file and edit it to use the correct admincp directory.

If you use any future hacks that have a HIS isntaller included, this (renamed) config will not ber overwritten, so this is one time setting.


All times are GMT. The time now is 01:34 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
  • Page Generation 0.01185 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete