The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
File upload path is wrong in show_submissions - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: File upload path is wrong in show_submissions (/showthread.php?tid=725)



File upload path is wrong in show_submissions - morphiex - May 31st, 2010

Hi first of all Form tools is awesome, really nice features that are perfect for my current project.

The problem i am having is that when i upload a file it works great ,the uploaded file goes into the orrect folder i specified but when i want todisplay the files(photos) in my page with the form_submissions function the path for the files are wrong.

example:
i upload the file, the file goes to the correct folder (http://www.site.com/folder/images/image.jpg) butwhen i want to display the files on a page the path file is set as (http://www.site.com/image.jpg)

is this a bug or have I overseen something?

Edit1:
ok i understand the problem a little better now , the file export module exports the file name with the file type not the url of the file which is hat i am after.

Edit2: Ok i tried the guide thats here : http://forums.formtools.org/showthread.php?tid=612
but yeah it managed to add the <ahref=""><img src=""></a> to the photos but still the url is havign the same problem as before , the path for the images aren't correct ... =/

Oh and yeah i added the image gallery module, and the images show up perfectly the form works as intended i just cant figure out why the url is wrong for the images when i try to display them.

Edit3: Ok i fixed the issue now, he problem was i forgot to customize the options for the file upload field.. doh! anyways awesome work guys , now i gotta figure out how to display the thumbs , wich shouldnt be too hard.

Edit 4: EVERYTHIGN WORKS CORRECTLY NOW!!! lol thanks alot guys =)


RE: File upload path is wrong in show_submissions - Ben - Jun 1st, 2010

Yeah - apologies about #3. Known bug. Must fix!!!!!!!

Glad you got it sorted out. Smile

- Ben