Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Attachments as files Details »
Attachments as files
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: (2 votes - 5.00 average) Installs: 121
Released: 18 Feb 2002 Last Update: Never Downloads: 17
Not Supported  

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

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 18 Feb 2002, 15:27
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
Parse error: parse error in /www/nitrosim/forum/admin/attachment_install.php on line 345
__________________
NitroSimSev
NitroSim.com - "SuperCharge Your Computer"
Reply With Quote
  #3  
Old 18 Feb 2002, 15:42
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
did you upload in ascii mode?

Cause line 345 in the end tag ?>

__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #4  
Old 18 Feb 2002, 16:09
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
Yup......Will re-upload it and try it again.
__________________
NitroSimSev
NitroSim.com - "SuperCharge Your Computer"
Reply With Quote
  #5  
Old 18 Feb 2002, 16:12
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
Same error....

COMMAND:> STOR attachment_install.php
STATUS:> Connecting data socket...
150 Opening ASCII mode data connection for attachment_install.php.
STATUS:> Send successful
STATUS:> Time: 0:00:01, Efficiency: 20.51 KBytes/s (21005 bytes/s)
226 Transfer complete.
__________________
NitroSimSev
NitroSim.com - "SuperCharge Your Computer"
Reply With Quote
  #6  
Old 18 Feb 2002, 16:12
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
what is line 345 and I will look at it.
__________________
NitroSimSev
NitroSim.com - "SuperCharge Your Computer"
Reply With Quote
  #7  
Old 18 Feb 2002, 17:18
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Thanks for quoting.

Just an 'old user' question: is the attached installer the same than in Beta section (where it's vanished) ?
Thnx
Reply With Quote
  #8  
Old 18 Feb 2002, 18:21
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
To fix the problem above try removing any spaces and extra lines after ?>. haven't tried it yet, i'm not at my comp but that might work.
Reply With Quote
  #9  
Old 18 Feb 2002, 20:50
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
Question: In the file modifications part of the installation, we are told to search for a particular bit in the file editpost.php. In my editpost.php file, the bit to search for occurs two times. The second is about eight lines below the first. Should I add the new code above BOTH instances, or just the first, or just the second?
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #10  
Old 18 Feb 2002, 21:15
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
For the record, I put it above the FIRST instance only. I haven't tested that specific functionality yet, though.

Everything else worked fine. I didn't have any problems at all.

And I'm happy to report that in my database, the attachment table was reduced from 61.9MB to 88kB! Woohoo!
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #11  
Old 19 Feb 2002, 11:10
Wolf42's Avatar
Wolf42 Wolf42 is offline
 
Join Date: Nov 2001
Real name: Wolfgang Strasser
I added (like the instruction told) the line twice

Worked perfectly! Thanks PPN!
__________________
MfG
Wolf42
My Hacks:
Stars for vB2.2.1 (english/german)
Get new post, but not own
Reply With Quote
  #12  
Old 19 Feb 2002, 12:05
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
do it twice, its the addition of the function which removes the attachment file.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #13  
Old 19 Feb 2002, 13:17
NitroSimSev NitroSimSev is offline
 
Join Date: Nov 2001
Ok the issue was of all things the ? didnt have the > after it. Question regarding the functions.php editing portion. The first step says to "REPLACE from that point to the end of the function with". When I do this step it crashes the functions.php any ideas?
__________________
NitroSimSev
NitroSim.com - "SuperCharge Your Computer"
Reply With Quote
  #14  
Old 19 Feb 2002, 14:25
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
define crashes?

you get a parse error?

if you want send me your functions.php to software@pp-network.com and I'll add that of the hack to your file and mail it back.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #15  
Old 19 Feb 2002, 16:31
pdaGuy pdaGuy is offline
 
Join Date: Dec 2001
Unhappy

I tried to test this on my local site, on a Windows PC and I get this error...
Fatal error: Call to undefined function: cpheader() in c:\appserv\www\vbulletin\attachment_install.php on line 112
I get the same error on my live site too! Any ideas?

I also want to ask something else.
If everything goes well and I install this hack, will it be possible to upgrade to a new version of vBulletin in the future?
I mean, this hack edits the database! What will happen when vBulletin v3.x comes out??
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 14:22.

Layout Options | Width: Wide Color: