vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Files Upload Center - Upload Your Files To External Server (https://vborg.vbsupport.ru/showthread.php?t=113583)

beebi 04-19-2006 10:00 PM

Files Upload Center - Upload Your Files To External Server
 
Description
allow your users to upload files by a highly rules. which can be customized in your ACP


for 3.5.x AND 3.6.x

Features List:
1- Folder for each member or one folder to all members.
2- You can customize file size, type and the folder size.
3- Full statistics about each file uploaded, by who and the time.
4- Have the option to delet specifiec file or all files for specifiec member.
5- Any member can delet all files he uploaded.
6- Work with safe mode without problems.
7- You can choose specifiec member and give him the right to upload with any size or type.
8- Full information about every member using the uploading center.
9- You can make make any member folder : Unlimited
10- Giving the member (bbcode) to use it on his posts.
11- Customize a setting for each group.
12- Ban member when he try to upload a file that can cause to hack the site (php, htm, cgi)
13- Block specifiec members.
14- upload your files to AN external server. .
15- (NEW) Moderators control panel
16- (NEW) Real name even when you using the digital names.
17- (NEW) Description for uploaded files.
18- (NEW) Disable [tags].
19- (NEW) 16 hooks location built-in. to use it in stores systems
20- (NEW) Upload from post,PM,newthread.

100% Valid XHTML 1.0 Templates
https://vborg.vbsupport.ru/external/2010/10/30.jpg

Installation:
1. Upload the contents of 'upload' to your forum directory.
2. Import product-uploader.xml into your products be going to Plugin System -> Manage Products -> Add/Import Product.
3. Create a directory called 'uploaded' (just make sure it has the same name as the directory in your settings) and make it writable and executable (777 permissions).
4. Go to your 'Usergroup Manager' and assign usergroups permissions.
5. Go to the 'Settings' menu under 'Files upload center options' in your admincp and fill them out accordingly.

upgrade:
1. Upload the contents of 'upload' to your forum directory.
2. Import product-uploader.xml into your products be going to Plugin System -> Manage Products -> Add/Import Product with YSE in Allow Overwrite
3. Go to your 'Usergroup Manager' and assign usergroups permissions.
4. Go to the 'Settings' menu under 'Files upload center options' in your admincp and fill them out accordingly.

Template Edits:
Inside template 'navbar':

Find:
Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Add Below:
Code:

<!-- uploader -->
<td class="vbmenu_control"><a href="uploader.php$session[sessionurl_q]">$vbphrase[uploader]</a></td>
<!-- uploader end -->

Known Bugs:
If you can upload files but you can't browse them, delete .htaccess in the folder uploaded

Translations:
1-English Translation Ghanem .
2-German Trasnlation derblack .

please click install
if you installed this hack. so you can received the update. and to get support thank you.

Regards.

beebi 04-20-2006 05:32 PM

1- Don't you ever disable Digital file names, it's too risk.

2- Don't you ever try to upload max then PHP Maximum Upload Size Attachment 46164.

3- if you don't want your users to to display there IMG in anther site modify the .htaccess Attachment 46217,

4-if you want to enable flash tag use this Attachment 46218

5- to make a user FTP click

beebi 04-20-2006 05:33 PM

Screenshots - ACP

beebi 04-20-2006 05:34 PM

Screenshots - forum

Developer 04-20-2006 05:55 PM

Great hack :)

POSTED by BeeBi:
Cpanel Users
How-To make ftp account via site's control panel

Open Your Cpanel ==> ftp manger
Attachment 46405
You will see a list choose "Ftp Accounts"
Attachment 46406
Then "Add Ftp Account"
Attachment 46407
Login = enter here username as uploaded
password = enter ur password
quota = unlimited (make sure it's unlimited)
directory = enter the full path to ur "uploaded" folder like /home/"ur username that u use it to log in to the cpanel"/public_html/"ur forum dir"/uploaded
Attachment 46408

Atakan KOC 04-20-2006 05:56 PM

Very Nice.

beebi 04-20-2006 05:57 PM

thx :banana:

Ghanem 04-20-2006 06:02 PM

glad to see it finally in english
been using it for few months with out any prb
Thank you very much :)

The Chief 04-20-2006 06:29 PM

This looks good, will check it out :)

Zachery 04-20-2006 06:35 PM

For starters, theres no reason to ever store attachments (of any kind) in a webaccessable folder.

It seems that you retain the original filenames? Why? It would be better to store the entrys filetype in the database and pass the fileinfo back in the headers and serve the file dynamicly, much like how vB already does it.

Also, some filesystems have a limit of files/folders that they can store in a single directory, even with the /userid setting that could still get bad.

Anyreason you don't just store the files with a more useable namespace, like userid_attachid.attach ?

beebi 04-20-2006 06:39 PM

Quote:

Originally Posted by Zachery
For starters, theres no reason to ever store attachments (of any kind) in a webaccessable folder.

It seems that you retain the original filenames? Why? It would be better to store the entrys filetype in the database and pass the fileinfo back in the headers and serve the file dynamicly, much like how vB already does it.

Also, some filesystems have a limit of files/folders that they can store in a single directory, even with the /userid setting that could still get bad.

Anyreason you don't just store the files with a more useable namespace, like userid_attachid.attach ?

I like it this way

If u want it in the database use attachments system

kall 04-20-2006 06:46 PM

Quote:

Originally Posted by Developer
and it's realy TOTALY secured.

Please explain what that means.

*edit to add quoted text*

hotwheels 04-20-2006 06:59 PM

very nice

COBRAws 04-20-2006 07:02 PM

GOOD one.

About what Zachery said, I partly agree on that. But I take this hack as a public imageshack for our boards. In this case I believe its better having original names instead of an attachment ID'ed URL like the one in the attachmnets system vB uses.
Just my opinion tho.

mbaa 04-20-2006 07:03 PM

Great Hack ..

Thanx beebi :) :) :)

Zachery 04-20-2006 07:07 PM

Quote:

Originally Posted by beebi
I like it this way

If u want it in the database use attachments system

I'm not asking you to store attachments in the database, vB does have an option to store files in the filesystem.

jugo 04-20-2006 07:39 PM

Quote:

Originally Posted by Zachery
I'm not asking you to store attachments in the database, vB does have an option to store files in the filesystem.


Beat me to it.

Nice idea, could use a bit more thogu, can't quite put my finger onit. but I totally agree with Zach.

Makaveli105 04-20-2006 07:54 PM

I installed, when I go to upload something it comes to a page saying:

"You did not select a file"

beebi 04-20-2006 08:02 PM

Quote:

Originally Posted by Zachery
I'm not asking you to store attachments in the database, vB does have an option to store files in the filesystem.


when u use the filesystem in the VB.
it gives u a Dynamic URL which is disabled by default in the VB

Attached img :cool:

Omranic 04-20-2006 08:03 PM

** Installed **

will return back here after testing

thnx alot

beebi 04-20-2006 08:08 PM

Quote:

Originally Posted by kall
Please explain what that means.

*edit to add quoted text*

its means to many things just click install AND you'll hear it

Ghanem 04-20-2006 08:18 PM

Zachery, jugo, you are missing some of the center features
Eg:
- the member can refer back to all his uploaded files, use them again in his posts
- direct link that does not contain characters like (?)
- Safty is guranteed, files are renamed, php extensions not allowed
- files can be stored in any location the admin choose, even a different server.
- control based on files, members

Simply, at least to me, its much better than the VB attachments :)

beebi 04-20-2006 08:22 PM

Quote:

Originally Posted by Ghanem
Simply, at least to me, its much better than the VB attachments :)

nice one bro :banana:

Makaveli105 04-20-2006 08:35 PM

I've been playing around with things, double checking everything I can, and I still get the error, even though I specified a file.

"You did not select a file"

I dont get what Im doing wrong

beebi 04-20-2006 08:51 PM

Quote:

Originally Posted by Makaveli105
I've been playing around with things, double checking everything I can, and I still get the error, even though I specified a file.

"You did not select a file"

I dont get what Im doing wrong

if the safe mode is enable u have to set Private folder for each member
to no. Create member private folders using FTP to no.
give uploaded folder 777 permissions.

Ntfu2 04-20-2006 08:58 PM

Ideas for improvement,

Allow uses to upload a .zip file of images, then the uploader would unzip these files,
Add a watermark to them as well :D and then it would kick even more arse

Makaveli105 04-20-2006 09:00 PM

Yup, Safe mode is On, both of those options are set to "No". And my uploaded folder is chmodded to 777. Yet it still says "You didn not select a file"

beebi 04-20-2006 09:06 PM

Quote:

Allow users to upload a .zip file of images, then the uploader would unzip these files
very nice and I do like it but do u think the users will understand this one?

