Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Create files from attachments Details »
Create files from attachments
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: 24
Released: 05 Mar 2002 Last Update: Never Downloads: 3
Not Supported  

This is not like the attachments as files hack, it is simply a way to import files from the attachment table to real files for whatever reason, maybe you just wanted an actualy backup of the files instead of the database.

Simply upload the file into your admin directory.

Open up /admin/index.php

look for


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

below it add


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

done

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
Major Additions Files Upload Center - Upload Your Files To External Server beebi Modification Graveyard 328 01 May 2009 07:07

Comments
  #2  
Old 05 Mar 2002, 19:44
M.Smith M.Smith is offline
 
Join Date: Feb 2002
Real name: Martin
another useful hack from scott, the new mod
Reply With Quote
  #3  
Old 05 Mar 2002, 22:03
Jadelit Jadelit is offline
 
Join Date: Mar 2002
I dunno if its just me, but when I press the link to it:


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

it gives a 404, but when i go to


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

it works fine...

?
Reply With Quote
  #4  
Old 05 Mar 2002, 22:30
Jawelin Jawelin is offline
 
Join Date: Nov 2001
WoW!!!
The long-awaited stand alone exporter !!! Great!
(Scott, do you remember our thread about in beta ? )

This point, seems it's missing only the 2-way converter, if anyone would come back to the db-version of attachments...

I'm jokin'... of course.
Great job as usual.
Bye
Reply With Quote
  #5  
Old 05 Mar 2002, 22:30
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
em i missed the action bit, re-apply the change to your /admin/index.php from the first post
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #6  
Old 05 Mar 2002, 22:38
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
On a side note, this hack RELIES on two files not having the same name, if they do it will just rewrite the first one with later ones.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #7  
Old 05 Mar 2002, 22:47
Jadelit Jadelit is offline
 
Join Date: Mar 2002
ok great, thanks
Reply With Quote
  #8  
Old 06 Mar 2002, 00:12
Lucky Lucky is offline
 
Join Date: Dec 2001
Are you sure that this:
if ($action == "import") {
doformheader("attachment_import","doimport");
maketableheader("Add New Forum");

Shouldn't be this:
if ($action == "import") {
doformheader("attachment_export","doimport");
maketableheader("Add New Forum");
Reply With Quote
  #9  
Old 06 Mar 2002, 09:53
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Thx Scott This is our first request that has actually turned into a hack, LOL!!

Thanx buddy, gonna use it right away
Reply With Quote
  #10  
Old 06 Mar 2002, 10:22
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Well, it has worked really well... Now we have a HUGE folder with a LOT of attachments!

Would it be possible to make a zipped output of the backup instead of all the files in one folder?

Thanx again for the hack
Reply With Quote
  #11  
Old 06 Mar 2002, 11:28
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
nope thats definately beyhond the limitations of php, yes it wouldn't be hard to zip a couple of files, but it would have a limit of about 30mb worth of files as if you tried to zip any more i'm sure that php would run out of memory.

You can simply tar then gzip it in shell

tar -cvf attachments.tar attachments
gzip attachments.tar

and you get attachments.tar.gz
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #12  
Old 06 Mar 2002, 19:56
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Does this export all files, or can you choose only certain attachments? I don't want people to be able to download all the file without having to do some through the board (because it gives download counts).
Reply With Quote
  #13  
Old 06 Mar 2002, 20:43
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
It exports all files, though I'm workin on an attachment manager which allows you to manipulate attachments via the admin panel, delete attachments, view attachments, rename attachment, make attachment to file or upload a new attachment. You can also sort the attachments via size and search and other things really.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #14  
Old 07 Mar 2002, 20:25
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Oh that's great thanks

If you need a beta tester let me know
Reply With Quote
  #15  
Old 07 Mar 2002, 21:56
Scrooge Scrooge is offline
 
Join Date: Nov 2001
I'm getting the following error:

Warning: fopen("/home/reefaqua/public_html/forums/attachments/hermit crab small.jpg", "wb") - Permission denied in /home/reefaqua/public_html/forums/admin/attachment_export.php on line 32

Warning: Supplied argument is not a valid File-Handle resource in /home/reefaqua/public_html/forums/admin/attachment_export.php on line 33

Any ideas?
Reply With Quote
Reply


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 01:58.

Layout Options | Width: Wide Color: