php forum
php mysql forum
php mysql smarty
 
Page 1 of 9 1 2 3 4 5 6 7 8 9 >
Topic Options
#133974 - 05/01/01 04:06 PM [6.0x] ELY_M's Upload Modification
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
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: http://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?

Top
#133975 - 05/01/01 04:17 PM Re: [6.0x] ELY_M's Upload Modification
mw2com Offline
Junior Member

Registered: 02/02/01
Posts: 18
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!

Top
#133976 - 05/01/01 04:21 PM Re: [6.0x] ELY_M's Upload Modification
Webdaddie Offline
Member

Registered: 11/03/00
Posts: 202
Loc: East Coast NJ, USA
Works great here! Opps, I see what you are talking about the DEMO, nevermind, sorry!

Quote:
quote:


<FONT COLOR="#000000" SIZE="1">[ May 01, 2001 04:27 PM: Message edited by: Webdaddie ]</font>

Top
#133977 - 05/01/01 04:37 PM Re: [6.0x] ELY_M's Upload Modification
mw2com Offline
Junior Member

Registered: 02/02/01
Posts: 18
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

<FONT COLOR="#000000" SIZE="1">[ May 01, 2001 04:59 PM: Message edited by: Mikey ]</font>

Top
#133978 - 05/01/01 05:04 PM Re: [6.0x] ELY_M's Upload Modification
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
you have to set a folder up and give it 777 permissions for the uploads to go into
_________________________
- Allen wavey
- What Drives You?

Top
#133979 - 05/01/01 05:07 PM Re: [6.0x] ELY_M's Upload Modification
Tolitz Offline
Member

Registered: 09/15/00
Posts: 164
Loc: Los Angeles, CA
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 => "<b>Upload File Form</b>",

ELY actually meant to add it like this:

upload_link => q~<b>Upload File Form</b>~,

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...

<FONT COLOR="#000000" SIZE="1">[ May 01, 2001 05:08 PM: Message edited by: Canis Lupus ]</font>
_________________________
Open Tech Support

Top
#133980 - 05/01/01 06:26 PM Re: [6.0x] ELY_M's Upload Modification
Webdaddie Offline
Member

Registered: 11/03/00
Posts: 202
Loc: East Coast NJ, USA
Think we can get this running for 6.04c?

Quote:
quote:

Top
#133981 - 05/01/01 06:28 PM Re: [6.0x] ELY_M's Upload Modification
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
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?

Top
#133982 - 05/01/01 09:13 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
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

<FONT COLOR="#000000" SIZE="1">[ May 01, 2001 09:14 PM: Message edited by: ELY_M ]</font>

Top
#133983 - 05/01/01 10:11 PM Re: [6.0x] ELY_M's Upload Modification
qasic Offline
Developer

Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
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. <b>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. </b>

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
_________________________

Top
#133984 - 05/01/01 10:26 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
thanks qasic,

human mistakes do happen.

Top
#133985 - 05/01/01 10:54 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
the new zip is uploaded. I did corrected mistakes that qasic told me about.

Top
#133986 - 05/01/01 11:59 PM Re: [6.0x] ELY_M's Upload Modification
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
installed easily ELY, nice work smile
_________________________
- Allen wavey
- What Drives You?

Top
#133987 - 05/02/01 03:10 AM Re: [6.0x] ELY_M's Upload Modification
mw2com Offline
Junior Member

Registered: 02/02/01
Posts: 18
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?

Top
#133988 - 05/02/01 06:09 AM Re: [6.0x] ELY_M's Upload Modification
melder Offline
Enthusiast

Registered: 02/28/01
Posts: 497
Loc: dresden, germany
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
_________________________
loveground.com

Top
#133989 - 05/02/01 07:44 AM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Mikey: login there with your nick/password and enter http://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

<FONT COLOR="#000000" SIZE="1">[ May 02, 2001 07:47 AM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#133990 - 05/02/01 10:04 AM Re: [6.0x] ELY_M's Upload Modification
mw2com Offline
Junior Member

Registered: 02/02/01
Posts: 18
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

Top
#133991 - 05/02/01 01:58 PM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
It works, just a few suggestions:
<OL TYPE=a>

[*]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.
</OL>

Thanks for this hack.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#133992 - 05/02/01 02:00 PM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Mikey, what's your UBB's url?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#133993 - 05/02/01 02:08 PM Re: [6.0x] ELY_M's Upload Modification
SkipperII Offline
Member

Registered: 03/09/01
Posts: 46
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

<FONT COLOR="#000000" SIZE="1">[ May 02, 2001 02:14 PM: Message edited by: SkipperII ]</font>

Top
Page 1 of 9 1 2 3 4 5 6 7 8 9 >


Who's Online
0 registered (), 28 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
Today at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks