Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 26 total)
Author Posts
November 14, 2014 at 8:36 pm in reply to: Priority support and wedevs dashboard download 30481
ced ced

Thank you Sekander 😉

October 14, 2014 at 6:22 pm in reply to: Remove metabox WPUF form from admin 28380
ced ced

In the admin, the WPUF form metabox. I want to hide it for everybody except
admins.
I’m not talking about a screen option but a code.

October 3, 2014 at 1:10 pm in reply to: Action hook for register form 27945
ced ced

Never mind !

function render_your registrationfield( $user_id, $userdata, $form_id, $form_settings ) {
		$value = '';
		if ( $user_id ) {
			$value = get_user_meta( $user_id, 'YOURFIELD_META', true );
		}
		?>
			<div class="wpuf-label">
				<label>your label<span class="required">*</span></label>
			</div>
			<div class="wpuf-fields">
				your field
			</div>

		<?php
	}
	add_action( 'your registrationfield', 'render_your registrationfield', 10, 3 );
	
	/**
	 * Update the custom field when the form submits
	 *
	 * @param type $post_id
	 */
	function update_your registrationfield( $user_id ) {
		if ( isset( $_POST['YOURFIELD'] ) ) {
			update_user_meta( $user_id, 'YOURFIELD_META', $_POST['YOURFIELD'] );
		}
	}
	add_action( 'wpuf_after_register', 'update_your registrationfield' );
October 3, 2014 at 1:03 pm in reply to: Remove metabox WPUF form from admin 27944
ced ced

Never mind !

October 3, 2014 at 10:33 am in reply to: Action hook for register form 27942
ced ced

May, we, have, please, a, working, example.
And an answer on this forum ?

October 1, 2014 at 1:57 pm in reply to: Plugin slows down server 27847
ced ced

Hi,
I’m also facing the slow down issue in admin when a WPUF post is opened.
I totally agree with Francisco. Something get wrong with the support.
3 days for an answer on the priority support can’t be acceptable.

September 28, 2014 at 12:04 am in reply to: Bind user to taxonomy 27640
ced ced This reply has been marked as private.
September 27, 2014 at 8:32 pm in reply to: Bind user to taxonomy 27635
ced ced This reply has been marked as private.
September 27, 2014 at 7:50 pm in reply to: Bind user to taxonomy 27631
ced ced This reply has been marked as private.
September 27, 2014 at 6:30 pm in reply to: Bind user to taxonomy 27627
ced ced This reply has been marked as private.
September 26, 2014 at 4:26 pm in reply to: Bind user to taxonomy 27582
ced ced This reply has been marked as private.
July 3, 2014 at 1:56 pm in reply to: HTML Error on update 22861
ced ced

Each time the form is saved, it add several backslashes before a “‘”.

July 3, 2014 at 1:53 pm in reply to: HTML Error on update 22860
ced ced

Same for me.
For the field’s labels in admin and frontend.

July 2, 2014 at 7:24 pm in reply to: Users can't edit their posts 22769
ced ced

Yep, but I think Tareq will correct it soon, so, no matter about hacking this core file 🙂

July 2, 2014 at 7:13 pm in reply to: Users can't edit their posts 22765
ced ced

Thanks Vayu,
It works perfectly again.
As you said, in dashboard.php, I’ve changed :

$url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );

with :
$url = add_query_arg( array('pid' => get_the_ID() ), get_permalink( $edit_page ) );

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