php forum
php mysql forum
php mysql smarty
 
Page 1 of 10 1 2 3 ... 9 10 >
Topic Options
#202951 - 05/04/04 06:21 AM [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio

   [6.7] [beta] UBB.Uploader to Del.icio.us Add to del.icio.us
  Digg [6.7] [beta] UBB.Uploader Digg it
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: http://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

Top
#202952 - 05/04/04 09:07 AM Re: [6.7] [beta] UBB.Uploader
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
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.

Top
#202953 - 05/04/04 09:10 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I didn't have gif in my regular extentsion list. I just put it in there. Try it now. smile

Top
#202954 - 05/04/04 09:39 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Unable to parse your referer. Are you sure you clicked on it through the forums?

smile Quite sure, clicked through quick reply
_________________________
Code monkey like Fritos

Top
#202955 - 05/04/04 09:43 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I altered something that might have done that 10 minutes ago. Redownload ubb_upload.cgi, and reupload it. smile

Top
#202956 - 05/04/04 09:45 AM Re: [6.7] [beta] UBB.Uploader
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5123
Loc: Portland, OR, USA
hehe, idea by Gizzy :-x... I still say being able to publish extensions through a UI would be good frown .
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202957 - 05/04/04 09:49 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#202958 - 05/04/04 10:00 AM Re: [6.7] [beta] UBB.Uploader
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
Brett,
The upload worked great this time. Thanks again for doing the mod.

Top
#202959 - 05/04/04 10:07 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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.

Top
#202960 - 05/04/04 10:51 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
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?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202961 - 05/04/04 10:54 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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.

Top
#202962 - 05/04/04 10:55 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
did you upload the new ubb_upload.cgi?
_________________________
Code monkey like Fritos

Top
#202963 - 05/04/04 11:01 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi Brett I have clicked at the link at the new topics page....

Ian I have uploaded the new file...
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202964 - 05/04/04 11:05 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Could i get a link to your board w/test username & password?

Top
#202965 - 05/04/04 11:05 AM Re: [6.7] [beta] UBB.Uploader
eXtremeTim Offline
Member

Registered: 10/13/01
Posts: 544
I will let you know if this works with 6.6 hopefully tonight.
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=extremetim&s=1[/img]

Top
#202966 - 05/04/04 11:10 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
http://www.d-talk.tv/cgi-bin/ultimatebb.cgi

Username: Testuser

password: CCTK86
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202967 - 05/04/04 11:21 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I was able to open it up without issues. Do you have a firewall installed?

Top
#202968 - 05/04/04 11:24 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Yes a router.... frown

I get the same error at your board...
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202969 - 05/04/04 11:28 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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.

Top
#202970 - 05/04/04 11:29 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
How long does it take to release this new version? :rolleyes:
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202971 - 05/04/04 11:33 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio

Top
#202972 - 05/04/04 11:54 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Great Work Brett!

Thank you very much!!! thumbsup
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202973 - 05/04/04 03:58 PM Re: [6.7] [beta] UBB.Uploader
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25434
Loc: Texas
Thanks Brett for the great mod laugh
_________________________
- Allen wavey
- What Drives You?

Top
#202974 - 05/04/04 05:04 PM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
laugh Works great. I love the ability to delete other members files.
_________________________
Code monkey like Fritos

Top
#202975 - 05/04/04 07:04 PM Re: [6.7] [beta] UBB.Uploader
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5123
Loc: Portland, OR, USA
Dare I say it, I like it more than flare wink ... At least I'm already authenticated when I click upload file form :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202976 - 05/05/04 01:59 PM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#202977 - 05/05/04 04:19 PM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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)

Top
#202978 - 05/05/04 05:06 PM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Is anyone else having problem using this with IE 6?

I get the referer error in IE, but not in Firefox
_________________________
Code monkey like Fritos

Top
#202979 - 05/06/04 07:22 AM Re: [6.7] [beta] UBB.Uploader
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
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.

Top
#202980 - 05/06/04 07:25 AM Re: [6.7] [beta] UBB.Uploader
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
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.

Top
#202981 - 05/07/04 12:20 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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.

Top
#202982 - 05/07/04 05:26 AM Re: [6.7] [beta] UBB.Uploader
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
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

Top
#202983 - 05/07/04 05:41 AM Re: [6.7] [beta] UBB.Uploader
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5123
Loc: Portland, OR, USA
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.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202984 - 05/07/04 11:07 PM Re: [6.7] [beta] UBB.Uploader
Poopy Pants Offline
Member

Registered: 08/22/01
Posts: 100
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.

Top
#202985 - 05/07/04 11:32 PM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Did you add/upload the changes in cp2_lib.cgi?

Top
#202986 - 05/08/04 08:02 AM Re: [6.7] [beta] UBB.Uploader
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
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.

Top
#202987 - 05/08/04 09:43 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
make sure you fill in EVERYTHING. Every textbox must be filled in, even if you just put 0 in it
_________________________
Code monkey like Fritos

Top
#202988 - 05/08/04 02:59 PM Re: [6.7] [beta] UBB.Uploader
Poopy Pants Offline
Member

Registered: 08/22/01
Posts: 100
Yes, every field has a value.

Top
#202989 - 05/08/04 10:15 PM Re: [6.7] [beta] UBB.Uploader
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
D'Oh! Now it all makes sense.

Top
#202990 - 05/10/04 08:14 PM Re: [6.7] [beta] UBB.Uploader
Poopy Pants Offline
Member

Registered: 08/22/01
Posts: 100
any possible updates on the errors we're getting?

Top
#202991 - 05/10/04 08:19 PM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I had that issue, then I made sure to fill everything in and it went away
_________________________
Code monkey like Fritos

Top
#202992 - 05/12/04 04:09 PM Re: [6.7] [beta] UBB.Uploader
Poopy Pants Offline
Member

Registered: 08/22/01
Posts: 100
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?

Top