| Post |
|
Guest
| Zee 11:03 pm December 29, 2008
| |
|
|
Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used: Ff2
- cforms version: latest
- Your Wordpress version: 2.6.2
[desc]: Hi,
When using the API, where do the $params (for instance) come from for the AJAX API? And, besides the (named) fields, what 'values' are there? Is there a reference for that? Let's say I want to check whether the form submission failed or succeeded. How would I check that? (Outside the form in PHP.)
Thanks for your reply!
Z
|
|
|
Admin
| Oliver Munich, Germany posts 6094 8:28 am December 30, 2008
| |
|
|
Please read
5. Advanced: cforms APIs & (Post-)Processing of submitted data
on your cforms Help page.
The *filter and *action routines only get triggered on successful submissions. You can not 'interfere' with unsuccessful attempts.
To see the values, take a look at the my-functions.php file and the examples in there ( esp. @mail(…) !)
|
|
|
|
|
New Member | Ovidiu Murzea posts 5 3:47 pm March 7, 2010
| |
|
|
Hi I am generating a page containing a table after a form is submitted but I don't manage to order it at all. It gets all data, but it doesn't sort it. Do you have any idea why this happens? I have updated to your latest plugin and wordpress 286.
The only way I managed to get an ordered data is with this example you give:
get_cforms_entries(false,date ("Y-m-d H:i:s", time()-(3600*2))); /* all submissions in the last 2 hours */
all the other break down. However this one brakes down too if I change the number of hours ("2" in our case) in this equation (3600*2) to a number bigger than 30.
Also 'asc' and 'desc' parameters very rare have an effect on the resulting data (usually when I use the $sortdir parameter to work with a small number of submitted forms). Again using a bigger number (bigger than 10-12 submitted forms) makes the 'asc' 'desc' parameters useless.
Here is the form:
http://www.cetateabrasovului.r…..vi-membru/
and here is the result page:
http://www.cetateabrasovului.r…..procesare/
we should have in that list
Murzea Ovidiu
Murzea Ovidiu1
Murzea Ovidiu2
Murzea Ovidiu3 … and so on (please ignore the rest of the elements)
here's the code line i use:
$array = get_cforms_entries('Vrei sa devi membru?', false, false, 'date', false, 'asc');
Any ideas? Thank you for your time and work!
|
|
|
New Member | Ovidiu Murzea posts 5 6:12 pm March 11, 2010
| |
|
|
I changed the data eventually, but I think that the code should be reexamined.
Thanks!
|
|
|
New Member | Ovidiu Murzea posts 5 9:35 pm August 23, 2010
| |
|
|
Hi there
Has this function "get_cforms_entries( $fname, $from, $to, $sort, $limit ,$sortdir )" been tested by others?
I can't get the submissions ordered in any way. I am interested in a chronological ordering using the 'date' parameter but there is no way i can do that. Even "get_cforms_entries( $fname)" with no other parameter scrambles submission ordering. 
I have placed a phpinfo file here: http://duatlon.ro/phpinfo.php
hope this helps
Any suggestion would be kindly appreciated.
Thank you!
|
|
|
New Member | Ovidiu Murzea posts 5 9:47 pm August 23, 2010
| |
|
|
other info about my php settings:
PHP Safe Mode is ON
PHP Safe Mode GID – ON
PHP Register Globals – OFF
PHP acceleration – ON
PHP acceleration (check mktime) – ON
Apache Directory Listings – OFF
Shared SSL – OFF
do you think some of these should be changed?
Thanks again!
|
|
|
Moderator
| Paul Amsterdam, NL posts 421 4:49 pm August 24, 2010
| |
|
|
This is indeed a bug, which Oliver is working on already, I believe.
We're not sure why this started occurring, but it likely has to do with WP 3.x.
Stay tuned, an update will be released soon.
Paul.
|
|
|
|
|
New Member | Ovidiu Murzea posts 5 8:00 pm August 24, 2010
| |
|
|
Thank you a lot for the quick response. I would really appreciate a fix. I'm looking forward on that version.
Keep up the good work!
|
|