Register Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Mod Options
Attachments Not in Database Details »
Attachments Not in Database
Mod Version: 1.00, by Scott MacVicar (Member) Scott MacVicar is offline
Developer Last Online: Mar 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 12
Released: 21 Jan 2002 Last Update: Never Downloads: 1
Not Supported Is in Beta Stage  

This is a hack which allows you to save the attachments as files and not within the database. The main problem with this was the fact that it posed certain security issues, these have been tackled by doing the following
  • Placing the folder below document root
  • Using random hashes to name the file
  • Changing the file extension to .file
  • Never divulging the path to the file

This is a beta hack, it has been tested on a development board. I have had insufficent time to fully complete the attachment importer, this removes the files from the database and creates them as physical files in the attachment folder. I will post this as soon as possible.

Looking forward to your feedback.

Scott

To install this hack upload this file to the admin directory and then view it in your browser.

All the changes that Jawelin suggested have been applied, thanks man

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vb3 Attachments - Including Multiple Attachments Option rake vBulletin 2.x Full Releases 273 24 Sep 2006 04:10
Private Attachments! (Attachments in Private Messages) Chen vBulletin 2.x Full Releases 117 22 Jan 2004 18:35

Comments
  #2  
Old 21 Jan 2002, 23:27
Dade's Avatar
Dade Dade is offline
 
Join Date: Jan 2002
Man oh man, thanks!
  #3  
Old 22 Jan 2002, 02:11
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
this is great. Although I can't experiment much with it I hope people that install it say how it goes.
  #4  
Old 22 Jan 2002, 04:09
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Real name: Jonathan
Thumbs up

I will install it on my test board tonight and let you know how it goes PPN.
  #5  
Old 22 Jan 2002, 04:31
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Real name: Jonathan
Well, I have just installed it and was about to test it yet I noticed the below, is there suppsed to be 5 boxes to place the root directory path in?
Attached Images
File Type: gif attach.gif (9.0 KB, 205 views)

Last edited by SaintDog; 22 Jan 2002 at 04:37.
  #6  
Old 22 Jan 2002, 07:14
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
how many times did you run the query to insert into settings???
__________________
Scott MacVicar
vBulletin Developer
  #7  
Old 22 Jan 2002, 08:17
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
PPN you ARE the man

Not going to install this just yet, but a massive thanks for making it! - it is needed by the masses!
__________________
utassault.net forums
Free hosting for
28 co-branded Unreal Tournament clans/projects
  #8  
Old 22 Jan 2002, 08:51
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
i've completed the other bits i forgot about, the edit and delete options that are placed around the vBulletin files.

I'm in school at the moment so i'll load the file when i get home and mention it in the first post, will also work on an installer file.
__________________
Scott MacVicar
vBulletin Developer
  #9  
Old 22 Jan 2002, 09:14
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Real name: Jonathan
Originally posted by PPN
how many times did you run the query to insert into settings???
Only once for each query - this is being run from my windows server though so there could be some problems.

I will try again though with a clean install.
  #10  
Old 22 Jan 2002, 09:41
epic's Avatar
epic epic is offline
 
Join Date: Oct 2001
something wrong when use this hack

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

My 1742 line is
move_uploaded_file($attachment, "$path");
  #11  
Old 22 Jan 2002, 12:36
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Real name: Maurice
Great PPN, gonna test this hack later.
  #12  
Old 22 Jan 2002, 14:50
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
@SaintDog
I wrote this hack on a windows2000 server and it worked fine on it, also tested it on a linux system and a raq, havent had any problems. Tested them both with and without safe mode enabled in php, again no problems.

@epic
you haven't set the path to move the files to in the options part of the control panel. There is a large paragraph at the bottom of the hack file, read this and do what it says.
__________________
Scott MacVicar
vBulletin Developer

Last edited by Scott MacVicar; 22 Jan 2002 at 14:52.
  #13  
Old 22 Jan 2002, 15:21
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Quick question:

Will this maintain the permission for each attachment in a private forum? I.E. if an attachment is posted in the moderators forum - will registered users still be able to see it?

Thanks.
__________________
utassault.net forums
Free hosting for
28 co-branded Unreal Tournament clans/projects
  #14  
Old 22 Jan 2002, 15:27
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
yes it will, the only difference between this and normal attachments is where it is stored.

As they are required to download the file via attachment.php the appropriate security checks will still be done before they are given the content.
__________________
Scott MacVicar
vBulletin Developer
  #15  
Old 22 Jan 2002, 16:03
epic's Avatar
epic epic is offline
 
Join Date: Oct 2001
Originally posted by PPN
@SaintDog
I wrote this hack on a windows2000 server and it worked fine on it, also tested it on a linux system and a raq, havent had any problems. Tested them both with and without safe mode enabled in php, again no problems.

@epic
you haven't set the path to move the files to in the options part of the control panel. There is a large paragraph at the bottom of the hack file, read this and do what it says.
I use this hack accord your attachment file.
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 07:18.

Layout Options | Width: Wide Color: