UBB.Dev
Posted By: AllenAyres [6.3.x] [beta] Ely_M's Upload Modification - 05/10/2002 5:24 AM
Name: ELY_M's Upload Mod.

Description: Allows you to upload/attach files in posts.

Link: MultiHack File

Demo: none

Requirement: UBB™ 6.3 , Mod Wordlets 1.5
frown multihack dont work for me.....
can I get it in a .zip file ?
Posted By: WNxWakko Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/10/2002 11:03 PM
Ok it installs by multi with no errors. Problem is when you goto the forum settings and turn upload feature to on, submit change. Goto forum, it still states uploading not allowed in that forum. So I go back in CP look at forum settings and what is happening is the radio button for on/off is not taking. Niether on or off are selected. No matter how many times I pick an option, it doesnt take.
Posted By: leon Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/12/2002 8:29 AM
same problem here. frown
Posted By: leon Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/12/2002 9:36 AM
ok its working with a few forums but not with all. i think it only works with the newer forums i made. confused

btw, great hack. i need only one forum with file uploads anyway. thx for the hack. smile
hmmmm.. you are welcome smile but I'll look at this in the next couple days and see if I can find out what the problem is smile
Posted By: WNxWakko Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/12/2002 10:52 PM
AllenAyres your absolutely right, I'm sorry. I do thank you for this hack. Appreciation tends to be overlooked at times by others and myself.

Mental Note, "Must not forget the important things."
thanks goes out to Allen for this.

I got MH to finally work, but I am also seeing the 'not sticking' behavior.
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/13/2002 2:40 PM
Allen, I think that there is a reason for $RESERVED :rolleyes: wink

I can't really tell what's wrong, but I suggest you to move $in{upload} AFTER $RESERVED|^|, and change [18] everywhere to [19]...

I'm gonna make a Mod CP Addon version for it, do you mind if I post it Allen?
Fine with me smile

I tended to think it may be conflicting with reserved as well, but hadn't stopped to install it yet - we'll use the mod_cp version for the db upgrade.
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/13/2002 6:30 PM
smile www.ubbdev.com/columns/lk/elym_upload.zip (maybe I forgot something)
Posted By: venustus Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/13/2002 10:31 PM
Thank you so much.............
works fine, even in poll enabled forums wink
quote:
Originally posted by WNxWakko:
Ok it installs by multi with no errors. Problem is when you goto the forum settings and turn upload feature to on, submit change. Goto forum, it still states uploading not allowed in that forum. So I go back in CP look at forum settings and what is happening is the radio button for on/off is not taking. Niether on or off are selected. No matter how many times I pick an option, it doesnt take.

I have the same problem, is there no fix for this?
Posted By: caroth Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/18/2002 9:51 AM
Mine worked until I tweaked the custom titles. The vars_misc.cgi get corrupt somehow... Maybe that will help the developers fix it...
Again, any non multihack formats of this out there?
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/20/2002 7:02 AM
https://www.ubbdev.com/columns/lk/ely_upload_allen.zip smile

You could also try the version I posted tipsy
hmmm everything seems to be working fine up until you hit "upload" then i get an internal server error. Any ideas?
Sounds like permission problems on your upload folder.
I think i have an answer to one of the problems.

If your using the LK version of this hack, the control panel section updates the vars_modifications.cgi file with the save to location BUT the upload.cgi code reads the save to location from the vars_misc.cgi.

I had this hack installed on my old 6.1.05 ubb so the vars_misc.cgi locations were carried over and i get an invalid folder error but if you havnt installed this before there will be no locations stored and I have no idea what error it will give...

Also theres a 5 on the end of the #!/usr/bin/perl line, on my ubb it wont do anything unless i remove it.

Anyway hope this helps (if i am right that is)

Forgot to ask, which is the best way to fix it, edit the mod or edit the upload.cgi?

Paul
quote:
Originally posted by AllenAyres:
Sounds like permission problems on your upload folder.

What folder does it upload to? The instructions say nothing about creating a new directory.
Anyone?
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/31/2002 11:52 PM
You should add a new directory, chmod to 777 and put it in Misc Settings, as your upload dir. (or Modification Settings)

My newest zip file: www.ubbdev.com/lk/elym_upload.zip with vars_misc fixes
Mhp updated with LK's fixes and addition of cp_mod addon functionality. smile
This is really getting frustrating. This is the error that my server is reporting to me.

[Fri May 31 21:07:33 2002] [error] [client ------------] Premature end of script headers: /home/dragon/public_html/cgi-bin/ubb_upload.cgi
[Fri May 31 21:07:33 2002] [error] (2)No such file or directory: exec of /home/dragon/public_html/cgi-bin/ubb_upload.cgi failed

any idea what is going on? I have everything set the way that it is supposed to be. I have rehacked it 20 times now with LK's newly updated files and still get this error......
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/01/2002 6:39 AM
Gosh, "premature end of headers" is making me nightmares wink
But... make sure ubb_upload.cgi is uploaded to your UBB's cgi-bin directory; make sure it's chmodded to 755; make sure that "vars_config.cgi" is also in that directory, if not, change ubb_upload.cgi line 23 to its place; make sure vars_modifications.cgi is chmodded to 777; make sure you CHANGED modification settings and used a CORRECT path for uploads, a directory that already exists and that is chmodded to 777; no more ideas smirk
Well crap. I guess this is just one script that i will not be able to use cause everything that you stated is correct..... Thanks anyway
Posted By: melder Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/08/2002 11:36 AM
can u do this ?

if u select in cp "save by membername or no." the script save the "image.gif" as "member.gif" - and at the next time the user overwrite the image.

can u insert radiobuttons in the upload form, so user can select "save ths image as no 1 or 2 or ... 10." so the scrpit save the image.gif as "member_02.gif" or "mebmer_10.gif" ...

hope u understand smile

and if u do this - do in cp a function there u can select the max. upload images ...
Ok here's my problem, I have added and chmoded an upload folder, I used the latest mhp file. ANd I get this on the upload screen

The file size limit is bytes

file formats allowed:
extenisons
you cant upload any file formats that are not listed here

Notice there is no limit set, and no extensions listed, etc.

I have defined them in the modification settings. I have also chmoded the upload_x files in the cgi-bin to 755.

when I try to upload a file anyway it gives me

Illegal File Format (extension)
You can not upload this file format dragonmotorsports.txt
please upload a different file or Do not upload at all.

(edit) I got the line above to work. I was putting .txt, .jpg, etc instead of just txt, and jpg. But now I got this: upload_file_name_dontworry
right under the box that gives you the ling. Kind annoying if you ask me. Where do I get rid of that.

you can see my board in the link in my sig. thanks.

edit: also it seems as though the window sizing/placement option in the settings does not work either. I am using IE 6.

edit, also someone I think meantioned this, but if a file with the same extension gets uploaded by the same member it overwrites the existing file. Is there a way to use this with using the members name/number like dragonmotorsports_1.txt, and dragonmotorsports_2.txt, etc?
All you guys asking for "non-multihack" formats. This should be obvious but there is an easy answer to your problem - install multihack.

Then all you need to do is load the hack into it, click on edit, and all the text is there to do the hack manually if you desire.

Cheers
Posted By: melder Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/11/2002 8:23 AM
tipsy
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/20/2002 9:54 PM
Hi,

I have the following problem:

When I want to upload i get an internal server error!

At the serverlogs i can read:

[Thu Jun 20 21:38:10 2002] [error] [client 213.23.49.35] Premature end of script headers: /usr/local/httpd/htdocs/kunden/web3/html/cgi-bin/ubb_upload.cgi

What can I do??

Thanks
d-talk
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/21/2002 7:54 AM
Change ubb_upload.cgi's first line to reflect your perl path.
Posted By: melder Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/21/2002 2:32 PM
hi LK - it is possible to insert radiobutton to save the images as no 1, 2, 3 ... ???

membername.gif as membername_01.gif (u understand ?
Hi,
I have a couple of little problems with this hack if anyone can help.
Firstly in the control panel I only have an option under 'forums' to activate it, nothing else to configure it, I've looked in 'misc' but there is nothing in there.
Secondly, there is no option on the post form to actualy attach anything.
I see that quite a few people are having problems with this-has anyone got it work yet??
Would doing the hack manualy instead of using multihack have any effect??

Help appreciated

Mors

p.s
Sorry for putting this in the wrong thread before greg-appologies.
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/23/2002 5:58 PM
OK, I have this problem too, what can I do??

Originally posted by WNxWakko:
Ok it installs by multi with no errors. Problem is when you goto the forum settings and turn upload feature to on, submit change. Goto forum, it still states uploading not allowed in that forum. So I go back in CP look at forum settings and what is happening is the radio button for on/off is not taking. Niether on or off are selected. No matter how many times I pick an option, it doesnt take.

Every time I update an other forum at the cp the download don't work again...

Thanks
d-talk
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/23/2002 10:05 PM
Is there nobody wiht an idea???

d-talk
Posted By: mors105 Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/24/2002 12:50 AM
Grrrr getting the bad directory error now (but getting a bit closer to it working smile ) it says I need to set the path in the control panel, but there is nowhere to configure a path in the control panel ?? frown
Posted By: mors105 Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/25/2002 12:53 AM
Finally got this working with 6.3! laugh
To get it to work I did the following:
-Re-installed my board from scratch.
-Upgraded the wordlet mods.
-Upgraded the CP mods.
-Installed the hack manualy from the text file in LK's zip file. ( LK upload zip )
-Turned on the upload option in the forum settings.
-Configured the path/file size etc in the 'modification settings' under the 'primary settings' drop-down

And tadaaaa, it works!!

Thanks to Ely_M for this hack laugh

Mors
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/25/2002 10:01 AM
smile

But if it's in Modification Settings and not Misc Settings, you used https://www.ubbdev.com/columns/lk/elym_upload.zip tipsy
I'll take your word for it wink
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/25/2002 4:31 PM
But why it did not work on my board... ???
Posted By: e@sy Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/26/2002 7:04 PM
Code
[/code]replace 0 .. 17 with 0 .. 19

[code]
So the old settings will be rewrite.
Posted By: LK Re: [6.3.x] [beta] Ely_M's Upload Modification - 06/26/2002 7:36 PM
It's in a few other places as well IIRC, just replace 17 with 19. tipsy
That was done to the mhk weeks ago...
Posted By: e,o.w. Re: [6.3.x] [beta] Ely_M's Upload Modification - 07/05/2002 3:27 PM
played with it all night and finally got the radio button to stick... why oh why didn't i just do the multihack version... and now i can't see the button to upload files, though i have every other indication that things are working fine.

at this point i'd pay someone to help me... i normally dont have trouble installing hacks/modifications but time is of the essence on this one. if you think you can help me out, pm me and i'll send you all the details so you can have a look-see.
Posted By: tyfa Re: [6.3.x] [beta] Ely_M's Upload Modification - 07/19/2002 9:29 PM
how can I to open *.mhp file ?
here you go:

www.multihack.com
Great Hack, is there some way to Only allow Admin / mods only to upload?
Posted By: caroth Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/07/2002 5:14 PM
Allen, I would love to see a 6.3.1 MHK, I tried the one in the database and it errors in Multihack.
Sure, I'll get it done, but it'll have to be after I finish the smiliemod one... still working on the wordlets smile
If the code is updated, I can build your MK file.

I was/am an active member of the MK beta test group.
I remember... if you have time, please do so. The cp portion with all the new wordlets is where you'll probably have the most challenge. smile
Posted By: dbode Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/14/2002 10:09 PM
I have no vars_modifications.cgi - I think this is my problem because the hack doesn´t work yet.

I think it is becauese I did not install the Mod Wordlets 1.5 - but I don´t know where to get them...

Could anyone sent them to [email protected] ?
Posted By: caroth Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/15/2002 6:44 AM
Quote
quote:
Originally posted by dbode:
I have no vars_modifications.cgi - I think this is my problem because the hack doesn´t work yet.

I think it is becauese I did not install the Mod Wordlets 1.5 - but I don´t know where to get them...

Could anyone sent them to [email protected] ?
Try this link:
https://ubbdev.com/db/ultimatebb.php?ubb=get_topic;f=22;t=000048
Posted By: dbode Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/15/2002 10:23 AM
No, this are the wordlets - vars_wordlets_mods.cgi - I got that one...

I think it´s because this hack requires

"UBB 6.3 and Mod Wordlets 1.5" as shown on the first page.

http://dpk.b000.net/

That is the link for Mod Wordlets 1.5, but I can´t find it there.

That is my problem : I installed the hack with Multihack and corrected the errors myself (there were problems because I use the german version), then I uploaded all, CHMOD the new files 755, then I went in my forum details and chose "yes" for upload, cleared the cache - but nothing changed, there is no field where I can upload...
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/31/2002 6:00 PM
Hello,

I have the following problem with the hack!

Everytime I install a new forum at my board in the cp, in any forum upload was alowed is now upload not alowed...:-(

What can I do, can I modify the hack so upload is generally allowed without cp....

Sorry for my poor enlgish...

Thanks
d-talk
Fixed.

D-talk, read page2 of this thread where they talk about changing 17 to 19, that should solve your problem.
Posted By: Zombie Re: [6.3.x] [beta] Ely_M's Upload Modification - 09/08/2002 4:30 PM
ummm ... goback to LK's last post (5 posts up) ... he nicely posted a zip file ...

wink
Posted By: Deven Re: [6.3.x] [beta] Ely_M's Upload Modification - 09/09/2002 7:10 PM
Question: Does LK's zip work with 6.3.1?

Also, if not, is someone working on a 6.3.1 version of this hack? My boss wants me to implement it on one of our message boards but I can't get the multihack to work.
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 09/11/2002 5:26 PM
Hi I took the newest zip.file from LK but the problem is still there, every time i create a new forum, all other forums with upload doesent work...

What can I do?

Thanks
d-talk
I get the following error when trying to upload a file:

Quote
quote:
Bad Directory
The directory you specified:

$vars_modifications{SAVE_DIRECTORY} = "";

is invalid. This problem is caused by one of the three following reasons:

The directory doesn't exist. Make sure that this directory is a complete path name, not a URL or something similar. It should look similar to /home/username/public_html/uploads

The directory isn't writable. Make sure that this directory is writable by all users. At your UNIX command prompt, type chmod 777

The directory you specified isn't really a directory. Make sure that this is indeed a directory and not a file.

GO in your control panel and correct the path to the uploads
Both the DIR and URL paths are correct, the directory has been CHmodded to 777..

Any ideas..?
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/20/2002 1:56 AM
so this hack wont work with 6.3.1?

Cuz i cant even find the first lines of code in cp_edit_forum.pl
heheh, the cp has been css'd, the files are similar, but not the same smile

OK, are you stil having problems with this one?
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/20/2002 4:38 PM
Crap, wish someone would do it for 6.3.1

I have no idea what files to look in then...
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 12/04/2002 6:14 AM
Does anybody have this hack for 6.1 ind the forum for 6.0-6.2 the downloadlinks didn't work...

thanks
d-talk
I'll look and see where the files might have went smile

Quote
quote:
Originally posted by havoq:
Crap, wish someone would do it for 6.3.1

I have no idea what files to look in then...
It's still the same files... just pay attention when you work on the template files as they have been css'd smile
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 12/08/2002 1:55 AM
Yah sorry Allen, forgot to mention that I got this hack to work along time ago! Its fine now, tinkered with the 6.3.1 files and got it perfect.

Thanx thumbsup
havoq
I am in the same boat as you were.... what did you do to fix the issue? I am running 6.3.1.1
Posted By: d-talk Re: [6.3.x] [beta] Ely_M's Upload Modification - 12/08/2002 5:16 PM
When can we expect a working one for 6.4?

thanks
d-talk
Is there's a way to modify the script so he can upload to another server ?
The server of my forum is quite full frown
Hi,

I need this damn hack for my UBB version 6.1.0.3
All links to this hack in the other categories are down. Can someone here who maybe has the right older version of this hack email it to me?

Thanks in advance
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 12/11/2002 3:31 PM
Dan, what exactly doesnt work? What part?
instant message me at chugger93 if u want
Upload works great for 6.3.1.1... However, I have the modaddon6.3 installed also and inside it, there is an option for uploads to upload by Random Filename, Username in filename, and Member Number. This is a problem due to the fact that the files that are being uploaded as are going to be put into a database. How can I fix this to retain the actual filename that is being uploaded?

Thanks eek
Posted By: Dino Re: [6.3.x] [beta] Ely_M's Upload Modification - 03/16/2003 7:47 PM
Has anybody figured out why the radio box won't stay checked? Looks like this is a common problem that everybody is facing.

I followed the advice of each and every post. I'm running 6.3.1.1.
Posted By: Dino Re: [6.3.x] [beta] Ely_M's Upload Modification - 03/16/2003 7:56 PM
Update: I can get it to work perfectly on one forum at a time only. Files upload no problem.

As soon as I edit another forum's properties, the previous forum loses its uploadability.

This should be an easy fix, and sounds likes it's a common problem that never got resolved... or resolution got abandoned for the next rev. Well, not everybody has 6.10.10.10 loaded.

If anybody knows how to fix the issue of radio buttons not sticking on multiple forums, please, please let me know.
Hey Dino smile

Did you use the mhp version of this? It worked well if I remember right. Let me know.
Posted By: Dino Re: [6.3.x] [beta] Ely_M's Upload Modification - 03/17/2003 6:03 AM
Hey Allen!

Nah. I'm still a little old-school, and opted for LK's zip file. Plus it wouldn't have worked 100%, since the mhp file was looking for CSS'ed code with "id" in it. Mine doesn't have that. It's CSS'ed by no "id". I'm trying to add this upload hack to version 6.3.1.1.

The mhp files were helpful for the CSS'd pages.

However, I did figure out a work-around for this issue that I'm having. For me, I don't need the selectivity to turn uploading on or off on different forums. Personally, I think it's a waste of code, since the files are going to one location anyway. Plus, if someone had access to upload in one forum, he could still upload by popping open the file upload form from another forum, and still post to a different forum that doesn't allowed uploads. Am I talking in circles.

Like I was saying, on my forums, file uploading is OK on ALL my forums. So, I went into the mod wordlets and changed the wordlet "upload_not_allowed" from "Uploading not allowed in this forum" to:

[code][/code]There's more than one way to skin a cat! Works fine now, even though I wish I got this to work right the first time, without the work-around.
good to hear smile I may borrow that code if for some reason I can't get it to work myself smile
Posted By: Kumori Re: [6.3.x] [beta] Ely_M's Upload Modification - 05/27/2003 11:15 PM
Ok I got Question! I installed it onto 6.3.0 and it seems to be fine, no problems;

All the way to "uploading" but here's the problem, when I click the upload button and have already chosen the file to upload, it gives me an internal error 500, what can I do? what am I missing. I'm sure its been asked before, but i must'a' missed it
COOL EXTRA HACK

I hated only being able to name the file a random number (if you name it username or # that user can only upload 1 file cuz it keep renaming every new file the same name)
==========
find in ubb_upload.cgi
=========
Code
 if (($vars_modifications{elym_upload_filename_q} eq 'random_name') || ($ubber[0] eq '')) {
$tempname = time;
} elsif ($vars_modifications{elym_upload_filename_q} eq 'username_name') {
$tempname = $ubber[0];
} else {
$tempname = $ubber[4];
}
============
add after
===========
Code
$time = time;
$newtempname = join '',$tempname,$time;
now select either 'username' or 'usernumber' in control panel
I like this because when you look at the directory where you put those upload you can see which files are from which users and how many.
otherwise its just random numbers
but how do you prevent non members from uploading? this is a big security breach.
someone help me out, I will gladly donate to this forum
thanks
scott
Hey Scott, non members shouldn't be able to upload, do you have a link so I can test it?
http://autostream.com/forum
remember I did that mod above
Posted By: CTM Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/20/2003 11:10 AM
Somewhere in ubb_upload.cgi, check to see if $user_name and $password exist; if they don't, they're unregistered. smile Send them off to the "Not logged in" Wordlet via StandardHTML to remind them, though.

Untested, but it's not too hard to get working smile
hows this:
Quote
quote:
#check for password...
if (($username eq '') && ($topic_restrict ne 'all') && ($vars_display{RequireLoginPosts} eq "YES")) {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

$vars_wordlets{not_logged_in}!);
}
but where does it go? i tried a few places and it would bring me to login page even though I WAS logged in
???
Posted By: CTM Re: [6.3.x] [beta] Ely_M's Upload Modification - 08/21/2003 2:26 AM
Wait a minute... At the very top of ubb_upload_form.cgi, the following code exists:

Code
if ($username eq '') {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

<A HREF="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</A> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree">$vars_wordlets{register_title}</a>!);
}
That should stop unregistered users in their tracks. I don't understand how that doesn't work on your UBB, unless you've been modifying the contents of $username after it's been set or something...
i see that, all I modified was the filename portion in ubb_upload.cgi that I mentioned above.
I have the correct radio button "dont allowed...unregistered"

Is it only my UBB that has this problem?
http://autostream.com/forum
hmmm.. you allow unregistered posting, that may be the problem.
umm, only in one forum and only for replies, not new thread. But I changed that to require logging to post and the upload hack still uploads for guests...
but I put the above code in upp_upload.cgi
and it prevented uploading however it prevented uploading even while logged in too...so I am thinking I dont have the code in the right spot or the wrong code....????
well i added a stand alone button to the forum that opens the upload window.
So where do I need to place 'that' code to prevent that window from displaying the upload box??
Quote
quote:
# make sure we have someone logged in - unless unreg users allowed
if ((!$username) && ($reply_restrict ne 'all') && ($vars_display{RequireLoginPosts} eq "YES")) {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

$vars_wordlets{login_now} $vars_wordlets{or} $vars_wordlets{register_title}!);
}
ok i put this at the top of upp_upload_form
and so far testing seems to work....
Posted By: _Cash Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/08/2003 4:58 PM
Would anyone please help me with this?
I keep getting a "Bad Directory
The directory you specified:


$vars_misc{SAVE_DIRECTORY} = "";

is invalid" error.
If you contact me on PM, I'll send the admin loggin because I think there is something wrong with pointing to the correct directories, but I have no idea what I should add there.
Posted By: _Cash Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/09/2003 2:58 PM
Could anyone pls help me? Can't get it to work frown
Posted By: _Cash Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/10/2003 1:18 PM
. frown
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/17/2003 6:00 PM
You need to specify a directory in those double quotes Belgian
yes, something like http://www.mysite.com/ubb/uploads - and make sure the directory is set to 777 permissions
Posted By: Rainner Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/18/2003 10:32 PM
Hi,

I used Multihack on a clean board install 6.3.1.1 and had err's in
cp_forums.cgi
cp_edit_forum.pl
cp_forum_add.pl

All others were fine. I just had to manually edit these and it works fine.


Thanks

RaiNNer
Posted By: _Cash Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/21/2003 6:20 PM
Quote
quote:
Originally posted by havoq:
You need to specify a directory in those double quotes Belgian
Yeah but in what file do I have to enter it?
I entered the correct directory in the CP and the text above is the error message I get when trying to upload.
Posted By: havoq Re: [6.3.x] [beta] Ely_M's Upload Modification - 11/21/2003 6:49 PM
once you enter it through the CP, it makes the changes to the file, so theres no need to edit a file.

Dont forget to be using an absolute path for this field DIR path to the uploads folder

and a relative path for this field URL path to the uploads folder:
I had everything working great then had to transfer my files onto a new server, which was identical with RedHat 9 as the one it was on. I transfered all my files and reset all my permissions, but I keep getting the 500 error "premature end of script in ubb_upload.cgi.

Looking in my httpd error logs for this I find:

Can't locate CGI/Carp.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /home/rnc/cgi-bin/ubb_upload.cgi line 11.
[Tue Dec 09 18:53:17 2003] [error] [client 24.116.185.119] BEGIN failed--compilation aborted at /home/rnc/cgi-bin/ubb_upload.cgi line 11.


Any ideas?

Thanks
3 months FREE FTP Site for anyone who gets me running on this Elys!

Thanks

Desperate RaiNNer
Nothing like being noticed frown Two whole months, I guess I'm dead unless I upgrade huh?
have you uploaded a fresh set of modules from the install zip?
© UBB.Developers