Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allowed Attachment Extensions per Forum Details »»
Allowed Attachment Extensions per Forum
Version: 1.00, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 06-13-2005 Last Update: 06-13-2005 Installs: 6
DB Changes
Code Changes  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-14-2005, 10:51 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved for update notices.
Reply With Quote
  #3  
Old 06-14-2005, 12:00 PM
SlimWicked SlimWicked is offline
 
Join Date: Apr 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 06-14-2005, 12:16 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-14-2005, 12:18 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zip file updated.
Reply With Quote
  #6  
Old 06-14-2005, 12:31 PM
SlimWicked SlimWicked is offline
 
Join Date: Apr 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 06-14-2005, 12:33 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm what php version are you using?
Reply With Quote
  #8  
Old 06-14-2005, 12:38 PM
SlimWicked SlimWicked is offline
 
Join Date: Apr 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #9  
Old 06-14-2005, 12:41 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 06-14-2005, 12:46 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05255 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete