Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: Upload Mod for V6

Description: This is a easy to install modification that allows your users to upload files to your site. You configure settings from the control panel to disallow different types of files to be uploaded. Developed for 6.04c, your files may be slightly different.

Author: ELY_M

Demo: https://www.ubbdev.com/db/cgi/ultimatebb.cgi?ubb=newtopic&f=20

Link: http://elym.tripod.com/ELYS_upload_hack.zip


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
FYI
You do not have permission to enter this area.
ยป Please use your browser's back button to return.

It would be nice if we could all see the demo!

Joined: Nov 2000
Posts: 148
Member
Member
Offline
Joined: Nov 2000
Posts: 148
Works great here! Opps, I see what you are talking about the DEMO, nevermind, sorry!

Quote
quote:
[ May 01, 2001 04:27 PM: Message edited by: Webdaddie ]

Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
Well its there.. and CP works But when i click on the link to upload a file i get

Script execution error
Unable to execute script due to a configuration problem.
Please notify the webmaster of this error.

exec() returned: 2: No such file or directory

And the links in the CP are right

[ May 01, 2001 04:59 PM: Message edited by: Mikey ]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
you have to set a folder up and give it 777 permissions for the uploads to go into


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Sep 2000
Posts: 90
Member
Member
Offline
Joined: Sep 2000
Posts: 90
Here are a couple of things probably not mentioned in the documentation:

* The /uploads folder you create must be CHMODed 777.

* The wordlets modification was a little outta whack when I did it. Here may be a possible solution:

When it says to add lines like this:

upload_link => "Upload File Form",

ELY actually meant to add it like this:

upload_link => q~Upload File Form~,

Do these changes with each line in the wordlets to be included into vars_wordlets.cgi, unless you wanna just put these lines AS IS into vars_wordlets_mods.cgi, in which case you would have to add:

require "$vars_config{VariablesPath}/vars_wordlets_mods.cgi";

into the uploads.cgi file...

[ May 01, 2001 05:08 PM: Message edited by: Canis Lupus ]

Joined: Nov 2000
Posts: 148
Member
Member
Offline
Joined: Nov 2000
Posts: 148
Think we can get this running for 6.04c?

Quote
quote:

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It is running on 6.04c...:) What are you having problems with?


CL, good suggestions. For the wordlets, I suggested using the vars_wordlets_mods.cgi file as well, to make upgrading the ubb a little easier, and to help with standardization for modifications.

This one is only a day old, we'll give ELY_M some time to work out the kinks...


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
I worked thru the code and switched the wordlets over to wordlet_mods

I also recoded some of code to add more control for header and footer.

I also added some new CP hacks that let you change the size of the popup window and placment (where you want popup window to appear on left and top)

I hope it is much better for you than yesterday.

I also added some information for people who use older versions of ubb.

I hope it is ok that I added the wordlet_mod dev kit for someone who is first time to hacking his/her ubb.

let me know if it is not ok.

The zip is updated smile

[ May 01, 2001 09:14 PM: Message edited by: ELY_M ]

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Ely,

Good hack. Some quirks:

vars_wordlets_mods.cgi file should ALWAYS have the following line: mod_wordlets => q~Modifications Wordlets~,. Please have that line in.

Misc Settings: You accidentally placed:

------------------
&RegField ("Illegal file format #1 ", "illegalfile1", "yes", "3", "3", "Type all file extensions you want to block from being uploaded by the users in the text boxes below. Only put one extenison in one text box. all file extenisons *.exe will be not be uploaded and blocked. Do not add "." before the extenison. as a example, you just put in "exe" in one text box and put "zip" in other text box. the script does this job already. Do not use quotes.

Leave those text boxes blank if you do not want to block any file extenisons from being uploaded by the users.", "$vars_misc{illegalfile1}");
---------------

three times in your instructions. Once will suffice in my opinion.

Those are my major quirks. There are others involving capitalization but those are minor.

Great job.

q

Sponsored Links
Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
thanks qasic,

human mistakes do happen.

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
the new zip is uploaded. I did corrected mistakes that qasic told me about.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
installed easily ELY, nice work smile


- Allen wavey
- What Drives You?
Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
well ive uploaded the new hack it gose in very nice and its more understandable
thanks!!!!!

but i might be doing somthing wrong here but when i click the link for upload all i get is a window pop up that says
------------------------------------------
Script execution error
Unable to execute script due to a configuration problem.
Please notify the webmaster of this error.

exec() returned: 2: No such file or directory
-----------------------------------------

Now my dirs are correct and the chmod is 777

any ideas?

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
1) is your "zip" file incorrect ? i get no download !!!

2) if u have a "show me the pics" script.

show me the "gif" and "jpg" in a DIR (like ubb 5 - gallerie hack) in a HTML page incl. the file name.

... so u can add "avatar" or "smilies"

hope u understand wink >> www.chat-board.de
hope

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Mikey: login there with your nick/password and enter https://www.ubbdev.com/db/cgi/ultimatebb.cgi?ubb=newtopic&f=18

Melder: Don't use any download programs like Getright/DAP, because in Tripod you must click on something.

ELY_M: nice job smile

[ May 02, 2001 07:47 AM: Message edited by: LK ]

Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
so i have seen the demo and it looks good laugh

but mine is now installed adn i keep getting this error when i click on the upload link
_________________________________________

------------------------------------------
Script execution error
Unable to execute script due to a configuration problem.
Please notify the webmaster of this error.

exec() returned: 2: No such file or directory
-----------------------------------------

May Paths are ok
************************************
/home/web/www.*******com/upload
and
http://www.*******.com/upload
**************************************
MY directorys are correct
and set to the right chmod 777
***************************************

But it still dont work

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It works, just a few suggestions:


    [*]Add it also to edit (which I believe it's just the same as in public_new_topic_form.pl/etc).

    [*]Add an option that the administrators can remove files, by filename or by user number.


Thanks for this hack.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Mikey, what's your UBB's url?

Joined: Mar 2001
Posts: 45
Member
Member
Offline
Joined: Mar 2001
Posts: 45
Can anyone make a new description for the UBB Version 6.0? Please Please? Need Help!

I have test it but the Error was:
Code
code:

The Error came after the save the CP Settings!
All Files and dirs are correct and the chmod is 777!

And I can't see the Demo! The error:
FYI You do not have permission to enter this area.
ยป Please use your browser's back button to return.

It would be nice if we could all see the demo!
Please Help!

SkipperII

(Sorry for my terrible english) confused confused

[ May 02, 2001 02:14 PM: Message edited by: SkipperII ]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
SkipperII: like I told to Mikey, login there with your nick/password and enter https://www.ubbdev.com/db/cgi/ultimatebb.cgi?ubb=newtopic&f=18

Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
http://www.cytek.uk.com/cgi-bin/ultimatebb.cgi

Its not ready yet just a few mwssages on there id just like to get this file upload working so i can let my cutomers use it for data file uploads.

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
where is your uploads folder ?

I seem cant find the folder uploads or upload

I tryied to type

http://www.cytek.uk.com/cgi-bin/upload

or

http://www.cytek.uk.com/cgi-bin/uploads


you have to create uploads folder

[ May 02, 2001 05:49 PM: Message edited by: ELY_M ]

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
try to move your upload folder to

http://www.cytek.uk.com/cgi-bin/upload

Joined: Feb 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 14
thanks for your help
This man is fantastic eek

did you find anything in my scripts?
pm me on my board
i will check later

Joined: Sep 2000
Posts: 441
Member
Member
Offline
Joined: Sep 2000
Posts: 441
hi there,
just a few questions: i'd like to use this upload-hack just for ONE single forum, is this possible..? and: is there any possibility to upload the files to another server..? because i would like to host the ultimatebb AND the files on two different servers to avoid a 'disk quota'error due the fact that we have a limited webspace for the forum-engine...:/
best regards and this hack sounds really interesting,
chris

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
Quote
quote:

sound great idea to add another CP hack to specific one forum to allow file uploading smile
it depends if the server is allowing external linking. it is possible. you have to try it.

Joined: Mar 2001
Posts: 45
Member
Member
Offline
Joined: Mar 2001
Posts: 45
Nobody can help me to install the Hack in a UBB 6.0 ????

SkipperII

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
I did some revising the upload hack.

I moved the toggle on and off for allowing uploads in to forum settings section in the CP.

Admin should be able to allow file upload in specific forum.

I added new CP hack for allowing File uploads in private messages.

Admin should have right to decide to allow the file uploads in private messages.

Im sure that some forums want to have users private message files and others want to block that.


The upload zip is updated.

redownload it again smile

I hope it works better for the users now.

Joined: May 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 4
Now you have an option with files wich are are not allowed, but I wat something so I can specify the files which must be allowed, how??

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
ELY_M: Bug: it isn't shown when I add a new forum.


Fix (not tested):
Code
code:
you can also move CHECKED to No, if you want it to be the default one

[ May 06, 2001 06:34 AM: Message edited by: LK ]

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
Quote
quote:
DO not put any extenisons that you want allow smile


If you leave all text boxes blank. you are allowing ALL kinds of files.

If you put in exe and you are ONLY blocking all *.exe files and allowing all others kinds of files execpt .exe
############################################


LK:

Thanks for advising me about that smile

[ May 04, 2001 08:04 AM: Message edited by: ELY_M ]

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
The zip is updated with the fix that LK mentioned smile

Joined: May 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 4
Quote
quote:
DO not put any extenisons that you want allow smile


If you leave all text boxes blank. you are allowing ALL kinds of files.

If you put in exe and you are ONLY blocking all *.exe files and allowing all others kinds of files execpt .exe
[/QUOTE]


I only want my members to upload .gif and .jpg! Now, I can't put al of the other extensions in my cp

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Buzin: (untested)

***************
OPEN upload.cgi
***************


find
----
if ( ($Filename =~ /^.+(.$vars_misc{illegalfile1})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile2})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile3})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile4})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile5})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile6})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile7})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile8})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile9})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile10})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile11})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile12})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile13})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile14})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile15})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile16})$/i)
|| ($Filename =~ /^.+(.$vars_misc{illegalfile17})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile18})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile19})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile20})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile21})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile22})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile23})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile24})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile25})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile26})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile27})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile28})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile29})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile30})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile31})$/i) )


replace with:
-------------

unless ( ($Filename =~ /^.+(.$vars_misc{illegalfile1})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile2})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile3})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile4})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile5})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile6})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile7})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile8})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile9})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile10})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile11})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile12})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile13})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile14})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile15})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile16})$/i)
|| ($Filename =~ /^.+(.$vars_misc{illegalfile17})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile18})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile19})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile20})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile21})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile22})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile23})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile24})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile25})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile26})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile27})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile28})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile29})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile30})$/i) || ($Filename =~ /^.+(.$vars_misc{illegalfile31})$/i) )

The only difference is "unless" instead of "if".
Again, it's untested, so backup before.

LK

Edit: removed [code] because it messed the thread.

[ May 06, 2001 06:33 AM: Message edited by: LK ]

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
LK:

Cool idea smile

It look like It will work better.

I have to change the wording in the CP for allowing exact extenisons.


Thank you LK smile

Joined: Mar 2001
Posts: 136
Journeyman
Journeyman
Offline
Joined: Mar 2001
Posts: 136
somone fix this messed up thread please....


I re-coded the code to let "allow" files extensions instead of "block".

few new wordlets are added.

Please redownload the zip and redo the upload hack on your forum if you want the new way for the file extenisons.

Thanks to LK for ideas smile

It is helpful to listen to the users smile

Joined: Jun 2000
Posts: 22
Member
Member
Offline
Joined: Jun 2000
Posts: 22
I will get this installed soon on my boards.. I haven't had the time yet to take a close look at it, however I have one request.

How about instead of only being able to upload files on a particular post, create it so it's like a file upload utility. What I mean is can you modify it so that each user can access their file space through their profile where they may then upload/delete and manage their files through the web browser.. similar to free webspace such as geocities etc.

I hope you understood what I just said... and hopefully you'll go through with it, but anyway great hack.. thanks! smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Bug:
There is no Upload in PM switch in Control Panel.

Page 1 of 5 1 2 3 4 5

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)