Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 06:22:08 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: 1 [2] 3 4 ... 8   Go Down
Print
Author Topic: FormX - Forms with file captcha/upload/calendar/mail attachment/submission  (Read 32154 times)
bb_team

Offline Offline

Posts: 5


« Reply #25 on: September 12, 2008, 03:41:57 PM »

bb-team had a nice idea... save the sumbmitted data into a serialized array... Will be implemented soon

thanks, that would be great.
i am currently working on this too since i urgently need it for a site.
i am not really a good coder -not even an average one- but if you are interested i'll keep you updated.

i am also working on another hack:
sometimes you need to output some of the submitted data both in the "thank you for sumbitting form" page and in the email sent to to submitter.
i tried to work on the solution posted here: http://www.websitebaker2.org/forum/index.php/topic,10070.0.html
(using session data would be quite comfortable and i could use them also for an alternate mail() function) but  most of my fields do not even show up in the $_SESSION array sad
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #26 on: September 13, 2008, 01:34:48 AM »

i am also working on another hack:
sometimes you need to output some of the submitted data both in the "thank you for sumbitting form" page and in the email sent to to submitter.
i tried to work on the solution posted here: http://www.websitebaker2.org/forum/index.php/topic,10070.0.html
(using session data would be quite comfortable and i could use them also for an alternate mail() function) but  most of my fields do not even show up in the $_SESSION array sad

Hi bb_team,
sure I'd like to be posted about your progress.
Regarding the 2nd issue, it will be enough to use a 'template' form for "thank you for sumbitting form' and for the 'submitter' ?

Regards
,
Stefano
Logged

mercator

Offline Offline

Posts: 79


« Reply #27 on: September 13, 2008, 05:09:45 PM »


How much of the uploader is working: I only get

    * There was an error uploading the file: IMG_3753.JPG (Upload error: File size too large. The maximum permitted size is: 8000000 bytes.), please try again!

which is funny as the file I wanted to upload is under 40'000 bytes....
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #28 on: September 13, 2008, 05:23:26 PM »

Hi, if you use an older version of the module, please check the max file size specified in 'Settings' and conider ne number there as bytes!. There was a bug that was not considering the Kb...

Regards

Stefano
Logged

mercator

Offline Offline

Posts: 79


« Reply #29 on: September 16, 2008, 08:49:04 AM »

Actually, I use the latest one. I tried to set it to 999999 and upload a 80'000 byte file. Still the same message.
Logged
maxxis

Offline Offline

Posts: 30


« Reply #30 on: September 16, 2008, 12:07:38 PM »

I'm running the latest version of this module and the upload is working 100%

Only problem is that the submissions are not being stored in the backend under submissions.

Any ideas.
Logged
ecology

Offline Offline

Posts: 117



WWW
« Reply #31 on: September 16, 2008, 01:52:08 PM »

hm,.. have the same problem here. like to edit the 8000000 but in the backend settings the value is 0 ! when i edit this i get no effect, still a cero...
the submission problem i've here tooo...
eco.

edit: in the max upload file field you only can put in 6 numbers!
« Last Edit: September 16, 2008, 01:57:29 PM by ecology » Logged

echo "hello world" ;-?
-------------------------------
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #32 on: September 17, 2008, 11:10:39 AM »

Hi,
sorry to be a bit late... but I'm on holiday....

Anyway...

- For the file size issue: could you inspect the source of the page and look for '<input type="hidden" name="MAX_FILE_SIZE" value="NNNNNNN">' ? The NNNNNN is the max value of the uploaded file in bytes.
In my installation it's all ok.
- For the submission not stored in the database: plese check that the 'Max. Submissions Per Hour:' and '    
'Submissions Stored In Database:' in 'Settings' are not et to 0

Otherwise, double check the version you've installed is '1.4.1'

Regards,

Stefano
Logged

aeon

Offline Offline

Posts: 21


« Reply #33 on: September 17, 2008, 01:05:32 PM »

V 1.4.1 here - I cannot set a maximum upload value on the settings page - it always comes back as 0. Other settings changed seem to save OK.  Max per hour and Max submission all have values and can be set. The only way I could get the module to work was to edit the max_file_size_kb filed in the database table directly!
Logged
aldus

Offline Offline

Posts: 1238


« Reply #34 on: September 17, 2008, 01:28:48 PM »

Hm ... looks to me like a little bug inside "save_settings.php":
$max_file_size_kb in line 96 should be "$_POST['max_file_size_kb']" - if you
have "REGISTER GLOBALS == off" - the value of the field will not be submited ...

Edit:

Some code-changes in the "save_settings.php" to avoid this:
Code:
<?php

$max_file_size_kb 
$_POST['max_file_size_kb'];

/**
 *    Update settings
 *
 *    @version    1.4.2
 *    @date        2008-09-17
 *
 */
$query_fields = Array(
    
"header",
    
"upload_file_chmode"
    
"field_loop"
    
"footer",
    
"email_to",
    
"email_from",
    
"email_fromname",
    
"email_subject",
    
"success_page",
    
"success_email_to",
    
"success_email_from",
    
"success_email_fromname",
    
"success_email_text",
    
"success_email_subject",
    
"max_submissions",
    
"stored_submissions",
    
"use_captcha",
    
"upload_files_folder",
    
"attach_file",
    
"max_file_size_kb",
    
"upload_only_exts"
);

/**
 *    Building the query ...
 */
$query  "UPDATE ".TABLE_PREFIX."mod_formx_settings SET ";
foreach (
$query_fields as $i$query .= $i."='".$$i."',";
$query substr($query0, -1)." WHERE section_id = ".$section_id;

/**
 *    Running the query
 */
$database->query $query );
?>



Regards
Aldus
« Last Edit: September 17, 2008, 01:55:49 PM by aldus » Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #35 on: September 17, 2008, 06:36:11 PM »

Hi,
thanks to the precious help of Aldus I fix the bug of max_file_size in version 1.4.2 already available for download
http://www.websitebaker2.org/forum/index.php/topic,10014.msg58854.html#msg58854

Regards,
Stefano
Logged

Luckyluke

Offline Offline

Posts: 555



« Reply #36 on: September 18, 2008, 09:30:40 AM »

/// OFF TOPIC ///
@ SHARMPRO

Hoi Stefano,

Is it possible to resize your avator? Now it's 1167 x 1707 pixels and it takes a huge time to load on some slow computers. And in a topic with much posts from you, my old and slow notebook is getting hurt   grin

Grtz,
Luc
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #37 on: September 18, 2008, 09:41:32 AM »

... Is it possible to resize your avator? Now it's 1167 x 1707 pixels ....

Have seen it before and also had the idea to aks if you could make it a lil bit smaller.
BTW nice foto. Is it you?  cheesy

Regards from Germany,
Stefek

Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
aldus

Offline Offline

Posts: 1238


« Reply #38 on: September 18, 2008, 10:17:59 AM »

// offtopic

What about this one? 80x80 px and under 10k ... should be "fast" enough for slow mashines  grin

Kind regards
Aldus
« Last Edit: September 18, 2008, 10:49:04 AM by aldus » Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #39 on: September 18, 2008, 10:56:46 AM »

Hi folks,

I 'shrunk' my ego and avatar as suggested to 80x80 for a mere 3.6Kb ....

Regards,

Stefano
Logged

Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #40 on: September 18, 2008, 11:21:24 AM »


This one looks also really cool and individualistic.  tongue

Aldus. Didn't know you're such well skilled with picture editign. You little genius you  cool

Regards,
Stefek

[/off-topic]
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Luckyluke

Offline Offline

Posts: 555



« Reply #41 on: September 18, 2008, 11:53:38 AM »


I 'shrunk' my ego...


Your ego  cheesy
My slow notebook will thank you!
And sorry for the off topic in this FormX module

Grtz,
Luc
Logged
mercator

Offline Offline

Posts: 79


« Reply #42 on: September 18, 2008, 09:01:17 PM »

This is a great module... and now uploading works. However, the messages are NOT stored in the database (or at least I cannot see them on the my website). HELP!
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #43 on: September 18, 2008, 09:11:55 PM »

Hi Mercator,

did you check the Settings:
Max. Submissions Per Hour:      50
Submissions Stored In Database:     50

This is the only limit to submission storage...
Unless there is an error...
Try to set error level to E_ALL and try a submission, see if there is an error and the reset the error level as previous.

Let me know the results.

Regards, Stefano
Logged

mercator

Offline Offline

Posts: 79


« Reply #44 on: September 18, 2008, 09:24:38 PM »

sumissions/hour et al set right.

OK, this is what I get:

Notice: Undefined index: field8 in ..../wb/modules/formx/view.php on line 489

(and field8 holds the file I uploaded)
« Last Edit: September 18, 2008, 09:35:53 PM by mercator » Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #45 on: September 18, 2008, 09:41:43 PM »

Hi,
the program after sending the email, inserts the submitted form into the database and check for errors....
The line
Notice: Undefined index: field8 in ..../wb/modules/formx/view.php on line 489
is not an error and does not interfere with the data storage...
If you see the 'Success' message everything has been completed.

In the backend you should see a list of submitted form under the form definition.

Regards,

Stefano
Logged

mercator

Offline Offline

Posts: 79


« Reply #46 on: September 18, 2008, 09:43:56 PM »


Hmm, nope, nothing in the "Submitted section"....
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #47 on: September 18, 2008, 10:09:20 PM »

Hi,
could you Uninstall the module and re-install it?
I'm running low on possible explanations.

Stefano
Logged

mercator

Offline Offline

Posts: 79


« Reply #48 on: September 18, 2008, 10:19:56 PM »

Hello

Done, does not help. Though I noticed that - when I go to the settings of my page - and store them, it says

Notice: Undefined variable: upload_files_folder in /home/www/web78/html/_mercator/wb/modules/formx/save_settings.php on line 83

Regards,
Mercator
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #49 on: September 18, 2008, 10:30:51 PM »

Hi,
this bug will prevent the module from create the /media/xxxxxxxx upload folder. (upload_files_folder)
Check if the folder is created..
But this shouldn't prevent from store the submissions...

Stefano
Logged

Pages: 1 [2] 3 4 ... 8   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!