6660 comments found.
Hi TC,
I am using QuForm as wordpress registration. It works and user is registered.
Once registration is successful, how can I get it to login immediately ?
1. So once registration is complete on QuForm, get wordpress to login immediately…
2. The other method: Is there any way to initiate the standard wp confirmation email where user has to click the hyperlink to confirm account membership ?
Thanks
1. You could place a call to wp_signon at the end of the registration function.
2. I’m not sure about this, you may need to find the WordPress core code that performs this action and copy it into your registration function.
Regards, TC
Thanks.
1. for immediate login, where would I place the call to wp_signon ? I found sample code which might work if I know where to get QuForm and this function to talk to each other. http://www.tutorialstag.com/custom-wordpress-login-without-using-a-plugin.htmlThanks
In your registration function you had the code
wp_create_user($username, $password, $email);so below this add the code
wp_signon(array(
'user_login' => $username,
'user_password' => $password,
'remember' => true
), false);Regards, TC
Thanks very much for your help. I’m not a coder but your help got this going.
1. How do I test for user reg failure? QuForm completes but the user never gets regd – I set wp new reg to off but there was no reg failure alert. It can happen – how do I test for failure?
2. What if signon fails – how do I test for that?
1. The Codex for wp_create_user shows what it returns when it fails. The only way to let the user know that it’s failed would be to change the success message in your registration function using $form->setSuccessMessage('...');
2. There is an example on the wp_signon Codex page…
Regards, TC
Hi,
I have purchased Quform plugin – it is an easy and powerful tool but I have two serious problems with it:
- upload button is not display in IE9
- there are validation errors: http://tnij.org/rgro
Could anyone help?
It looks like your theme or one of your plugins is replacing -- in the post content with & ndash;. So this is making it so that the comments surrounding the JavaScript are not closed properly, possibly causing both problems. If you can find the code that is causing this and remove it it should fix the problem.
Regards, TC
This one helps, thanks TC!
Hi TC,
You had given largo6 above code for creating a user registration form with username validation.
I’m not sure where it fits in functions.php. Please can you post the complete code including the username validation you posted for largo6
add_action(‘iphorm_post_process_2’, ‘mytheme_create_wp_user’, 10, 1);
function mytheme_create_wp_user($form) { $firstname = $form->getValue(‘iphorm_2_1’); $lastname = $form->getValue(‘iphorm_2_6’); $username = $form->getValue(‘iphorm_2_5’); // Change to your username field unique ID $password = $form->getValue(‘iphorm_2_4’); // Change to your password field unique ID $email = $form->getValue(‘iphorm_2_2’); // Change to your email field unique ID }
if (!username_exists($username)) {
wp_create_user($username, $password, $email);
}
This is the complete code it does not go inside any other function. Replace iphorm_X_X with your Username field unique ID.
add_filter('iphorm_element_valid_iphorm_X_X', 'mytheme_custom_validator', 10, 3);
function mytheme_custom_validator($valid, $value, $element)
{
if ($valid) {
if (username_exists($value)) {
$element->addError('That username is already taken');
$valid = false;
}
}
return $valid;
}Regards, TC
Just bought this and started testing it.
I loaded the form and nothing happens after I click add new > I enter the name of the form—and everything is blank after that. There is no where to click to add any fields etc.
It sounds like a conflict with another plugin or your theme, can you see if it works with other plugins disabled?
Regards, TC
Worked after disabling a plugin …thanks
I am trying to use a popup form but it does not work, it just adds a # to the end of the url and scroll to the top of the page.
It sounds like you have a JavaScript error on the page, can you send me a link?
Regards, TC
awesome plugin – five stars
How do i get the popup function to work, from a navigation bottom at the top of the page ?
You’d need to add some JavaScript to simulate a click on the popup trigger. If you give your navigation the href #show-form, the following code should do it.
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('a[href="#show-form"]').click(function () {
$('.iphorm-fancybox-link').click();
return false;
});
});
</script>Regards, TC
whooo i read that very fast because i didn’t had the paision to wait so i started to play with that and i just fininsh and it’s working ! i did it with hidden fields form in the post content, when the user click a get request with all the fields from the content with the post id are send to the releavent form, i will try the method you wrote.
about this isssue question: does the form santisize the values he getting from the get request ? did i open a hole for xss attack ? when the user edit the form string is like : /?page_id=6&ID=147&artist_name=celine+dione&single_name=power+of+love
can someone do : single_name=<script>hacked site</script> ?
second question:
beside of the upload path request, i suggest page break option (multi step form) . i don’t believe that but is there a way i can implement this option by my self ?
thanks a lot.
There is no XSS vulnerability with the default value functionality, the values are escaped. There is no way to set up multi-page forms but we will be adding this in the next update.
Regards, TC
hi
thanks for the last reply about the upload path, and populate fields.
1. i understood from your answer it’s a problem , so i think it will be great if in future updated yo can disconnect the upload path from the wordpress upload media , i don’t understand what the connection between them from the first place. make them Independent.
2.but what you posted doesn’t help me at all so i will explain my self again:
i want to create somekind of a button or a link on the post submitted by the user and if the user click it he will forword to the form he submitted the post\content in the first place will all the relavent fields populated and he can “EDIT” or “RESUBMIT” the post\content. with the method you posted it’s a bit problem so i think an example with http post or get will help me more.
thanks
1. Yes you are right, they shouldn’t be connected, I am planning to make this a lot more flexible.
2. So I would do it like this, so you can use the same form for submitting and editing. Make the link to edit have a URL paramater with the ID of the post you want to edit.
http://www.example.com/form/?id=5Like I explained in the post before, set the title and content fields to have “Dynamic default value” ticked and set the Parameter names to “title” and “content”. I’d also add a new Hidden field to save the ID of the post you are editing. In the Hidden field settings, Optional tab tick “Dynamic default value” and enter id as the parameter name, you’ll need to find the unique ID of this element which isn’t shown in the form builder, once you’ve added this element to the form, view the source of the page (when viewing the form on a page on your site) and search for <input type="hidden" you are looking for a field with the attribute name="iphorm_X_X", this is the unique ID.
In your theme functions.php file add the code to populate these fields if the post ID is set in the URL .
add_filter('iphorm_element_value_title', 'mytheme_set_title');
function mytheme_set_title($value)
{
if (isset($_GET['id'])) {
$post = wp_get_single_post($_GET['id']);
if (!empty($post)) {
return $post->post_content;
}
}
}
add_filter('iphorm_element_value_content', 'mytheme_set_content');
function mytheme_set_content($value)
{
if (isset($_GET['id'])) {
$post = wp_get_single_post($_GET['id']);
if (!empty($post)) {
return $post->post_title;
}
}
}
add_filter('iphorm_element_value_id', 'mytheme_set_id');
function mytheme_set_id($value)
{
if (isset($_GET['id'])) {
return $_GET['id'];
}
}Now modify your post process function, that you used to create the post, but this time check if the Hidden field has a post ID in it, if it does we edit the post.add_action('iphorm_post_process_1', 'mytheme_create_wp_post', 10, 1);
function mytheme_create_wp_post($form)
{
$id = absint($form->getValue('iphorm_X_X')); // Change to your Hidden field unique ID
$title = $form->getValue('iphorm_X_X'); // Change to your Title field unique ID
$content = $form->getValue('iphorm_X_X'); // Change to your Content field unique ID
$post = array(
'post_title' => $title,
'post_content' => $content
);
if ($id) {
// ID was set so we tell WP to update the post with this ID
$post['ID'] = $id;
}
wp_insert_post($post);
}Note: this has security implications, now anybody can edit or add a post without permission, so you may want to add capability checks to these functions.
Also this is untested, but it will hopefully be enough to get you started.
Regards, TC
Hi there!
Just wanted to say: one of the best WP plugins available! Easy to handle, loads of options, top support!
Keep up the good work 
Greets
Thanks for your kind words, really appreciate it 
Greetings, first let me congratulate for this amazing product. I do have two questions.
1. Can I use the same license key for the two subdomains I do have under a Wordpress Network Multisite Installation?
2. Is it possible to have the popup form to show automatically as soon as someone enters the homepage.
Thanks in advance
1. The license key is tied to the domain name and subdomains are treated separately so you will not be able to use the same license key.
2. Yes, assuming you only have one popup form on the page, this code should work.
<script type="text/javascript">
jQuery(window).load(function () {
jQuery('.iphorm-fancybox-link').click();
});
</script>Regards, TC
Is there a way to separate the form into pages? My form is kind of long…
It’s not possible to do this now, but we will be adding it to a future version.
Regards, TC
Hi there,
Is there a simple way to copy Quoform between two sites?
Best regards,
Jack
Yes you can export the form at Quform -> Export on the WordPress admin menu, and import on the other site at Quform -> Import.
Regards, TC
Hello again !! i have a question of security concerning the uploading in the forms ! i’v implemented a browsing field to upload images with the form ! and i’m wondering if it’s secured against the xxxx.jpg.php files, i mean the image files that contain a hacking script !
It’s not possible for the user to upload a file with a .php extension if you choose the allowed file extensions in the settings. Any other security implications depend on how your web server is set up to interpret the uploaded files.
Regards, TC
thanks for your reply
1. about the upload part, what i mean is there a way i can change each field to what i want for example:
if i have a form with 3 upload fields and i want one field to upload to outside of public_html, the second one will upload to the deafault location and the third one will upload to a folder named images in the site root.
2. i’m doing post submission with your plugin, what i’m trying to “scatch” by my self is the option to give the user edit the post he submitted. i thought doing that with the populate field option, can you give me even simple example how to do it with all the methods:url , shortcode, filter. do you have another way to offer beside what i think of ?
thanks
1. I think so, lets say you set the WP uploads directory to one level above public_html, then in your Quform form settings you could set the path as public_html/uploads/etc to choose a folder below this. If the WP uploads directory is below public_html you wont be able to go above this.
2. If you add a Paragraph Text field and tick “Dynamic default value” in the optional settings, and set the “Parameter name” to content, you can use this code in functions.php to populate it with the current post content.
add_filter('iphorm_element_value_content', 'mytheme_set_content');
function mytheme_set_content($value)
{
global $post;
if (!empty($post)) {
return $post->post_content;
}
}Regards, TC
hello
great plugin, great work.
i have a few questions:
1. is there any way to change the upload folder to something beside the wp-content/uploads ? in my case a folder outside the public_html
2. when i create a “user registration form” like the example here:http://www.themecatcher.net/iphorm-form-builder/create-user.php
it’s great way but there is a problem whith this in case the user name is all ready taken, the form will submit and of course the user will not create. is there a way in case like that when i use the action hooks let’s say to return some kind of false or error and go back to the form so the user can change the value ?
3. i just saw this link:http://www.themecatcher.net/iphorm-form-builder/create-post.php ,in the comment here.
this link not listed in the “how to..” in the plugin site, please update all
guides i think it will save you a lot 
thanks
1. Can you try changing the WP uploads folder, in Settings -> Media.
2. You can create a custom validator to prevent the form submitting if the username exists. your function would look like
add_filter('iphorm_element_valid_iphorm_X_X', 'mytheme_custom_validator', 10, 3);
function mytheme_custom_validator($valid, $value, $element)
{
if ($valid) {
if (username_exists($value)) {
$element->addError('That username is already taken');
$valid = false;
}
}
return $valid;
}I will update the user guide with this code. Also a full support wiki site is in the pipeline.
Regards, TC
Hello There i have a request please if you don’t mind ! i have a radio option and checkbox options in my form ! and i want to include the option choosen by the client in the email sent to me as the confirmation message ! i mean how to costumise the email and add everything in the form .. P.S : the form contain text fields, date fields, image uploading field, and choice list fields .. Thank You
You can customize the notification email at Settings -> Email -> Customize email content, you can insert data using the Insert variable… dropdown.
Regards, TC
thank you !! i didn’t sport that option ! thank you again !!
Hello,
The file upload is not displaying/allowing me to upload files. When I say “preview the form” the upload is there and functions, but when I embed the form to a page. No such luck. Any advice?
It sounds like it could be a JavaScript error on the page, can you send a link?
Regards, TC
Does this have post fields so i can allow visitors to submit a post to be approved and published on my blog by myself?
At the moment, you will need to do this with PHP code: http://www.themecatcher.net/iphorm-form-builder/create-post.php
Regards, TC
do Quform support rtl language??
The forms will work on a RTL site.
Regards, TC
Does this plugin allow you to build a quiz/test that will generate a score?
Not without custom work.
Regards, TC