UBB.Dev
Posted By: Brett [6.7] [beta] UBB.Uploader - 05/04/2004 1:21 PM
Modification Name: UBB.Uploader

Author(s): Brett

Description: Adds a link to topic forms to allow the user to upload files to the server. A link is also added the avatar popup to allow the user to upload a custom avatar. In the upload popup, the user has the ability to delete previously uploaded files through an 'upload manager'.

All of these settings are controlled through the CP. (primary settings -> general), where the admin can set what user groups can upload files and/or avatars, how big of files they can upload, and how many each group can store. The admin can also set the type of files/avatars that can be uploaded, and the upload paths.

Also added is a field to the properties of each forum details to allow or turn off file uploads. And a field is added to each profile to override user group settings to either allow or completely block a user.

Files are loaded to the uploads_dir/user_number. You can put it into a new directory, as it will attempt to create it, as long as the parent directory exists.


A little bonus, (gizzy's idea wink ), was the ability, through upload manager, to go into other user directories and delete files in there. Right now, only administrators have the privilages. To change it, go to the ManagePage function, and change the "$user_profile[8] eq 'Administrator'" part.

Demo: http://www.pavioni.com/ubb/ultimatebb.php

Download Link: https://www.ubbdev.com/ubb/upload/00006378/Uploader6.7.zip

If your behind a firewall/router; it may be blocking the ability for the server reading your referer, thus disabling the uploader. Click below for a version without the referer check.

[ link removed, link above does the job ]

Credits: Allen Ayres, LK and freeTV, and Ely_M, Ian Spence(for some of the manager code laugh )

A somewhat strict security precaution was added to prevent users from impersonating fields, like forum numbers. This is done through the user referal. It will strip/shred it, and the user coming from the host or a valid forum number, it will give an error. If it smells a foreign host, it'll pull posthackdetails. You can't also just call ubb_upload.cgi through the address bar.

In other words, it won't function without a referer. If you encounter problems with it, when it's not supposed to error out. Please post here if you do.


To test it out on my board.
username: ubbtest
password: test
Posted By: mmg Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:07 PM
Brett,
Thanks for doing this hack. I tried to upload something (target.gif) at your site, but received the following error: "You are trying to upload something with an illegal extentsion. The currently allowed are: gif, and you tried to upload a zip, txt, tar.gz, tar file."

I used the login you provided and registered there to test it, but still received the same error.
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:10 PM
I didn't have gif in my regular extentsion list. I just put it in there. Try it now. smile
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:39 PM
Unable to parse your referer. Are you sure you clicked on it through the forums?

smile Quite sure, clicked through quick reply
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:43 PM
I altered something that might have done that 10 minutes ago. Redownload ubb_upload.cgi, and reupload it. smile
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:45 PM
hehe, idea by Gizzy :-x... I still say being able to publish extensions through a UI would be good frown .
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/04/2004 4:49 PM
reupload? This was on your forums, can't install this till tonight tipsy .

PS. No credit for the person who's file manager you said you based yours on? frown
Posted By: mmg Re: [6.7] [beta] UBB.Uploader - 05/04/2004 5:00 PM
Brett,
The upload worked great this time. Thanks again for doing the mod.
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 5:07 PM
np, smile

Ian found a minor bug as it wouldn't parse through the extended spider links properly. I have updated ubb_upload.cgi. I have double checked all 3 kinds of spider options from the cp and all work correctly for me. The only file to upload is the ubb_upload.cgi.
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 5:51 PM
Hi Brett,

when I want to upload somethin I get this error

Unable to detect referer. You must click the upload link directly to upload files.

What have I to do?
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 5:54 PM
You can't go to the ubb_upload.cgi file directly. It has to be clicked from on the board. Like the reply/topic pages.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/04/2004 5:55 PM
did you upload the new ubb_upload.cgi?
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:01 PM
Hi Brett I have clicked at the link at the new topics page....

Ian I have uploaded the new file...
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:05 PM
Could i get a link to your board w/test username & password?
Posted By: eXtremeTim Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:05 PM
I will let you know if this works with 6.6 hopefully tonight.
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:10 PM
http://www.d-talk.tv/cgi-bin/ultimatebb.cgi

Username: Testuser

password: CCTK86
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:21 PM
I was able to open it up without issues. Do you have a firewall installed?
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:24 PM
Yes a router.... frown

I get the same error at your board...
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:28 PM
ok, what i can do is release a version without this check since i know some routers/firewalls can block servers from reading the referer. It will still have the same features.

I will still leave the original download available.
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:29 PM
How long does it take to release this new version? :rolleyes:
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:33 PM
http://pavioni.com/scripts/dl.php/Uploader6.7_2.zip

Just reupload ubb_upload.cgi.
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/04/2004 6:54 PM
Great Work Brett!

Thank you very much!!! thumbsup
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/04/2004 10:58 PM
Thanks Brett for the great mod laugh
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/05/2004 12:04 AM
laugh Works great. I love the ability to delete other members files.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 05/05/2004 2:04 AM
Dare I say it, I like it more than flare wink ... At least I'm already authenticated when I click upload file form :x...
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/05/2004 8:59 PM
Brett, something I added that really made the Admin manager easier was the following.

FIND:
Code
				<a href="$vars_config{CGIURL}/ubb_upload.cgi?ubb=manager;f=$real_forum;p=$f">$url/$f</a>
REPLACE WITH:
Code
				<a href="$vars_config{CGIURL}/ubb_upload.cgi?ubb=manager;f=$real_forum;p=$f">$f (<i>~ . &GetPubName($f) . qq~</i>)</a>
That way you can see the public name of the member's who folder that is. I'm sure I'm not the only one who doesn't have member numbers memorized
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/05/2004 11:19 PM
Very nice. I like it laugh

I just put it to grab the publics names list instead of opening each profile, because it would stress on a high board on getpubname, but added it. wink (Uploaded both zips, with only ubb_upload.cgi changed)
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/06/2004 12:06 AM
Is anyone else having problem using this with IE 6?

I get the referer error in IE, but not in Firefox
Posted By: Nightcrawler Re: [6.7] [beta] UBB.Uploader - 05/06/2004 2:22 PM
It works fine for me so far, however when I "Submit Changes" in Primary Settings, I get the error below at the top of the page and I need to submit twice before the changes take effect.

Error
Form validation errors:

: You did not enter a value for this field


I checked and the vars_misc.cgi file has undef instead of say no or 2 or some such for boxes I didn't check (like the fact I'm not using it for avatars). Is that the problem?

I also have the Recycle Bin hack installed, but I didn't have the problem before the Uploader hack.
Posted By: Nightcrawler Re: [6.7] [beta] UBB.Uploader - 05/06/2004 2:25 PM
Quote
Originally posted by Ian Spence:

Is anyone else having problem using this with IE 6?

I get the referer error in IE, but not in Firefox
I was using IE and got the error, so I used the non-referer version.
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/07/2004 7:20 AM
I'm starting to wonder if it's worth it, because some user out there is gonna have a firewall or router to block the ref. I think any future version will have it as an on/off switch, defaulted to off.
Posted By: Eric Flyxe Re: [6.7] [beta] UBB.Uploader - 05/07/2004 12:26 PM
Great, finally!!

One detail - could you remove the case sensitivity? Or do i have to specify both in the config? (Haven´t installed it yet)

picture.jpg works but picture.JPG doesn´t

For my non-technical users. wink
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 05/07/2004 12:41 PM
That's standard with all unix hosts; where a letter makes it differant period.

IE:
PiCtUrE.jpg isn't the same as picture.jpg; should show with the same name as uploaded, if the extension is JPG theil need to rename it to jpg.
Posted By: Poopy Pants Re: [6.7] [beta] UBB.Uploader - 05/08/2004 6:07 AM
Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field

Is it typical to have these errors show up when making the changes in the control panel?

Even though the errors are there, the hack does work on the bulletin board. I'm just curious if I am missing something when I hacked the board.
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/08/2004 6:32 AM
Did you add/upload the changes in cp2_lib.cgi?
Posted By: Nightcrawler Re: [6.7] [beta] UBB.Uploader - 05/08/2004 3:02 PM
I'm having that error.

I just checked and rechecked with a fresh download of the hack, I did make the change to cp2_lib.cgi and I still get the error.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/08/2004 4:43 PM
make sure you fill in EVERYTHING. Every textbox must be filled in, even if you just put 0 in it
Posted By: Poopy Pants Re: [6.7] [beta] UBB.Uploader - 05/08/2004 9:59 PM
Yes, every field has a value.
Posted By: Nightcrawler Re: [6.7] [beta] UBB.Uploader - 05/09/2004 5:15 AM
D'Oh! Now it all makes sense.
Posted By: Poopy Pants Re: [6.7] [beta] UBB.Uploader - 05/11/2004 3:14 AM
any possible updates on the errors we're getting?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/11/2004 3:19 AM
I had that issue, then I made sure to fill everything in and it went away
Posted By: Poopy Pants Re: [6.7] [beta] UBB.Uploader - 05/12/2004 11:09 PM
Well I'm still getting the errors yet the hack works.
I also have Statistics, Calendar, You Last Visited Wording, Games 2.5.1 Integrated and Shoutbox. Any of these might be interfering?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/13/2004 1:07 AM
If you PMed me an admin account for your site I could take a look at it.

