Page Index Toggle Pages: [1] 2 3 ... 17 Send TopicPrint
Very Hot Topic (More than 25 Replies) [UPDATED] File Attachment 3.0i SP 1.3.x (Read 63779 times)
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
[UPDATED] File Attachment 3.0i SP 1.3.x
Oct 16th, 2004 at 10:41pm
Print Post  
As promised a new version of File Attachments.

This version is server independent, should not complain about tempfiles, allows reattaching and deleting attachments, has auto-rename or overwrite mode and should be Perl independent.

Installation.

- Install the mod using boardmod
- Upload the changed scripts to your host
- Upload the new script Attachments.pl into /Sources
- Upload the new files into /Variables
- Upload the new Modules/Upload including content into the yabb maindir
- Upload the paperclip,gif into the YaBBImages dir

Read the Read Me for full instructions on chmods.

Please test as this should work equal to the latest version of FA integrated in SP2.

3.0a
- Fixed mod for errors in Post.pl
- added two missing lines in the mod for ModifyMessage.pl
- Added CGI/Util.pm for servers not having this module

3.0b
- Added No Overwrite allowed to the global settings
- Changed radio buttons on modify to pulldown selector.

3.0c
- Added forgotten code to delete an attachment if a post is deleted.

3.0d
- Fixed code to delete an attachment if a post is deleted.
- Made file format backward compatible with version 2.5 and earlier (meaning it would show attachments made by earlier version).

3.0e
- Fixed CGITemp* files not being deleted and still written in the wrong path.

3.0f
- Fixed CGITemp* files not being deleted on modification/re-attach.
 Changed files are Post.pl, ModifyMessage.pl and CGI.pm

3.0g
- Reorganised code major, making it more efficient.
- Added missing temp clear sub in Modify Message.
- Moved att handling and upload routines to Subs.pl
- Removed leftover hardcoded text
- Fixed CGItemp... staying persistent on selecting Keep Old Attachement with a filled file field.
- Included are translation mods to German (Thanks to Valtiel) and Dutch in the package now.

3.0h
- Moved language to separate language packs.

3.0i
- Implemented TheSkier (vikmars@yahoo.com) fixes and enhancements.

NOTE
The h update is purely mod administrative to easy install the language as a separate package.
There are NO CODE CHANGES in this version, only language and code are now separate mod packages.
« Last Edit: Mar 7th, 2005 at 11:18am by Spikecity »  

file_attachment_B3.0i.zip ( 48 KB | Downloads )

Nothing to add here Smiley
Back to top
 
IP Logged
 
dOCdaS
God Member
*****
Offline



Posts: 1568
Location: Germany
Joined: May 27th, 2001
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #1 - Oct 16th, 2004 at 10:51pm
Print Post  
hmm sounds good. seems you spend much time in converting sp2 features back to sp1 version. great work. btw. i`ve edited the subject of this thread because the it was labeled sp3.1.x.
  
Back to top
WWWICQ  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #2 - Oct 16th, 2004 at 10:53pm
Print Post  
Quote:
hmm sounds good. seems you spend much time in converting sp2 features back to sp1 version. great work. btw. i`ve edited the subject of this thread because the it was labeled sp3.1.x.

That's what you get when you try to post at 0:43 Wink
Thanks for the correction.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
dOCdaS
God Member
*****
Offline