Quote:

Add a watermark to them as well and then it would kick even more arse
don't worry I'll use https://vborg.vbsupport.ru/showthread.php?t=112829 If u don't mind ;)

beebi 04-20-2006 09:16 PM

Quote:

Originally Posted by Makaveli105
Yup, Safe mode is On, both of those options are set to "No". And my uploaded folder is chmodded to 777. Yet it still says "You didn not select a file"

Are u sure u have not change Main folder name
and did u upload max then 2MB

may by copy function is disable in your server contact your host

Johhhn 04-20-2006 09:18 PM

Quote:

Originally Posted by Ghanem
- files can be stored in any location the admin choose, even a different server.

REALLY??

We can store files on a different server?!?!?!?

I've been waiting for something like this for centuries!

I didn't see it noted in the above description, but can someone confirm this? and how does it work?

thanks!

:banana:

beebi 04-20-2006 09:24 PM

Quote:

Originally Posted by Johhhn
REALLY??

We can store files on a different server?!?!?!?

I've been waiting for something like this for centuries!

I didn't see it noted in the above description, but can someone confirm this? and how does it work?

thanks!

:banana:

yes it can

but u need to set out ftp and some modfiy. I rely have not test it yet

Makaveli105 04-20-2006 09:31 PM

Quote:

Originally Posted by beebi
Are u sure u have not change Main folder name
and did u upload max then 2MB

may by copy function is disable in your server contact your host


my host is useless when it comes to requests, lol. BUT, users can upload their own attachments and avatars, so does this use the same function as vbulletin uses for those 2 features?

Barakat 04-20-2006 09:34 PM

installed ... thanks for that nice hack

beebi 04-20-2006 09:45 PM

Quote:

Originally Posted by Makaveli105
my host is useless when it comes to requests, lol. BUT, users can upload their own attachments and avatars, so does this use the same function as vbulletin uses for those 2 features?

looooooooooooool

ok
open uploader.php
find
@copy
repleas it with
@move_uploaded_file

Makaveli105 04-20-2006 09:52 PM

lol, i know, ive NEVER gotten them to change anything to help me out. lol.

I did that and I still receive the same error

beebi 04-20-2006 10:02 PM

ok mmmmmmmmm

find

Code:

      if (!file_exists($vbulletin->GPC['file']['tmp_name']))
      {
            eval(standard_error($vbphrase['no_file']));
      }
      elseif ($fileisin = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "uploader WHERE userid = " . $vbulletin->userinfo['userid'] . " AND file_size = " . $vbulletin->GPC['file']['size'] . " AND file_name LIKE '%" . $db->escape_string($ext) . "%'"))

replase it with
Code:

if ($fileisin = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "uploader WHERE userid = " . $vbulletin->userinfo['userid'] . " AND file_size = " . $vbulletin->GPC['file']['size'] . " AND file_name LIKE '%" . $db->escape_string($ext) . "%'"))

Makaveli105 04-20-2006 10:11 PM

:( Still the same. Sorry bout this :S I don't know what could be wrong. If you want I can give you access to my forums?

beebi 04-20-2006 10:15 PM

Quote:

Originally Posted by Makaveli105
:( Still the same. Sorry bout this :S I don't know what could be wrong. If you want I can give you access to my forums?

that will be fine
send it to webmaster@7beebi.com

yinyang 04-20-2006 11:56 PM

Quote:

Originally Posted by Ghanem
- files can be stored in any location the admin choose, even a different server.

is there a way to use that GMAIL Drive in conjunction with this? for all that don't know, gmail drive converts your gmail account into basically a new disk drive.

it would be great to use that or several other 1 gig mailboxes for filestorage. could be a lot of possibilities... i.e., opening gmail accounts for each user .... i.e. user.domain@gmail.com and then uploading those files using gmail drive.

beebi 04-21-2006 12:40 AM

Quote:

Originally Posted by yinyang
is there a way to use that GMAIL Drive in conjunction with this? for all that don't know, gmail drive converts your gmail account into basically a new disk drive.

it would be great to use that or several other 1 gig mailboxes for filestorage. could be a lot of possibilities... i.e., opening gmail accounts for each user .... i.e. user.domain@gmail.com and then uploading those files using gmail drive.

I need to check it out first


All times are GMT. The time now is 07:13 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.01494 seconds
  • Memory Usage 1,840KB
  • 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
  • (4)bbcode_code_printable
  • (18)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
  • (40)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