FTP probably won't be neccessary
Posted By: eXtremeTim Re: [6.7] [beta] UBB.Uploader - 05/13/2004 6:56 AM
I think the not filled in error is from supermods not being installed. On my 6.6 using the non referer version the upload script just hangs after you tell it to upload and just runs till the server kills its. Im using win2kadv server with iis.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 05/13/2004 8:06 AM
Emy_Em's (or whatever) upload mod has nothing to do with this mod, this is a rewite from the ground up (i inspired the name!)
Posted By: eXtremeTim Re: [6.7] [beta] UBB.Uploader - 05/13/2004 10:55 PM
gizzy what are you going on about now?
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 05/13/2004 11:26 PM
Quote
Originally posted by eXtremeTim:

I think the not filled in error is from supermods not being installed. On my 6.6 using the non referer version the upload script just hangs after you tell it to upload and just runs till the server kills its. Im using win2kadv server with iis.
This mod should have nothing to do with the Emy_M's upload mod or MegaMod addon's.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/14/2004 4:46 AM
Looking at the code I believe Tim is right.

Tim, try removing
Code
			next if($_ eq 'megamoderators' && !&FileExists("$vars_config{VariablesPath}/vars_megamods.cgi"));
and then make sure to fill in the new fields
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 06/01/2004 8:36 PM
Brett, I was ready to scream cause I couldn't figure out why the radio buttons in the CP edit profile page were messed up, then I saw the problem

Find:
Code
			name => "avban",
title => $vars_wordlets_cp2{'upload-_-profile'},
Replace with:
Code
			name => "upload",
title => $vars_wordlets_cp2{'upload-_-profile'},
Posted By: Poopy Pants Re: [6.7] [beta] UBB.Uploader - 06/03/2004 6:08 AM
so this will solve those extra radio buttons that won't go away I posted a reply on this topic?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 06/03/2004 6:17 AM
no, do this

https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/168/4.html#000047

to try and solve that
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 06/06/2004 12:46 PM
Zip Files updated with Ian's Fix. smile
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/06/2004 4:14 PM
grazi smile
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 06/22/2004 2:40 AM
OK, this should be an easy one... In the CP, where it says Maximum Size Of Upload, is that in bits, bytes, or kilobytes?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 06/22/2004 2:43 AM
bytes
Posted By: havoq Re: [6.7] [beta] UBB.Uploader - 06/27/2004 9:11 PM
Heres a question:

Intead of having groups, how hard would it be to allow specific members access to the upload form?

Almost like, disable uploading all together...and then if you retrieve a members info via the CP, theres a checkbox that says "allow user to upload" when checked, that user and that user only has access to the upload form.

hmmm
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 06/27/2004 9:13 PM
that's built into this version
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 06/28/2004 7:01 AM
Yeh, I had the same idea; so when I had brett make this mod I made him add almost any user type that I could think of... Even if he didn't like it wink
Posted By: havoq Re: [6.7] [beta] UBB.Uploader - 06/28/2004 7:38 AM
Not like I can use the dam hack anyways lol tipsy
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 06/28/2004 7:40 AM
If only there was some way you could add a year of Member's Area access to your license.

If only.. tipsy
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 06/28/2004 8:06 AM
wink
Posted By: [email protected] Re: [6.7] [beta] UBB.Uploader - 07/06/2004 10:18 AM
Whats happened to the version without the referer check? Its not available for download anymore.
Posted By: [email protected] Re: [6.7] [beta] UBB.Uploader - 07/06/2004 10:20 AM
Quote
Originally posted by Ian Spence:

Looking at the code I believe Tim is right.

Tim, try removing
Code
			next if($_ eq 'megamoderators' && !&FileExists("$vars_config{VariablesPath}/vars_megamods.cgi"));
and then make sure to fill in the new fields
Any more news on this?

I have the same problem and tried this soloution but it left a blank line where the megamoderators would have been, if i remove the megamoderators bit from the above qw line the problem returns.

Thanks
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/16/2004 12:36 AM
Brett, some of my members were complaining about not being able to upload, and I checked and found the problem.

It's "Member", not "Senior Member" for the status
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 07/16/2004 11:46 AM
Zip updated with status fix.

Link to uploader w/o refer check fixed.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/18/2004 8:26 PM
Brett, in cp2_editprofile.pl, I think it'd be better if it went like this

Code
				{
name => $vars_wordlets_cp2{'upload-_-profile-reg'},
value => 'reg',
selected => ($profile[70] =~ m/reg/ &#0124;&#0124; $profile[70] eq "") ? 1 : 0,
},
{
name => $vars_wordlets_cp2{'upload-_-profile-no'},
value => 'no',
selected => ($profile[70] !~ m/^(all|reg)$/ && ($profile[70]))? 1 : 0,
},
that way it'll default to use user group, instead of not allowing the user to upload
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/21/2004 3:05 AM
When I originally installed this hack (before the latest fixes) I had no problems uploading pictures until now after I've applied the fixes. Anyone else experience this problem?

All of the upload functions work except when you go to view the picture that was uploaded (by clicking the link in upload manager). The picture is displayed all garbled and completely unrecognizable. However, when I copy that same picture directly to that users upload directory replacing the uploaded files they display perfect clicking on the link in upload manager. Something happens to the file when it gets uploaded to the server. I did not have this problem before. Any ideas on what I could fix here? Help would be greatly appreciated. Thanks in advance...
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/23/2004 1:40 PM
Brett? Ian? Anyone? If anyone can offer some suggestions on how to fix this problem, I would be most appreciative. This is a critical funtion of this hack that is not working. frown
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/23/2004 4:36 PM
delete
Code
				vars_misc::upload_megamoderators
vars_misc::upload_avatar_megamoderators
vars_misc::upload_limit_megamoderators
vars_misc::upload_filelimit_megamoderators
delete

Code
		q!upload_megamoderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_megamoderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_megamoderators! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_megamoderators! => { type => "text", private => 1, req => -1, },
change

Code
		foreach(qw(administrators megamoderators moderators senior_members junior_members)) {
to

Code
		foreach(qw(administrators moderators senior_members junior_members)) {
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/24/2004 4:09 AM
Ian, I certainly appreciate your response...However I did all that but that didn't fix the picture corruption problem. When pictures are uploaded via the upload file form they come up like this:

http://www.reactek.com:911/images/bad.jpg

The original of course does not look like that.

Help? smile
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/24/2004 4:13 AM
I've got no clue on that kinda stuff, I was referring to paul's problem
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/24/2004 4:37 AM
Oooh.. Then did I just mess something up? smile

I reverted back to old copy just in case...
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/27/2004 5:05 AM
Is Brett still alive? Hello Brett?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/27/2004 5:59 AM
sarcasm will only make us ignore you.

After running a test, it is messing up the printing of the file, somehow adding more to the file that is really there.

I uploaded an image via the upload manager, and it showed up as 813bytes

I uploaded that same image via ftp and it was 811bytes

Could this have anything to do with him running a Windows server?
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 07/28/2004 12:21 AM
If you mistook that as sarcasm believe me, it's not. It's a cry for help... I haven't seen Brett post in several days so I was getting a bit concerned. Just hope he's in good health. smile

Just some other info though this was working perfectly until I updated it with the fixes for the same problem you had Ian. My members could also not upload files. Once I applied the fixes I ended up with this problem. I'm surprised you don't have this problem as well.

Appreciation as always...
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 07/28/2004 4:09 AM
Brett has been swamped lately; I haven't even talked to him lately wink
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/28/2004 11:07 PM
Hi everyone,

I am installing this kewl Mod except that I don't have one of the files that needs to be edited:

cp2_forums2.cgi

I am running version: 6.7.1 (rv1.210.2.9).

Where can I get a copy of this file?

Please advise and thanks in advance,
Robin
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/28/2004 11:14 PM
OOps I just seen that this mod was not for the 6.7 version. Sorry for the post.

Will there be a mod for 6.7?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/28/2004 11:34 PM
this mod is for 6.7, cp2_forums.cgi is the file, must have been a typo
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 12:28 AM
Sorry to bother you again but in the cp2_membermanage.cgi file I do not have this line:
# find #
########

$profile->[32] = join("|", @bdi);

I search for all the $profile and still couldn't match up this line. Any ideas?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 12:34 AM
line 1251
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 12:45 AM
I must not have the right file because my line 1251 gives me:
sub MakeComponentHTML_modqresline {

And I cannot find any variation of the code I need to change.

I am using this version of UBB: UBB.classic™ 6.7.1
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 12:52 AM
you are in cp2_membermanage.pl, not cp2_membermanage.cgi

big difference
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:12 AM
DOH!!! I was having a blond moment...
Ok I got it installed but when I click on the link to upload file, a popup window comes back with this message:

Unable to detect referer. You must click the upload link directly to upload files.

Where did I screw up?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:16 AM
http://pavioni.com/scripts/dl.php/Uploader6.7_2.zip

upload the ubb_upload.cgi script from that zip
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:34 AM
Ok I'm not that Blond LOL LOL
I did.... and what I posted above is what I get.
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:36 AM
I did notice that one of the files to be edited was the Ultimatebb.cgi file but on the instructions no modifications were provided.

Could that be it?
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:41 AM
I hope you took my post as fun and not a witchy post...I was just being humorous.

I really can't thank you enough for helping me with this.
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 2:47 AM
This is the error I am recieving now:
No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Jul 28 19:45:33 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 3:28 AM
upload the ubb_upload.cgi file from the zip I linked you to
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 3:35 AM
I uploaded the ubb_upload.cgi from the file in your previous post and that is the error I am receiving.
No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Jul 28 19:45:33 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.

I thought maybe I needed to clear the cashe so I did that but get the same error.

I'm getting serious grey hairs now. LOL
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 3:39 AM
go into your CP, primary settings, and set the upload settings
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 4:03 AM
I'm in there but I put the D: path to my cgi bin...should this be the url to my cgi bin?
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 4:04 AM
Oops...it's that darn blond in me again...Scratch that post...

I am so glad you are patient....I woulda yelled at me by now.
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 4:09 AM
One other thing...the allowable extensions says to add them with a space
So I did this:
zip pdf txt for the regular files

and this for the avatars:
gif jpeg jpg fla

When I click submit in CP, I receive this error:
Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 4:13 AM
I just tried to use the exact examples in the explanation field and I receive the same error:

This is what I used: zip txt tar.gz tar
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 6:56 AM
https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/168/5.html#000068

do the steps in that post, and make sure you filled in info for every upload field, including amount of byte uploads can be, etc
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 7:41 AM
Hi Ian,

I made the changes as per the post link you gave and updated my CP info and it took the update after I submitted.....I uploaded the file you posted above.

I am still receiving this error when I attempt to upload a file from the link:

No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Thu Jul 29 00:38:41 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.

I went through and doublechecked to make sure that I completed all the code changes.

I'm at a lost.....my head is getting more gray hair now LOL LOL
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 8:09 AM
It's saying that was you entered for the path to upload is invalid
Posted By: Webberver1 Re: [6.7] [beta] UBB.Uploader - 07/29/2004 10:25 PM
Ok That all works now except when the graphic is uploaded, (the url is correct) I always get a broken graphic indicator.

I read other posts in this topic -- one poster had a garbled graphic issue but I get a broken graphic.

I'm not sure how to fix this issue.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 07/29/2004 10:43 PM
the url to the folder you entered does correspond to the path you entered, right?
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 07/30/2004 3:56 AM
Have you tried accessing the url where the graphic is via your browser to ensure it is in fact where the UBB is being told where it is?
Posted By: Cho Phoo Re: [6.7] [beta] UBB.Uploader - 08/01/2004 8:16 PM
In the install.txt . They wrote :

Quote
quote:
########################################################
###Open ubb_lib.cgi
########################################################

########
# find #
########

$vars_config{'MaxMemFields'} = 43;
But I cound found this line in my ubb_lib.cgi ( I'm using UBB 6.6)

And After add some line to vars_wordlets.cgi

example:
q!upload-_-form-title! => q!%%BBTITLE%% Upload Form!,
q!upload-_-form-submit! => q! Upload !,
q!upload-_-form-link! => q!Upload File!,
q!upload-_-form-manager! => q!Upload Manager!,
q!upload-_-manager-title! => q!%%BBTITLE%% Upload Manager!,
q!upload-_-manager-delete! => q!Delete!,

In Control Panel -->Wordlets List-->Primary, I can't see them.

Who know how to fix that error, help me !!!
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 08/01/2004 8:45 PM
This is a 6.7 mod
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/19/2004 9:24 AM
OK. I've reread this topic a few times and managed to solve most of the problems mentioned here except for the corrupted image issue a few others are having.

The files are getting uploaded to the right place, I can check them in FTP. But when I try to browse them, they're corrupted. Some display partially, some don't display at all and just return the little red X in IE. Mozilla is a little more helpful, returning an error message:

Quote
quote:
The image “http://www.sharpeiforums.com/ubb/uploads/00000001/amber-II.jpg” cannot be displayed, because it contains errors.
This site is on shared hosting in a Windows 2K server. I'm running WinXP Pro. Any ideas, anyone?
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 08/19/2004 12:04 PM
This was the same issue that another got earlier this month.

Just too make sure you downloaded from http://pavioni.com/scripts/dl.php/Uploader6.7.zip ? If not, dl that and reupload ubb_upload.cgi.
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/19/2004 5:22 PM
Hi Brett,

Thanks for getting back so quickly. I know you're busy.

Per Ian Spence's post earlier in this thread, the file I had last DL'ed was from Uploader6.7_2. I downloaded the one you posted above and installed it "as is," without making any of the hacks mentioned elsewhere in this thread. Now I get this error:

Quote
quote:
Can't locate /vars_misc.cgi in @INC (@INC contains: ./Modules . d:htmluserssharpeiforumscomhtmlcgi-bin d:htmluserssharpeiforumscomhtmlcgi-binModules D:/Perl/lib D:/Perl/site/lib) at d:htmluserssharpeiforumscomhtmlcgi-binubb_upload.cgi line 72.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Thu Aug 19 09:11:26 2004] ubb_upload.cgi: Can't locate /vars_misc.cgi in @INC (@INC contains: ./Modules . d:htmluserssharpeiforumscomhtmlcgi-bin d:htmluserssharpeiforumscomhtmlcgi-binModules D:/Perl/lib D:/Perl/site/lib) at d:htmluserssharpeiforumscomhtmlcgi-binubb_upload.cgi line 72.
Do I need to hack this file per earlier posts?
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/20/2004 6:11 PM
Well, I rolled back to the ubb_upload.cgi version in Ian's link to 6_7_2 and that solved the problem above but now I'm back to dealing with the corruption problem.
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/20/2004 6:24 PM
More info on the file corruption problem here in UBBDEV in another topic:
https://www.ubbdev.com/ubb/ultimatebb.php/topic/20/252/8.html
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/20/2004 11:22 PM
"Sigh" I think I'm just two code lines away from fixing this problem:

If only I knew PERL...

I don't like Window$ any more than the rest of you but I'm stuck with it for now... :rolleyes:
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 08/20/2004 11:26 PM
This is untested, but try the following.

Find:
Code
	my $fullpath = "$vars_misc{upload_dir}/".$user_number."/$Filename";
my $handle = $filehandle->open('file', 'writeonly', $fullpath);
Add after:
Code
	binmode($in{FILE});
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/20/2004 11:48 PM
Hi Ian,

Thanks, I thought I was getting close. I had put that same line in earlier, only here two lines down:

my $FileSize = 0;
binmode($in{FILE});

Doesn't seem to make any change in either place, tho.

I saw a reference in Dave_L\'s Post to binmode being inserted on two lines and I assumed (PERL-dope that I am) a pair was required for file read and write, similar to his example of
Code
binmode $File_Handle;
binmode OUTFILE;
while ($Bytes = read($File_Handle,$Buffer,1024))
{ $BytesRead += $Bytes;
print OUTFILE $Buffer;}
Or does $handle take care of both?
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/22/2004 7:39 AM
I'll try a fresh install working from Brett's latest version and see how far I get....

Brett, thanks for all your hard work on this mod. A lot of thought went into it. The interface looked really sweet within my board and I really liked the tight integration. It's exactly what I was looking for.

I just hope I can get it working on this damn Win server. smash
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 08/23/2004 6:41 AM
OK. I got it to work.

I was still getting the fail posted above after going over all the instructs and reinstall.

Sure enuf, a prob on line 68 breaks the whole script:

require "../variables/vars_config.cgi";};

I don't have "/variables/" - only /cgi-bin/ and /cgi-bin/Modules/. Deleted ../variables/ and fixed it.

Sheesh, Brett, I see now you added binmode and that fixed the corruption prob. Re-ignore my other posts... D'oh!

thumbsup Great script, Brett thumbsup
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 09/10/2004 8:26 AM
My turn?

Ok, as many of you have probably noticed, I get a lot of the following type errors..

Error message:
Premature end of script headers: ubb_upload.cgi

This time, I was smart enough to upload that file several times both using WSFTP, and the HTTP Interface of my host (PLESK).

I still get that error.

Also, I am unsure as to the settings for the Path and URL in the CP settings. What should these look like to make it use teh default for the Members folders? When I performed the install, the fields both contained "15" for their values. I changed them to the paths, but have been untested due to my server header error.

Also, when I set the CP settings, I always get atleast 5 form validation errors. Although not every check box is selected, there is atleast some text in every text field.

TIA for any help. It is so greatly appreciated!

--Phillip
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 09/10/2004 8:28 AM
Also, I forgot to mention that not only did I re-upload the file several times, I tried the file from both sources in this thread.

Thanks!

--Phillip
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 09/10/2004 3:16 PM
Fixed your site. Problem was #!c:/Perl/bin/Perl.exe at the beginning of the download file, not #!/usr/bin/perl
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 09/10/2004 7:01 PM
I wondered about that when I opened the file to make sure it wasn't corrupt.

I thought however, that any line that started with a pound sign (#) was remarked out. Appearently not.

Again I learned something new. Thank you!
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 09/10/2004 7:12 PM
Ok, so i just tried to test it. It seemed to work well. It "Uploaded" the file to MY directory like it should but when I clicked on the URL it supplied, I get a...

Premature end of script headers


On the picture!

I'm so confused. A picture can't do that, can it?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 09/10/2004 8:00 PM
you're uploading into the cgi-bin, so the server assumes anything there is a script. Change the upload directory and it should be fine
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 09/10/2004 8:21 PM
Gotcha! Thanks!
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 09/16/2004 8:30 AM
Couple issues smile

- There's more than one set of install files in this thread. The ones in the original post have some issues fixed further into the topic.

- There is still one reference to megamoderator in the install file after using Ian's fix, is that ok?

- On a win2k server I'm getting a zero byte file when trying to upload - any idea (besides changing servers tipsy ) what the problem might be?

Will probably be a lot less questions in here if the original post has the latest files/fixes. Any help with the zero byte issue appreciated smile
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 09/17/2004 6:57 AM
ok, this is the version that works on win2k servers:

https://www.ubbdev.com/ubb/upload/00000494/ubb_upload.txt

Change the extension to .cgi, upload and there you go smile

It might work on other servers, but I know it works on win2k smile
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 01/14/2005 1:14 AM
I am experiencing an issue here...

Whenever a new user registers, they start automatically set to "Never Allow User to Upload" instead of follow default user group rules.

I am having to go in to every new registered profile, and change them 1 by one. Is there a way to fix the default so that it's set to default as opposed to "Never"?

Thanks!
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/16/2005 11:06 AM
Hey Phillip, which version did you install?
Posted By: PhillipBurum Re: [6.7] [beta] UBB.Uploader - 01/19/2005 6:20 PM
You know, I thought I knew, but now I'm not so sure. I thought that I had 2 file names, 6_7 and 6_7_2 but looking at how it's labeled here, as currently being version 3, I just don't know and I need to look when I get home...
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/20/2005 1:55 AM
This one works on Windows servers and is the most recent code for them:

https://www.ubbdev.com/ubb/upload/00000494/ubb_upload.txt

It should probably also work on other servers, if not look a bit further upstream for the latest code smile
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/20/2005 1:57 AM
bah, that's not what you asked for... re-check your mod work and see if you made a mistake. I believe it works fine for good installs.
Posted By: GATOR420 Re: [6.7] [beta] UBB.Uploader - 02/05/2005 2:03 PM
... Problem solved.
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 02/09/2005 5:59 AM
glad we could help smile
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 03/04/2005 8:20 PM
After several months of successful uploading, we're getting the following:
Quote
quote:
Software error:
CGI open of tmpfile: Permission denied

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Fri Mar 4 10:33:30 2005] ubb_upload.cgi: CGI open of tmpfile: Permission denied
I'll start working on this but wondered if anyone had seen this before.
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 03/04/2005 8:21 PM
BTW, this is a Windows 2K server and we're running 6.7.2
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 03/04/2005 9:19 PM
ask your host if they recently changed something
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 03/04/2005 10:14 PM
Quote
Originally posted by Alan Thompson:

After several months of successful uploading, we're getting the following:
quote:
[qb]Software error:
CGI open of tmpfile: Permission denied

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Fri Mar 4 10:33:30 2005] ubb_upload.cgi: CGI open of tmpfile: Permission denied [/qb]
I'll start working on this but wondered if anyone had seen this before.

Sounds like either the permissions have changed on the folder the server uses to store the temp file for upload in, or the size of the file is possibly too large for the settings in the php.ini, or they updated php.ini and forgot to reset the correct folder for uploads (left it at the default location).
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 03/05/2005 4:09 AM
doesn't php.ini only pertain to.. well... php?
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 03/05/2005 9:03 PM
Sorry, getting my support sites mixed up tipsy


Then it's the temp folder's permissions tipsy
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 03/06/2005 6:49 AM
so tempfile is in a temp folder? Before I start scouring my web site, is this a particular temp folder within the cgi-bin, or somewhere in the ubb folder? Or is it the temp folder somewhere on the server out of my reach?

Also, since this is a shared Windows server, I suppose I'll have to ask the administrators to reset permissions. Funny it would change...
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/17/2005 7:26 PM
Hello,

I get this error:

Premature end of script headers: ubb_upload.cgi

chmod is 755

What can I do?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Uploader - 05/17/2005 8:05 PM
open ultimatebb.cgi
Check the first line, and copy it

(the one that is something like #!usr/vkah)

take that line and paste it at the top of ubb_upload.cgi, replacing the line that looks similar to it
Posted By: Felix 10 Re: [6.7] [beta] UBB.Uploader - 05/18/2005 4:49 PM
Quote
Originally posted by Brett:

Modification Name: UBB.Uploader

Author(s): Brett

......
Credits: Allen Ayres, LK and freeTV, and Ely_M, Ian Spence(for some of the manager code laugh )


Brett,
Free TV had something like that modified from 6.04 to 6.1-6.2, would you have a copy of that?

Thank you,
Felix
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 05/19/2005 3:06 AM
I thought I did, but I don't know where my copy went. I even tried web.archive.org, google, nothing.

However, the ubbdev database has the multihacks for the hacks. Which I believe has a text export, if your not a big fan of MH.

[6.1.x] ELY_M\'s Upload
[6.2.1] ELY_M\'s Upload
[6.3] ELY_M\'s Upload

I found nothing to mention freeTV's version, but if I remember correctly, all he did was port ely_m's version.
Posted By: Felix 10 Re: [6.7] [beta] UBB.Uploader - 05/19/2005 4:34 AM
I never thought to look for MH. and 6.3.1 was what I was looking for.

However I never used Multihack before, how do I extract a text file from a Mh file?

Thanks for your help Brett.

Felix
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/19/2005 8:31 AM
install multihack (takes <2 minutes), and there's an option to export the text file for whatever .mhp you have smile

Multihack only takes a few minutes to install any mod if you already have it installed tho smile
Posted By: Felix 10 Re: [6.7] [beta] UBB.Uploader - 05/19/2005 4:51 PM
I tried last night and couldnt get it. I must be doing something wrong, I am not familiar with MH.

You had a tutorial somewhere about using it, cant find it, do you know where it is?

Thanks Allen
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/19/2005 5:22 PM
It's in the 'reviews' section of the db smile
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 05/20/2005 6:38 PM
Can anyone answer my question from March 5th? I'm still dealing with this problem:

Quote
quote:
Before I start scouring my web site, is this a particular temp folder within the cgi-bin, or somewhere in the ubb folder? Or is it the temp folder somewhere on the server out of my reach?
I rechecked all my files to make sure I didn't overwrite anything and the upload Mods are all still there.

Here is the error we're getting upon attempting uploads:

[Linked Image]
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/20/2005 8:54 PM
It's probably a question you'll need to ask the server admins about. I ran a windows server for quite a few years, but don't remember setting a temp directory. It's quite possible the perl install uses the windows temp directory during an upload, again, the server admins should have an idea.
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 05/21/2005 1:55 AM
Thanks, Allen,

I put this again to yet another server admin and this time they fixed the problem. Of course, they never say what the problem was but it must have been a permissions issue at the root level beyond my reach.
Posted By: Burak Re: [6.7] [beta] UBB.Uploader - 05/21/2005 2:43 PM
Alternatively, you can alter the temp directory that CGI.pm uses:

Code
my $temp_dir = ".";
$CGITempFile::TMPDIRECTORY = $ENV{TMPDIR} = $temp_dir if -d $temp_dir and -w _;
But note that this is not strictly tested (I used it in an earlier code of mine).

Also see the -private_tempfiles pragma...
Posted By: Alan Thompson Re: [6.7] [beta] UBB.Uploader - 05/21/2005 4:21 PM
Thanks, All,

I want to share some "enhancements." Our Forum Members are fairly unsophisticated so I need to make everything as simple as possible. Since our Members like to share image files only, I made some modifications to make it a no brainer to get the image links into posts.

Here is a simple mod to vars_wordlets.cgi to make a clickable link within the results page that will paste the link into the message window using JavaScript:

Find this line in the Upload Mod for vars_wordlets.cgi:

Code
q!upload-_-up_success! => q!The file you uploaded was successful.  You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
You may also copy the following statement to use the hyperlink in your posts.

%%LINK%%

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,
Replace with the following:
Code
q!upload-_-up_success! => q!The file you uploaded was successful.  You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
Simply click the link below to paste it into your post (you can also copy and paste it).

<a href="javascript:void(0)" onclick="window.opener.insertAtCaret(window.opener.document.replier.message, ' [img]%%LINK%%[/img] '); window.focus();">[img]%%LINK%%[/img]</a>

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/22/2005 6:04 AM
Glad you got it working and thanks for the code snippet smile
Posted By: d-talk Re: [6.7] [beta] UBB.Uploader - 05/24/2005 10:59 PM
Quote
Originally posted by Ian Spence:

open ultimatebb.cgi
Check the first line, and copy it

(the one that is something like #!usr/vkah)

take that line and paste it at the top of ubb_upload.cgi, replacing the line that looks similar to it
Hello,

I have changed the ubb_upload.cgi but I get the same error!

Premature end of script headers: ubb_upload.cgi

Can someone have a look at my board?

http://www.time-talk.de

Thanks
d-talk
Posted By: Felix 10 Re: [6.7] [beta] UBB.Uploader - 05/25/2005 1:34 AM
Quote
Originally posted by AllenAyres:

install multihack (takes <2 minutes), and there's an option to export the text file for whatever .mhp you have smile

Multihack only takes a few minutes to install any mod if you already have it installed tho smile
why bother? you already did that! wink
https://www.ubbdev.com/ubb/upload/00000494/elym_upload.zip

Thanks Allen
smile
Posted By: gsmaster Re: [6.7] [beta] UBB.Uploader - 08/31/2005 4:07 AM
i need some help... after installing this mod it gives me a internal server error when clicking "upload file form" popup window....

any idea?
thank you
Posted By: gsmaster Re: [6.7] [beta] UBB.Uploader - 08/31/2005 10:41 AM
problem solved... was the reference to directory of vars_config at ubb_upload.cgi was not correct.
thanks its now working
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 08/31/2005 4:51 PM
oops, glad you got it worked out smile
Posted By: elzool Re: [6.7] [beta] UBB.Uploader - 12/09/2005 7:48 PM
With all the different changes to the file, is the link in the first post the right one to use?

Installing on a linux box using a virgin 6.7.3 installed yesterday. Anything to watch out for?

thanks,
elz
Posted By: Brett Re: [6.7] [beta] UBB.Uploader - 12/10/2005 2:36 AM
Nope, the link in the first post is the newest version.
Posted By: twslex Re: [6.7] [beta] UBB.Uploader - 12/12/2005 10:01 AM
Installed this version without the megamod hack onto 6.7.3. on a w2k3 server.

Seems to work fine, although in case of no megamod several lines need to be removed.

A few thinks already spoken about are not correct in the install.txt

Code
*********************************************************************************
* MOD NAME: UBB.Uploader *
*********************************************************************************
* DESCRIPTION: Lets users upload files. Allowed files are choosable from CP. *
* DEMO: http://www.pavioni.com/ubb/ultimatebb.php *
* username: ubbtest password: test *
* *
*********************************************************************************
* CREATED BY: Brett *
* DATE: 05/04/04 *
* VERSION: version 3.0 *
* CREDITS: Allen Ayres, LK and freeTV, And of course Ely_M :) *
* *
*********************************************************************************
*********************************************************************************
* REQUIREMENTS: Full License *
* COMPATABILITY: works with v6.7x, v6.6? *
*********************************************************************************
* FILES ADDED: ubb_upload.cgi *
* FILES MODIFIED: cp2_vars.cgi, cp2_lib.cgi, cp2_membermanage.cgi, ubb_lib.cgi *
* vars_wordlets_cp2.cgi, vars_wordlets.cgi, cp2_forums2.cgi, *
* cp2_forumedit.pl, cp2_editprofile.pl, *
* public_edit_post.pl, public_new_reply_form.pl, *
* public_new_topic_form.pl, public_pm_form.pl *
* public_topic_page.pl, public_avatar_select.pl *
*********************************************************************************
* DISCLAIMER: By using this modification, the user implicitly agrees *
* that they are willingly modifying any and all files at *
* their own risk. Should any errors occur either as a *
* direct or indirect result of said modifications the user *
* agrees not to hold Infopop Corporation or any of the *
individuals listed accountable. *
* *
* *
* IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO *
* MODIFY PRIOR TO MODIFICATION!! *
* *
* *
* FOR MORE TIPS AND TRICKS FOR USE WITH THE ULTIMATE BULLETIN BOARD *
* PLEASE US AT VISIT: *
* *
* https://ubbdev.com/ *
* *
*********************************************************************************
*********************************************************************************

########################################################
###Open cp2_vars.cgi
########################################################

########
# find #
########


&Template($vars_wordlets_cp2{"vars_config-_-enableaccel-description"}, {});


#############
# add below #
#############

use vars qw($UPLOADSUB);
$UPLOADSUB = sub {
no strict;
my $r = ""; # deja vu
foreach(qw(administrators moderators senior_members junior_members)) {
next if($_ eq 'megamoderators' && !&FileExists("$vars_config{VariablesPath}/vars_megamods.cgi"));
$vars_misc{"upload_limit_$_"} &#0124;&#0124;= '15000';

my $check1 = ($vars_misc{"upload_$_"} eq 1 ? ' checked="checked"' : '');
my $check2 = ($vars_misc{"upload_avatar_$_"} eq 1 ? ' checked="checked"' : '');

$r .= qq~
<tr>
<td style="border-right: 1px dotted black">
$vars_wordlets_cp2{"generics-$_"}
</td>

<td>
<span class="autorow-title">
<input type="checkbox" name="vars_misc::upload_$_" value="1"$check1 />
</span>
</td>

<td>
<span class="autorow-title">
<input type="checkbox" name="vars_misc::upload_avatar_$_" value="1"$check2 />
</span>
</td>

<td>
<span class="autorow-title">
<input type="text" name="vars_misc::upload_limit_$_" value="$vars_misc{"upload_limit_$_"}" />
</span>
</td>

<td>
<span class="autorow-title">
<input type="text" name="vars_misc::upload_filelimit_$_" value="$vars_misc{"upload_filelimit_$_"}" />
</span>
</td>
</tr>~}
return $r};



########
# find #
########

vars_misc::FloodCheckSpan
)],


#############
# add below #
#############

{
type => "header",
level => 2,
title => $vars_wordlets_cp2{'upload-_-title'},
},[qw(
vars_misc::upload
vars_misc::upload_unreg
vars_misc::upload_dir
vars_misc::upload_url
vars_misc::upload_extreg
vars_misc::upload_extavt
vars_misc::upload_administrators
vars_misc::upload_avatar_administrators
vars_misc::upload_limit_administrators
vars_misc::upload_filelimit_administrators
vars_misc::upload_moderators
vars_misc::upload_avatar_moderators
vars_misc::upload_limit_moderators
vars_misc::upload_filelimit_moderators
vars_misc::upload_senior_members
vars_misc::upload_avatar_senior_members
vars_misc::upload_limit_senior_members
vars_misc::upload_filelimit_senior_members
vars_misc::upload_junior_members
vars_misc::upload_avatar_junior_members
vars_misc::upload_limit_junior_members
vars_misc::upload_filelimit_junior_members
)], {
type => 'header',
level => 2,
title => "Upload Permissions",
}, {
type => 'raw',
content => qq~
<tr bgcolor="#F1F1DB">
<td width="50%" valign="top" class="paddingtop paddingbottom autorow" align="left" colspan="2">


<table width="100%" cellpadding="4" cellspacing="2" border="0">

<tr style="border-bottom: 1px dotted black">
<td style="border-right: 1px dotted black"></td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-allow'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-custom'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-limit'}
</span>
</td>

<td>
<span class="autorow-title">
$vars_wordlets_cp2{'upload-_-titlebar-filelimit'}
</span>
</td>
</tr>~
}, {
type => 'raw',
content => &$UPLOADSUB
}, {
type => 'raw',
content => qq~</table></td></tr>~
},


########
# find #
########


}; # end return

} # end define_vars_misc



