Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 07-13-2003, 04:59 AM
DeMuro1's Avatar
DeMuro1 DeMuro1 is offline
 
Join Date: Apr 2003
Location: A Golden State
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok so I'm having problems making this work. Any suggestions? Do I perhaps need to enter a password somewhere? ANy help would again be greatly helpful
Reply With Quote
  #22  
Old 07-17-2003, 09:59 AM
DeMuro1's Avatar
DeMuro1 DeMuro1 is offline
 
Join Date: Apr 2003
Location: A Golden State
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok so I have the script loaded onto my server as a .php file. That part works really well. It even seems to upload the imagebut when I check the desired directory I get nothing. is it possible that I'm not entering the file location properly?

eg.
PHP Code:
$newfile "/home/pathto/public_html/yourfoldername/".$userfile_name
yourfoldername = http://www.bobsnetplace.net/images

or should I just be putting images

eg.

yourfoldername = images

if I upload the images from my computer harddrive do I need to modify the script/

maybe add a line that looks like this

<input type="text" value="name" name="file_name" maxlength="100" size="100"><br>

to the form and then maybe a line like this

PHP Code:
$userfile_file_name $HTTP_POST_FILES['userfile']['file_name']; 
could these things maybe solve my problems?

Please help I'm still struggling with this
Reply With Quote
  #23  
Old 07-17-2003, 12:47 PM
Gavin B. Gavin B. is offline
 
Join Date: Jul 2003
Location: Australia
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it give you any errors?

You'll need to edit that path, it depends on how the server is set up, but if you use the username you use to login to FTP (replace the red part below) and the folder you wish to upload to (the blue part). Make sure the folder has permissions set to 777

/home/username/public_html/yourfoldername/
Reply With Quote
  #24  
Old 07-17-2003, 07:17 PM
DeMuro1's Avatar
DeMuro1 DeMuro1 is offline
 
Join Date: Apr 2003
Location: A Golden State
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no errors. once I click the upload button it just sort of reloads the page it's really anoying. it also says opening:......some page info here..... at the very bottom of the screen. I'll try what you just gave me I really want this to work

Thanks and sorry for being a pill
Reply With Quote
  #25  
Old 07-30-2003, 09:53 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Gavin: I had been looking for something like this for the past few days!

I am pretty new to hacking, but I am learning. I have a couple of questions about this:

Quote:
You can setup a simple form with a 'browse' button which allows users to upload images to a specified folder fairly easily which will upload and transfer the images to the folder. You can specify a pointer in mysql like /images/imagename.jpg
1. The php script you wrote on page 1, I know how to upload it, but where do I upload it to? I put it in my forum directory.

2. A simple form with a browse button, OK, I think I can handle that too. I did this, but I have no idea how to incorporate it all so the browse or upload form will come up in a "new post".

When I regularly upload images, I have to use a password, is that figured into the script?

Thanks for the help.
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 04:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03987 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • postbit_imicons
  • 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