Version: 1.00, by Scott MacVicar
Developer Last Online: Mar 2016
Version: 2.2.x
Rating:
Released: 02-17-2002
Last Update: Never
Installs: 121
No support by the author.
Well after alot of time leaving it in the beta hacks forums without any problems, I'm now moving it to the Full Releases, I'm satisfied that there isn't any bugs that need to be addressed. Thanks to Jawelin he pointed out most of the mistakes through alot of his testing.
I've attached it as an installer file here, as it needs to make changes to the database. Two new rows to settings and a new column in the attachment table.
Scott
Updated some more
Note the > is missing off the bottom of the file after the ?, add it before trying to install
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Was wondering if this hack is kinda like what vb3 does now? It saves attachments as files and your database size will be greatly reduced correct? But Diskspace will be increase??
The main benefit that i can see and want is ease of transfering to a new server without dealing with the attachments in the database. Let me know.
Today at 01:32 AM shorty said this in Post #359 If this is true.. Im installing this hack tonight!
Thanks for the information BB that it works with beta 5.
Yep, it IS true !! It was Soo true I did it three times!! (ok, so I couldn't sleep last nite)
Be SURE to follow the instructions closely, and be patient.
MY issue was that even thou I altered the attachpath variable to be the CORRECT value, the cache was still point back to the place I restored it FROM (an invalid path).
So, I flushed cache, and ran again, and log and behold, it worked just fine.
So....here is what I did.
Create a backup (I have a cron script, but it's the same as reccomended by the VB3.0 upgrade)
Create a database for VB 3.0 (if your host only allows one, of course you cannot do this)
Restore the new DB using the backup just made (Skip this is you only have one DB available to you)
Using PHPmyAdmin, add the field filedata back to the attachments table;
Code:
ALTER TABLE attachment ADD filedata mediumtext NOT NULL
Run Repair, and Optimize on the attachment table using the functions in PHPMyAdmin
Again, using PHPmyAdmin, select the settings table, and locate the variable attachpath Edit this to ensure you have the CORRECT path there. What's key here is that it is an absolute path;
Code:
For my installation it was;
/home/virtual/site22/fst/var/www/html/vb30/attach_folder
Execute admin/attachment_upgrade.php - On the BBF test Server, a full copy of VB 2.3.0 was already place in the VB30 directory structure, so that prior to the VB30 cutover I could still access it as 2.3.0. The script attachment_upgrade.php depends on the vb 2.x struture to be intact and in place to work correctly. Believe me, I called it's bluff.
Once That completed, I proceeded thru the install/upgrade.php, no issues, or worries, straight thru. It DID take some time, as 1.3 GB worth of attachment files takes a bit of time.
Next up? Pushing them BACK out to the file system, along with the Av's!
PARTY on VB!! I'm renewing today! Totally pleased, am I!