#############
# add above #
#############


upload => {
type => "checkbox",
values => [qw(yes no)],
default => "yes",
},
upload_unreg => {
type => "checkbox",
values => [qw(yes no)],
default => "yes",
},
upload_dir => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_url => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_extreg => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},
upload_extavt => {
type => "text",
length => 50,
maxlength => 100,
default => "15",
},

q!upload_administrators! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_administrators! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_administrators! => { type => "text", private => 1, req => 0, },
q!upload_filelimit_administrators! => { type => "text", private => 1, req => 0, },

q!upload_moderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_moderators! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_moderators! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_moderators! => { type => "text", private => 1, req => -1, },

q!upload_senior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_senior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_senior_members! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_senior_members! => { type => "text", private => 1, req => -1, },

q!upload_junior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_avatar_junior_members! => { type => "checkbox", private => 1, req => 0, },
q!upload_limit_junior_members! => { type => "text", private => 1, req => -1, },
q!upload_filelimit_junior_members! => { type => "text", private => 1, req => -1, },






########################################################
###Open vars_wordlets_cp2.cgi
########################################################

##########
# add in #
##########

q!vars_misc-_-upload! => q!Allow uploading?!,
q!vars_misc-_-upload-description! => q!Allow users on your board to upload files!,
q!vars_misc-_-upload_unreg! => q!Allow uploads by unregistered users?!,
q!vars_misc-_-upload_unreg-description! => q!Do you want allow unregistered user to upload their files? It can pose security risk, if you wish to allow this!,
q!vars_misc-_-upload_dir! => q!Upload Path!,
q!vars_misc-_-upload_dir-description! => q!Path to where files will be placed!,
q!vars_misc-_-upload_url! => q!Upload URL!,
q!vars_misc-_-upload_url-description! => q!The http link to the path where the files will be placed.!,
q!vars_misc-_-upload_extreg! => q!Allowable Extentsions for Regular Files!,
q!vars_misc-_-upload_extreg-description! => q!Seperate each extentsion with spaces. For example, "zip txt tar.gz tar".!,
q!vars_misc-_-upload_extavt! => q!Allowable Extentsions for Avatars!,
q!vars_misc-_-upload_extavt-description! => q!Only these will be available for uploading custom avatars, you can seperate extenstion by a space. Example: "gif jpeg jpg", without the quotes.!,
q!upload-_-forum! => q!Groups Allowed To Upload!,
q!upload-_-title! => q!Upload Settings!,
q!upload-_-titlebar-allow! => q!Allow Uploads!,
q!upload-_-titlebar-custom! => q!Allow Upload Avatars!,
q!upload-_-titlebar-limit! => q!Maximum Size Of Upload!,
q!upload-_-titlebar-filelimit! => q!Maximum # Of Files!,
q!upload-_-profile! => q!Allowed to upload files!,
q!upload-_-profile-description! => q!!,
q!upload-_-profile-all! => q!Allow user to upload all the time. Ignore user group setting.!,
q!upload-_-profile-no! => q!Never allow user to upload.!,
q!upload-_-profile-reg! => q!Follow default user group rules.!,





########################################################
###Open vars_wordlets.cgi
########################################################

##########
# add in #
##########

q!upload-_-link! => q!Upload File Form!,
q!upload-_-form-title! => q!%%BBTITLE%% Upload Form!,
q!upload-_-form-submit! => q! Upload !,
q!upload-_-form-link! => q!Upload File!,
q!upload-_-form-manager! => q!Upload Manager!,
q!upload-_-manager-title! => q!%%BBTITLE%% Upload Manager!,
q!upload-_-manager-delete! => q!Delete!,
q!upload-_-manager-file! => q!Filename!,
q!upload-_-manager-nofiles! => q!No files detected!,
q!upload-_-bad_directory! => q!We apologize but either i can't create, look at, or write this to directory. Please alert the administration about the '%%DIR%%' directory.!,
q!upload-_-back_directory! => q!» Back 1 Directory!,
q!upload-_-need_to_login! => q!You need to be logged in to upload here. Please close this window, logged in then try again.!,
q!upload-_-bad_status! => q!Unable to determine status. Please inform the board administrators about this error.!,
q!upload-_-forum_deny! => q!File Uploading is not allowed in this forum.!,
q!upload-_-full_deny! => q!You do not have permission to access this area.!,
q!upload-_-invalid_ref! => q!Unable to parse your referer. Are you sure you clicked on it through the forums?!,
q!upload-_-no_ref! => q!Unable to detect referer. You must click the upload link directly to upload files.!,
q!upload-_-invalid_ext! => q!You are trying to upload something with an illegal extentsion. The currently allowed are: %%FILE%%, and you tried to upload a %%EXT%% file(s).

<a href="javascript: void(history.back(-1))">Click here to go back.</a>!,
q!upload-_-filesize_over! => q!The file you were trying to upload has exceeded the maximum of %%GOOD%% bytes. We stopped the upload at %%BAD%% bytes.!,
q!upload-_-up_success! => q!The file you uploaded was successful. You can access it by clicking <a href="%%LINK%%" target="_new">here</a>.
You may also copy the following statement to use the hyperlink in your posts.

%%LINK%%

<a href="%%BACK%%">Click here to upload more files</a> or <a href="%%MANAGER%%">Click here to manage your uploaded files</a>!,
q!upload-_-cant_delete! => q!I was unable to delete the following file. Please alert the administration.

%%FILE%%!,
q!upload-_-at_limit! => q!You are currently at your limit to upload. To upload anymore files, please delete some files out of your upload manager.


<a href="%%BACK%%">Click here for the upload manager</a>.!,
q!upload-_-up_avtsuccess! => q!%%JS%%Avatar successfully uploaded. Click <a href="javascript: void(ChangeAvatar())">Here</a> to load the url to the custom avatar field!,
q!upload-_-custom_avatar! => q!Upload A Custom Avatar!,




########################################################
###Open cp2_lib.cgi
########################################################

########
# find #
########

if($def->{private}) {

#############
# add below #
#############

next VAR if($file eq "vars_misc");





########################################################
###Open cp2_forumedit.pl
########################################################


########
# find #
########

# TODO - remove access


#############
# add below #
#############

my $upload_list = {
type => "radio",
title => $vars_wordlets_cp2{'upload-_-forum'},
name => "upload",
options => @topic_options,
class => "paddingtop paddingbottom",
};

########
# find #
########

$topic_select, $reply_select, $private_container,

################
# replace with:#
################

$topic_select, $reply_select, $upload_list, $private_container,





########################################################
###Open cp2_forums.cgi
########################################################

########
# find #
########

# Now, make sure no |^ got slipped through..


#############
# add above #
#############

# Upload Hackmap
$original[23] = $in{upload};


########
# find #
######## (all occurances of)

$vars_forums{$_} }[0 .. 17]

################
# replace with:#
################

$vars_forums{$_} }[0 .. 23]



########################################################
###Open ubb_lib.cgi
########################################################

########
# find #
########

$vars_config{'MaxMemFields'} = 43;

################
# replace with:#
################

$vars_config{'MaxMemFields'} = 71; #total fields permitted in member file(this is a large number so it does not conflict with other hacks)


########
# find #
########

my @check = (split (/|^|/, $one))[0 .. 17];

################
# replace with:#
################

my @check = (split (/|^|/, $one))[0 .. 23];




########################################################
###Open cp2_editprofile.pl
########################################################

########
# find #
########

]), &MakeComponentHTML([
# Tab 3 - fields

#############
# add above #
#############

{
class => "autotop", # fix for stupid expandy problem
type => "radio",
name => "upload",
title => $vars_wordlets_cp2{'upload-_-profile'},
desc => $vars_wordlets_cp2{'upload-_-profile-description'},
options => [
{
name => $vars_wordlets_cp2{'upload-_-profile-all'},
value => 'all',
selected => $profile[70] == "all" ? 1 : 0,
},
{
name => $vars_wordlets_cp2{'upload-_-profile-reg'},
value => 'reg',
selected => $profile[70] =~ m/reg/ ? 1 : 0,
},
{
name => $vars_wordlets_cp2{'upload-_-profile-no'},
value => 'no',
selected => $profile[70] !~ m/^(all|reg)$/ ? 1 : 0,
},
],
},






########################################################
###Open cp2_membermanage.cgi
########################################################

########
# find #
########

$profile->[32] = join("|", @bdi);


#############
# add below #
#############

$profile->[70] = $in{upload};






########################################################
###Open public_avatar_select.pl
########################################################

########
# find #
########

$TBB_Popup



#############
# add below #
#############

<center>
<table width="95%"><tr>
<td align="right">
<font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi?f=avatar', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-custom_avatar'}</b></a>
</font>
</td></tr></table>
</center>







########################################################
###Open public_edit_post.pl, public_new_reply_form.pl
### public_new_topic_form.pl, public_pm_form.pl
########################################################

########
# find #
########

$ubb_images_wording

#############
# add below #
#############



<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-link'}</b></a>






########################################################
###Open public_topic_page.pl
########################################################

########
# find #
########



$graem_list

#############
# add below #
#############



<a href="javascript: void(0)" onclick="window.open('$vars_config{CGIURL}/ubb_upload.cgi', 'uploader', 'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=570,height=350'); return false;"><b>$vars_wordlets{'upload-_-link'}</b></a>


************************************************
* Okay, now upload all files and it should work.
just for y're knowledge.
Posted By: elzool Re: [6.7] [beta] UBB.Uploader - 12/12/2005 10:10 PM
Ok, just made all the modifications and uploaded.

Few questions that I haven't seen answers to in these 11 pages.

After uploading ubb_upload.cgi, do I need to change the permissions of it? Right now, its at 644 and I have changed the path to Perl.

In the CP I have entered what I believe to be valid entries into Upload Settings and Upload Permissions, enabling every checkbox just in case and still receive an error of:

Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field

No idea what that means, I saw it referenced in this topic, but never an answer as to what to do with it.

The Upload File Form link appears now when I post something, but when I click it, I get an Error Code: 500 on the popup page.

Any thoughts?
What have I missed?

Thanks,
elz
Posted By: twslex Re: [6.7] [beta] UBB.Uploader - 12/12/2005 11:22 PM
Quote
Originally posted by elzool:


Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field

This means u do not have the mega mod installed.

Or install the mega mod first or use the install.txt i just posted.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 12/13/2005 5:40 AM
File needs to be chmodded 755; as for the other, see twslex's post.
Posted By: twslex Re: [6.7] [beta] UBB.Uploader - 12/13/2005 10:53 PM
For those of u who also are having problems with big file uploads.

i have modified the php code of JUpload to match the users/ as used in ubb_upload.cgi

feel free to ask for it.
Posted By: elzool Re: [6.7] [beta] UBB.Uploader - 12/14/2005 1:52 AM
Getting closer.

Fixed the files according to the post from twslex and chmodded per Gizzy.

Reuploaded everything.

Then I got the error:
Can't locate /vars_misc.cgi in @INC (@INC contains: ./Modules .

This error was mentioned in this thread earlier and Alan Thompson found a fix described in:
https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/168/8.html#000113

Found that line in ubb_upload.cgi and fixed it and reuploaded.

Now when I click the Upload File Form link I get an error of:
No such file or directory at ubb_upload.cgi line 219.

My line 219 of ubb_upload says:
mkdir($vars_misc{'upload_dir'}, SEVENSEVENSEVEN) or die $!;

I have no idea what that means so I started looking at the CP.

I changed the directory path and then got past that error. It then allowed me to browse for a file on my hard drive and 'upload' it. But when I go to view the file it's not in the directory it points me to and the file doesn't actually exist in the directory it says it is in.

Did I miss something obvious?

I'm off the cold medication so this should be easier I would think.

-elz
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 12/15/2005 8:31 AM
It sounds like you have the directory not set correctly.... you've got to set it correctly in your control panel.
Posted By: elzool Re: [6.7] [beta] UBB.Uploader - 12/15/2005 7:40 PM
you are correct sir!
you folks rule

with everyones help here I was able to get this wonderful modification up and running.

the latest problem was indeed an improperly set directory. I had it as ubbuploads and it created that directory for me in my cgi directory. course when i tried to access those files from the link provided after uploading it never gave me the right picture, file whatever. so when i changed the directory to ../html/ubbuploads it worked flawlessly

thanks again everyone. couldn't have done it without everyones help.
Posted By: bonzer35 Re: [6.7] [beta] UBB.Uploader - 01/05/2006 2:45 AM
Hi,

I've tried installing this on my UBB 6.7.3 but I keep getting 500 Internal Server Error when clicking on the Upload Form link. If I try to execute the file ubb_upload from the shell in linux, i get the error 'bad interpreter : no such file or directory'. i've changed the perl link in the top line btw to match what's in ultimatebb.cgi.
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/05/2006 6:26 AM
Sounds more like either a permissions issue with the upload folder or the url/path to it is not set correctly.
Posted By: bonzer35 Re: [6.7] [beta] UBB.Uploader - 01/05/2006 1:01 PM
Well, I set the uploads directory in the control panel and I set permissions for that directory to 777 but I get the same error (500 internal server error and bad interpreter on the command line). I looked through the ubb_upload.cgi script and it looks like there's error handling for the lack of upload directory so would it crash like that ?
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/07/2006 2:26 AM
hmmm... what size file are you uploading? Server limitations may be throwing the error.

You might try 755 as well, some server setups do not like 777 on directories and will automagically default them to something lower.
Posted By: bonzer35 Re: [6.7] [beta] UBB.Uploader - 01/07/2006 2:32 AM
Well, I cannot even get to the upload stage. This is the error I get when clicking on the 'Upload Form' link at the side of the post. Server permissions are definitely ok. I've tried 755 and 777. This is all on a Linux box btw.
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 01/07/2006 7:40 AM
possibly the file is corrupt then? You might try uploading a fresh copy...
Posted By: Painfool Re: [6.7] [beta] UBB.Uploader - 01/31/2006 7:21 PM
Happy belated New Years!

Unfortunately I lack the time to read this thread in its entirety. But I noticed a slight problem and would like to resolve it.

Uploads work fine and per limits set in Control Panel until you edit a users account for any reason. Upon entering a users profile in control panel the "Do Not Allow Uploads" is checked and saved (unless I make it a point to recheck the "Use Default Group Settings".

Where would I fix this to always allow Group Settings ?

Thanks!
Posted By: SPIDERtel Re: [6.7] [beta] UBB.Uploader - 03/01/2006 1:20 AM
Hey all. We're having problems similar to the ones mentioned but I'm having a difficult time following the thread to determine what our solution should be.

Here is our Messageboard:

http://talk.insidemotorsportskc.com/cgi-bin/ultimatebb.cgi

When we try to update the control panel we get the following:

Form validation errors:

: You did not enter a value for this field
: You did not enter a value for this field

I saw the earlier post about blank fields and I think I've got it covered. Here is the set up in our control panel:

[Linked Image]

Any ideas or suggestions would be excellent

thanks,

William
[email protected]
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 03/01/2006 2:30 AM
would adding extensions in the regular files box fix it?

txt


for instance.
Posted By: SPIDERtel Re: [6.7] [beta] UBB.Uploader - 03/01/2006 5:26 PM
I gave that a try and it is still giving me the same error.

Is the zip file listed at the beginning of this thread updated to include the various suggestions throughout? The updates listed throughout the thread are now broken links.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 03/04/2006 12:39 AM
It SHOULD be, however most authors make a comment stating "File updated to reflect changes", if there hasn't been any such post then it may not; and your only bet then would be to pm the author, if they're still around.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 05/18/2006 8:34 PM
I am having the same problem as SPIDERtel
using ver 6.72. It looks like the insertion of the menu items has corrupted the form. If you look at the un-hacked page and compare it to the hacked page you will notice that some of the form items are either missing or out of order.
You will need to expand the advanced list to compare them.
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 05/22/2006 7:15 AM
Here's the current files with all bugs I could find within the topic fixed: https://www.ubbdev.com/ubb/upload/00000494/Uploader6.7.3.zip

It was just 1-2 buglets, I was hoping to make sure there weren't any missed. Brett, feel free to check it out and update the original post with your checked files smile

Ruben, this has been tested on 6.7.2 and 6.7.3, should work for you.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 06/12/2006 9:31 PM
I tried the new file and most of the form fields in the control panel are correct now but I can't upload a file . The field in the control panel for regular file types I put in jpg but the field remains yellow when submitted.
When I try to upload a jpg file I get
Quote
quote:
FYI
You are trying to upload something with an illegal extentsion. The currently allowed are: .jpg, gif, and you tried to upload a file(s).
I checked the vars_misc file and the type is listed. Also it made a folder with the user number in the correct location but the file was not there.

I have tried .jpg jpg JPG no luck for allowed file types
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/13/2006 5:43 AM
odd, what kind of server?
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 06/13/2006 1:21 PM
The server is windows 2003
I installed a fresh unhacked copy of UBB.classic™ 6.7.2 in a seperate folder
before I installed this mod.

Update
I installed the old version of the upload hack and even though the control panel form is hosed it works fine so I don't think it is a server file permission. Is there something I can check in the vars files between the two versions? or possibly the new upload cgi file?
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/13/2006 6:33 PM
A file compare would help. Do you have a copy of the old stuff?
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 06/13/2006 6:56 PM
I have the old and new hacks and the old and new hacked files for ubb. I am not sure what to look for in a file comepare other that there are some differences in the script and the hack instructions
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/14/2006 4:25 AM
Post the old here and I'll compare. Did you use the version I said was for windows servers?
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/14/2006 5:03 AM
https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/168/9.html#000122
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 06/14/2006 11:47 PM
Duh!
That works. I thought the link you provided fixed it all.
So uploader 6.7.3 fixed the control panel and the windows version uploader.cgi script fixed the upload problem.
Thank you!
Now my new problem I will post in the new members forum.
I turned on the custom avatars option and it does not appear to work, even on the unhacked board.
Thank you again Allen
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 06/15/2006 12:05 AM
You're welcome, uploads work differently on windows servers smile
Posted By: mrlumpy Re: [6.7] [beta] UBB.Uploader - 07/31/2006 10:41 PM
Just wanted to thank Brett for this great program, plus AllenAyres et al for their helping people install it.

GREAT program.
Posted By: AllenAyres Re: [6.7] [beta] UBB.Uploader - 08/03/2006 8:51 PM
You're welcome smile
Posted By: Nightcrawler Re: [6.7] [beta] UBB.Uploader - 09/03/2006 9:39 PM
Is there a way to allow specific users a different Maximum # Of Files instead of the group option?

For example, I want member 00000387 to be able to upload 10 files rather than his group's 5 files max.

(Please ignore this post, I was attempting to use infor there to do what I wanted and it didn't work out. I should have paid attention to where I was.)
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/05/2009 10:53 PM
I don't know if these threads are still monitored but I've got few options so here goes.

I'm trying to install this, going through my cgi-bin adding code as described in the install notes. Now it's asking me to find a file named cp2_forums2.cgi

There is no such file. I'm using UBB classic 6.7.1

Don't think it's beta. Can I skip this file? If not, what do I do?

Thanks you much,

Shant
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/05/2009 11:17 PM
Originally Posted by Ian Spence
this mod is for 6.7, cp2_forums.cgi is the file, must have been a typo
Okay Shant you should see this in the topic you posted in. So It appears that it was a typo in the instructions.
In lieu of cp2_forums2.cgi.
Probably was due to a older version of classic used the 2 file or a older version of this mod had a 2 file.
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/05/2009 11:39 PM
HA! I knew something was off and it wasn't on my end. You're the best mate.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/05/2009 11:42 PM
See,All I needed was to figure out what mod you were using. If you read the 10 pages on this topic you will see it.
Good luck!
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/06/2009 1:43 AM
OK, now I've run into the "infamous" 404 error thing. I thought I did everything right. All the new options show up in the control panel.

What should 'upload path' and 'upload' url be set to? Should they both be in url format?
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/06/2009 5:27 PM
Also, I've read throughout the thread mention made to a file named ubb_upload.cgi

There is no such file in my cgi-bin. I tried the link in this thread to re-upload it, it's dead.

Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/06/2009 9:15 PM
Okay first the file ubb_upload.cgi is in the zip file you downloaded. You need to upload that to the ubb directory.
As far as paths and urls. look in your control panel for a clue on what you path and url is to your forum.
url will be something like http://www.yoursite.com/cgi_bin/ubb
Path will look something like /home/public_html/cgi_bin/ubb
I am assuming you are on a linux host. If you are on windows then your path will be formatted a little different.
Like I said look in your ubb control panel for what your board path&url settings are now and just copy them and adjust them if needed.

I just down loaded the link here and it works fine. Maybe something was down at the time.
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 2:04 AM
Ah yes you're right, as usual, the file was in the zip I downloaded. It was another link I tried on page 2 or 3 that failed.

OK, so I uploaded it to the ubb directory, no effect. I uploaded it to the cgi-bin. Now I get another error:

"Forbidden
You don't have permission to access /cgi-bin/ubb_upload.cgi on this server."

All the permissions and what not have been set properly in the "primary settings" tab at the control panel. Every field has been filled in the upload settings tab.

Is this a server issue? Are we talking about the server my host uses?

Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 08/07/2009 2:21 AM
Did you chmod the file 755? A forbidden error would generally be spewed due to server-side permissions on files.
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 2:25 AM
No Gizmo, I didn't do that....the only thing is, I don't really know what that means. I'm a total noob. How do I 'chmod 755'? Thanks for your quick response mate.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 08/07/2009 3:07 AM
Well, you do that in your FTP client, when you right click a file it should have a "chmod" option...

You really should hire someone to modify things for you if you're not sure how to do it tipsy
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 5:02 AM
Yeah probably should, but then again I've been able to do everything else up til now. Just a little out of practice. Never had to mess with chmod though. I feel like I'm 95% of the way there now.

Alright, so I chmodded everything to 777. Same issue.
Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 08/07/2009 5:17 AM
They don't need to be 777, they need to be 755... Incorrect permissions WILL give failures...
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 5:38 AM
OK, scratch that, when I do change the permissions to 777, I get an internal server error. When I change them back, I get the 404 error. I'm not sure which route puts me on the right track.

The thing is, all I can do is get 744, 766, or 777. I've got 3 sets of 3 check-boxes for owner, group, & other. No combination gets me to 755.

Also, I'm just setting the permissions for the whole public folder. Is that OK?

Posted By: Gizmo Re: [6.7] [beta] UBB.Uploader - 08/07/2009 5:41 AM
Owner: Read Write Execute
Group: Read Execute
Public: Read Execute
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 6:19 AM
That gives me 766.

I did notice that it's only when 'Other' has 'execute' checked that the error switches from "no permissions on this server" to "internal server error". I can play around with all the other permissions and nothing changes.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/07/2009 2:10 PM
Here is a snapshot of settings for 755
HERE
Also you might want to double check the file itself for 755
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 4:53 PM
That gives me 747. 3 checboxes = 7, 2 = 6, & 1 box = 4 on the ftp program I'm using. Maybe I should use a newer program?

Also, where am I supposed to be pointing to with the url/path in the cp? I know you told me to check my paths in the CP. But am I supposed to be pointing to the cgi-bin or non cgi-bin?

You had suggested it may be in cgi-bin/ubb but there is no ubb folder in the cgi-bin.

I'm pretty sure that's not the problem because I've tried several different things and it's still the same. Just wanted to be sure.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/07/2009 10:23 PM
I am using filezilla for a ftp program it works very well and it is free online. Another thing with this program you can just type in 755 instead of checking each box
What program are you using to change the file settings?

And here is a question I should have asked from the beginning.
Is your server windows or linux?
Because you can't change the permissions using the method you have been with windows.


okay then what is the path to ultimatebb.cgi
It all depends on where you installed it.

That should be pretty much where you placed the uploader file.
If it is, then just copy the path in the main section for the board and place it in the new section in the control panel you added for the uploader options.

the new control panel options should only be talking about itself per-say. So you should point it to where the uploader is at.

Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/07/2009 10:33 PM
How would I know about the server, call up my host?

I've been using ws_ftp, probably more than 10 years old. It tells me the permissions usually only apply to 'unix' or something. But if the permissions changes were not being applied, would my error messages still be changing based on how I set them?
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/07/2009 10:45 PM
I used the same program for years. One problem I found is sometimes it does not show the new permission changes until you close the program and reopen it.
And I used it on windows and linux.
My version was about 10 years old and it was free at the time. and with it you should be able to set the permission just like I said.

Unix is pretty much the same a linux. Meaning not windows

On windows it would accept your changes but nothing changed.
One of the reasons I like filezilla also is I can type the number in and also select multiple items to change.

As far as what you have some times your path can be a clue.
Usually linux paths will be like home\public\bla bla
Windows will be like f:\\home\bla bla
but you should either be able to look in your server control panel or I guess call your host.

If you wish. Send me a PM with a logon to your site for ftp and I can check the file permission for you. It would be quicker for me.

Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/07/2009 11:09 PM
I really think you have transposed your permission settings.
Here is a site with a video using a newer version of wsftp but I believe the dialog box should match and the example is for 755 but it is near the end of the video.
Go HERE
On the left expand Upload Your Site With FTP
Then expand WS FTP
select Manage Files
At the end is a example for setting to 755
Just remember it is for a different version wsftp
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/07/2009 11:16 PM
BTW I looked you up you are on a linux/Unix server
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/08/2009 12:01 AM
Yeah I called them up, I'm unix. Check your pm brother.
Posted By: Shant Re: [6.7] [beta] UBB.Uploader - 08/08/2009 7:14 AM
I just wanted to thank Ruben again and let everyone know what a class act you guys have here. Part of the solution involved substituting the windows server version of the ubb_upload.cgi file, even though I'm on a unix server. I would've never figured that out, so without his help it would've happened.

From my members and myself, thank you Ruben. Even if you never post, you'll always be an honorary member.
Posted By: Ruben Rocha Re: [6.7] [beta] UBB.Uploader - 08/08/2009 11:21 PM
Your very welcome.
© UBB.Developers