Posts: 1568
Location: Germany
Joined: May 27th, 2001
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #3 - Oct 16th, 2004 at 10:58pm
Print Post  
hehe yeah i know the problem. had this often in the past as i was very active. would like to test this mod but can`t atm. will test it if i am back home.
  
Back to top
WWWICQ  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #4 - Oct 16th, 2004 at 11:38pm
Print Post  
NOTE
This version is NOT COMPATIBLE with the existing FA version (yet) so please only test if you have a new board or a board not having FA installed yet.

« Last Edit: Oct 21st, 2004 at 2:30pm by Spikecity »  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #5 - Oct 17th, 2004 at 12:17am
Print Post  
Installed with only 1 error (was easy to fix) but when calling my board I get 5 software errors...

Quote:
Software error:
Can't locate CGI/Util.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . ./Modules) at Modules/Upload/CGI.pm line 27.


According to my info script the module is installed on the server:

Quote:
Apache::Util  
Beschreibung  Apache::Util - Interface to Apache C util functions  
Version  1.02  
Dateiname  Util.pm  
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Nexile
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 3
Joined: Jan 6th, 2004
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #6 - Oct 17th, 2004 at 3:56am
Print Post  
I've tried installing different versions of this mod for hours on end, upgraded my board and everything, and it's just driving me nuts that I can't get it to work. (Blue Man Patch and a whole slew of other stuff for the older version)

After installing all new source files and just this mod, my forum is giving me this:

Code
Select All
Untrapped Error:
Missing right curly or square bracket at ./Sources/Post.pl line 929, at end of line syntax error at ./Sources/Post.pl line 929, at EOF Compilation failed in require at YaBB.pl line 77.  



The line at which it tells me the brace is missing fluctuates sometimes. I have found that if I remove the blocks of code that begin and end with ############ and some commented info in the Post.pl source file, everything works ok. I think the problem is somewhere around there, but I really have no idea.
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #7 - Oct 17th, 2004 at 10:39am
Print Post  
Quote:
Installed with only 1 error (was easy to fix) but when calling my board I get 5 software errors...


According to my info script the module is installed on the server:


Did you upload the changed YaBB.pl ?
If you forget that one you miss a crucial line I think pushing the local module in the @INC array.
In the latest version I added Util.pm to the package as it is not Apache::Utils but CGI::Utils.
This means that in the Modules/Upload you get CGI/Util.pm as new script.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0 Beta SP 1.3.x
Reply #8 - Oct 17th, 2004 at 11:17am
Print Post  
Nexile wrote on Oct 17th, 2004 at 3:56am:
I've tried installing different versions of this mod for hours on end, upgraded my board and everything, and it's just driving me nuts that I can't get it to work. (Blue Man Patch and a whole slew of other stuff for the older version)

After installing all new source files and just this mod, my forum is giving me this:

Code
Select All
Untrapped Error:
Missing right curly or square bracket at ./Sources/Post.pl line 929, at end of line syntax error at ./Sources/Post.pl line 929, at EOF Compilation failed in require at YaBB.pl line 77.  



The line at which it tells me the brace is missing fluctuates sometimes. I have found that if I remove the blocks of code that begin and end with ############ and some commented info in the Post.pl source file, everything works ok. I think the problem is somewhere around there, but I really have no idea.


It was very late last night and just now I checked the mod to find out the wrong modfile was in the zip.
Please pick up the new one, uninstall the old one and reinstall the one in this zip.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #9 - Oct 17th, 2004 at 12:01pm
Print Post  
I did upload the modifies YaBB.pl. But I see you replaced the mod file in your package, so I'll give it another try tonight.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #10 - Oct 17th, 2004 at 1:36pm
Print Post  
Quote:
I did upload the modifies YaBB.pl. But I see you replaced the mod file in your package, so I'll give it another try tonight.

Yep, and added Util.pm to /Modules/Upload
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #11 - Oct 17th, 2004 at 11:13pm
Print Post  
I applied the new mod file, uploaded the Util.pm but still get the same software errors as before! I uploaded all modified files.

Ok, works now... you did not explain it right in your readme... I had to upload the folders "Upload" and "CGI" both separated to my yabb maindir and not the whole folder "Modules" including the other two as described in your readme.

Testing...

Auto-config doesn't work, I get the following server error:

Quote:
Status: 200 OK Cache-Control: no-cache, must-revalidate Pragma: no-cache Content-Type: text/html Content-type: text/html
Software error:
Can't locate ./Sources/MenuItemsSP1.pl at ./Sources/Subs.pl line 241.


Configured it manually. When trying to start a new thread or answer to an existing, I got the following board error:

Quote:
Bareword found where operator expected at ./Sources/Post.pl line 195, near ""JavaScript1.2" src"


Had a "$yymain .= qq~" too much - deleted it. Got the following error now:

Quote:
Untrapped Error:
Missing right curly or square bracket at ./Sources/Post.pl line 1450, at end of line syntax error at ./Sources/Post.pl line 1450, at EOF Compilation failed in require at YaBB.pl line 100.


Added a right curly bracket in line 1449. Works now... further testing...  Wink

  • Attaching picture with allowed extension and displaying in post:
    Works!
  • Trying to attach a non allowed file extension:
    Denied - Works!
  • Trying to attach a file which is bigger than allowed size:
    Denied - Works!
  • Deleting present attachment:
    Works!
  • Attaching two files with same name:
    Works! (new file is renamed)
  • Deleting thread with attachment:
    Works! (attachment is deleted from server)
  • Stuff in admin center:
    All seems to work!

Well, after fixing some problems it seems your mod works perfect... great work!

If you want I'll write an addon mod for german translation. But I have to translate it for myself first.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
buddybuddha
Junior Member
**
Offline


Visit my site?

Posts: 70
Location: Nowhere in PA
Joined: Aug 9th, 2004
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #12 - Oct 18th, 2004 at 1:09am
Print Post  
Hey I downloaded and installed everything and it works great.  Thanks for the mod, escept I had to follow valtiel's instructions for the modules thing.  Id say make that a little easier to understand.  But other than that its beautiful.  It installed without any errors.
  

Wash Ufitze Drive Me To Firenze
Check out my site here.
Back to top
WWWAIM  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #13 - Oct 18th, 2004 at 1:30am
Print Post  
I also did a short addon mod which will translate all text parts in language file and Attachment.pl to german. See attachment.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: File Attachment 3.0b Beta SP 1.3.x
Reply #14 - Oct 18th, 2004 at 8:06am
Print Post  
Quote:
Ok, works now... you did not explain it right in your readme... I had to upload the folders "Upload" and "CGI" both separated to my yabb maindir and not the whole folder "Modules" including the other two as described in your readme.

Impossible in a software sense that this should work without being in /Modules

There should be one line added to YaBB.pl which says:

push(@INC,"./Modules");

Which adds the dir /Modules to the default library path for Perl to search for pm packages if called.
As Upload is not a standard Perl module the call use Upload::CGI should find a dir called Upload and within it a module called CGI.pm.
Within CGI.pm there is a call use GCI::Utils which reciprokes to a dir relative to CGI.pm called CGI and in it there should be Util.pm

I find it strange that in your case Perl does not follow the path given and finds the local modules (obviously somehow) in the maindir.

You perhaps run IIS ?

The errors you gave me are probably because you have a lot of mods in your board and quite a lot of code is being added/exchanged with FA.
On a clean board it installs perfectly and works in the configuration as described in the readme.

  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 17
Send TopicPrint