Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 71 total)
Author Posts
October 12, 2015 at 2:23 pm in reply to: Saving custom hook 74495
MareVisie MareVisie

Were the screenshots useful? Any updates?

October 10, 2015 at 1:07 pm in reply to: Saving custom hook 74425
MareVisie MareVisie

Here’s a storyboard of what’s going wrong. As you can clearly see the values don’t save after a succesful profile update:




October 10, 2015 at 12:55 pm in reply to: Saving custom hook 74423
MareVisie MareVisie

Hi Towhid,

In Registration Form with ID = 199 using the Edit Profile: [wpuf_profile type="profile" id="199"] I have following fields:

meta_keys

As you can see the meta_keys are now edu_programme2 respectively edu_institute2, but they originally were edu_programme and edu_institute. However, the fields added by the action hookeducation-hook still don’t save their values. In the code I used the following code:


function update_education_hook( $post_id ) {
    if ( isset( $_POST['education_institute'] ) ) {
        update_post_meta( $post_id, 'edu_institute', $_POST['edu_institute'] );
    }
}
add_action( 'wpuf_add_post_after_insert', 'update_education_hook' );
add_action( 'wpuf_edit_post_after_update', 'update_education_hook' );
	?>

As you can see I’ve only added the edu_institute to the update_education_hook function. However, nothing ever gets saved…

October 9, 2015 at 4:59 pm in reply to: Saving custom hook 74378
MareVisie MareVisie

Hi Towhid,

I’m afraid I have cheered to soon. The fields only work on the administrator account, on none of the other accounts they work.

October 9, 2015 at 4:35 pm in reply to: Saving custom hook 74377
MareVisie MareVisie

Hi Towhid,

I found out why it wasn’t working. I used identical meta_keys to ones already used in the fixed form elements. I’m hugely embarrassed, but now the code works fine. I’m sorry to have wasted so much of your and other’s time.

October 8, 2015 at 8:57 pm in reply to: Saving custom hook 74353
MareVisie MareVisie

The fields still don’t save their values…

Did The Developer change my code or the plugin’s code?

October 8, 2015 at 2:10 pm in reply to: Saving custom hook 74308
MareVisie MareVisie

Hi Towhid,

Could you try again? It should be in order now

October 6, 2015 at 6:16 pm in reply to: Saving custom hook 74194
MareVisie MareVisie This reply has been marked as private.
October 6, 2015 at 6:16 pm in reply to: Saving custom hook 74193
MareVisie MareVisie This reply has been marked as private.
October 5, 2015 at 1:58 pm in reply to: Saving custom hook 74046
MareVisie MareVisie This reply has been marked as private.
October 4, 2015 at 5:39 pm in reply to: Saving custom hook 73981
MareVisie MareVisie

Hi Towhid,

Thank you for your reply, I hope you had a great time during your festival.

Could you indicate which files you need 777 on?

October 3, 2015 at 6:08 pm in reply to: Saving custom hook 73896
MareVisie MareVisie

I think it is similar, seeing I can’t save the values I input into fields. However, this time it aren’t the custom fields, but custom hook fields. All code seems to work fine (I’ve send all files to @towhid), but as soon as I hit the “Update” button, the screen reloads and the values I typed in are gone.

October 3, 2015 at 5:23 pm in reply to: Saving custom hook 73889
MareVisie MareVisie

Hi Nayem,

Thank you for the reply, is there any progress with solving my problem??

September 23, 2015 at 1:58 pm in reply to: Saving custom hook 72953
MareVisie MareVisie

Dear Towhid,

I remembered I had a similar issue with saving form values, described in this thread. Please consult with your collague Nayem how he fixed the issue before.

September 21, 2015 at 6:25 pm in reply to: Saving custom hook 72763
MareVisie MareVisie

Could you indicate which code I havr messed up? Is it the WPUF core? Or my own plugin files? Any comment on how I could have done this? Because I have not touched the main components of WPUF Pro.

Viewing 15 Topics - 1 through 15 (of 71 total)