Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-17-2000 Last Update: Never Installs: 0
 
No support by the author.

I don't recall seeing this done exactly this way before. If it has been, I apologize to the author.

Anyway, what this will allow a user to do is upload a file to your webserver that they can insert into their post. It's modelled after the old UBB image upload hack.

Please keep in mind that this was a quick and dirty hack job, and I wasn't making it with the intentions of releasing it.

You can specify the maximum file size that you'd like to use - that's about it as far as security goes.

Here's the file:
http://www.bronx-bombers.com/forums/...age_upload.zip

Here's an example:
http://forums.bronx-bombers.com/

Hope someone will find this useful .

-jim

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-19-2000, 01:52 AM
Guest
 
Posts: n/a
Default

Fred does your server run php on safe mode?
Reply With Quote
  #13  
Old 12-19-2000, 01:57 AM
Guest
 
Posts: n/a
Default

I found out the problem, I edited the file on my HD (global.php3), but I forgot to upload it. A simple mistake that caused the problem.

Anyways, so that part worked. And I made a dir in my forum dir called 'pictures'. I chomd it to 777 like I was told to.

But when I browse for an image, and then try to Upload it, it brings me to this:

Code:
// This is the script that takes the form values and uploads the image to the server. Illegal file type. Only files with .jpg and .gif extensions can be uploaded.
Please click here to go back and try again.
Any idea whats that from?
Reply With Quote
  #14  
Old 12-19-2000, 02:09 AM
Guest
 
Posts: n/a
Default

Did you rename upload_file.php to upload_file.php3?
Reply With Quote
  #15  
Old 12-19-2000, 02:21 AM
Guest
 
Posts: n/a
Default

Yes, and it's uploaded too

Wonder why it dont work.. i edited upload_file.php3 inside.. was i supposed to?

If so, what was I supposed to edit exactly..?
Reply With Quote
  #16  
Old 12-19-2000, 08:11 PM
Guest
 
Posts: n/a
Default

Even though the images are gif or jpg, I am getting this error and am not able to upload images. I am running vB 1.1.4 and PHP4
Thanks
-Hideki
Reply With Quote
  #17  
Old 12-19-2000, 09:33 PM
Guest
 
Posts: n/a
Default

Thats my problem too. JimF, please help me with this. The hack looks fantasic so far, I've got it on my pages and everything. The popup comes up, I can browse for an image (jpg or gif) and when I upload, that gay illegal gay comes up.

What EXACTLY do I edit in upload_file.php3 when I'm manually editing it in my Frontpage?
Reply With Quote
  #18  
Old 12-20-2000, 10:58 PM
Guest
 
Posts: n/a
Default

So can you help me?
Reply With Quote
  #19  
Old 12-21-2000, 08:28 AM
Guest
 
Posts: n/a
Default

hey hows it going
just a small question

when adding the max file size in:
$filesize = "300"
do you make it 300kb or leave it as 300

when i try both it comes up with this error:
// This is the script that takes the form values and uploads the image to the server. Your file is too large. Please click here to go back and try again.

let me know if i am doing anythgin wrong
thanks
Reply With Quote
  #20  
Old 12-21-2000, 08:56 PM
Guest
 
Posts: n/a
Default

Does it support Image Upload enabled only in selected forums?
Reply With Quote
  #21  
Old 12-23-2000, 08:21 AM
Guest
 
Posts: n/a
Default

what should i do if my serveris running in safe mode?

Quote:
Warning: SAFE MODE Restriction in effect. The script whose uid is 38330 is not allowed to access /tmp/phpC0UJze owned by uid 0 in /web/sites/154/twilightonline/www.twilight-online.f2s.com/forum/upload.php
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04918 seconds
  • Memory Usage 2,271KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete