vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Upload Hack (https://vborg.vbsupport.ru/showthread.php?t=37233)

Slynderdale 04-10-2002 03:21 AM

im working on a updated uploads and config, i never thought so many people would like it, heres what the update will have

PHP Code:

//**Email Configuration - use to control the uploading
$email=""Webmasters email
$email_notify 
"no" //If yes, it emails the email above if some one uploads and deletes a file
//Note: Web host must have email support

//**URL Configuration - change them to fit your site
$absolute_path "/home/your site/files"//Absolute path to where files are uploaded
$site_url "http://your site.com/files/"//the url to where files are uploaded
$log_path ""//the path to where the log file will go

//**File Configuration - use to control the uploading
$logging "no" //logs what people do to a text file
$size_limit "no"//do you want a size limit yes or no.
$limit_size "2000"//How big do you want size limit to be in bytes
//Note: 1 KB = 1024 bytes 1 MB = 1048576 bytes
$limit_ext "yes"//do you want to limit the extensions of files uploaded
$extensions = array(".gif"".jpg"".jpeg"".png"".bmp"); //List extensions you want files uploaded to be
$pixellimit "false";  //do you want to limit the pixel size of images?
$resizeimg "false";  //resize the image if its to big
$widthlimit "100";  //max width size in pixels
$lengthlimit "100";  //max length size in pixels
$allow_databaselimit "yes";  //limit members database size?
$database_quota_limit "5048576";  //database size limit in bytes

//**Account Configuration - use to add accounts and limit there access
$bannedaccounts = array();
$allow_guest_uploads "yes";

//**Site Configuration - use to change how the uploader looks
$show_img "yes"//do you want the image you uploaded to show on the screen after you upload
$show_link "yes"//do you want the link to the file you uploaded to show on the screen after you upload
$comment_mainpage ""//The comment that apears at the bottom of the main page
$comment_upload ""//The comment that apears at the bottom of the upload page
$comment_view ""//The comment that apears at the bottom of the view page
$comment_delete ""//The comment that apears at the bottom of the delete page
$link_url ""//The url of the link that apears at the bottom of every page
$link_name ""//The name of the link that apears below every page

//**Color and Text Configuration
$color_background "#18576F"//The background color
$color_title_table "#5E6A7B"//The title table color
$color_body_table "#818EA0"//The body table color
$color_text "#FFFFFF"//The text color
$color_link "#818EA0"//The link color
$color_vlink "#5C697A"//The visited link color
$color_alink "#818EA0"//The active link color
$text_font "Verdana"//The font the text uses
$text_size "8"//The text size
$text_size_title "8"//The title table text size
$text_size_body "8"//The body table text size

//**Database Configuration
$checkservername "localhost";            // hostname or ip of server
$dbcheckbase     "database name";        // name of database
$encryptedpw      "true";            // encrypted (md5) passwords on/off (true/false)
$dbcheckusername "database username";   //database user name
$dbcheckpassword "database password";   //database password 


Neo 04-10-2002 03:28 AM

Its a nice hack, I will wait for the update before I install

Slynderdale 04-10-2002 03:39 AM

the update will be out in a day or two, at the most, a week, when its done it should be highy customizable, you can install version 1.0 if you want but when 2.0 you can just edit the config and upload over the old files. Hmm, idea, maybe add some admin options like view a list of those who uploaded, there quota, and a view and delete ability.

Neo 04-10-2002 03:44 AM

I will use the current version and then update once it is ready. thanks for the info.

freakyshiat 04-10-2002 04:47 AM

keep up the good work, 2.0 looks promising

freakyshiat 04-10-2002 05:02 AM

oh and how about pics with spaces or illegal characters....can it pop an error saying unacceptable file name or something?

Slynderdale 04-10-2002 06:07 AM

hmm alright, ill add some customizable error messages that come up for errors, also in the new version im gonna fix the coding up so its esier to read and cleaner

WallStreat 04-10-2002 06:32 AM

The following code can help to generate thumbnails, provided your server is installed with imagemagick:


PHP Code:

if ($extension == "gif" or $extension == "png") { 



system("$galleryconvert -geometry '160x120>' $path GIF:$thumbname"); 



} elseif (
$extension == "jpg" or $extension == "jpeg" or $extension == "jpe" or $extension == "png" or $extension == "bmp") { 



system("$galleryconvert -geometry '600x120>' $path -flatten -quality '75' JPEG:$thumbname"); 





1. $path refers to the directory where u store the thumnails e.g.
$path = "/home/yoursite/public_html/images";

2. $thumbname refers to the name u give to your thumbnail

Modshack 04-11-2002 08:52 PM

Quote:

Originally posted by Slynderdale
If you plan on useing this on your website, i only ask for one thing, dont say you made it, if you want to give me credit for it you can, you can edit it as you wish, also if you like it, please press install the hack so you get notices on any new updates on it, Thank You :)
Does this include you adding a credit to CyberGaf who made the vbauth file here http://www.vbulletin.org/hacks/index...ack&hackid=282 ?
for the use of the script which you have edited that he created ?

camikazi2k 04-12-2002 01:02 AM

i am installing this now definitlly, hope it do fix my upload limit problem :)
well let ya know
thanks alot


All times are GMT. The time now is 03:31 AM.

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.01070 seconds
  • Memory Usage 1,770KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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