Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 80 total)
Author Posts
July 9, 2013 at 8:59 pm in reply to: From Free to Pro 5782
noomia noomia

Thanks Tareq ! I’ll keep the basic version for this small website 😉 !

Thanks you !

July 9, 2013 at 8:55 pm in reply to: From Free to Pro 5780
noomia noomia

Hi Tareq !

The free version adds a prefix cf_ to every custom field created by it, so you can use ACF by adding cf_ to every meta key.

In fact, if I use WPUF checkboxes and ACF checkboxes with the same name, the values are not save in ACF… This only happens with checkboxes…

What did you do with the free version that you might loose? Any customizationsN?

Nothing, I was just wondering if I can simply install the pro version without loosing what I did.

Thanks !

June 11, 2013 at 7:58 am in reply to: Rich Textarea and AJAX Loading 4783
noomia noomia

Ok but could you tell me how exactly ? I would like to add it in my .js file when the AJAX request is succeed.

June 10, 2013 at 10:24 am in reply to: Rich Textarea and AJAX Loading 4747
noomia noomia

Same problem with the address field and the google map.

How do you load it ?

June 10, 2013 at 9:46 am in reply to: Rich Textarea and AJAX Loading 4738
noomia noomia

Ok, I’ve found the right solution (I think) :

if ($('.page-template-create-post-php').length) {
	$('#createPostsMenu a').click(function(e){
		e.preventDefault();
		var href = $(this).attr('href');
		$.get(href)
			.done(function(data){
				//On ajoute les nouveaux articles
				$('#content .entry-content')
					.empty()
					.append($('#content .entry-content', data).html());
	            //init tinymce
	            tinymce.init(tinyMCEPreInit.mceInit['post_content']);
			})
			.fail(function(){
				alert('Fail');
			});
	});
}

Here is the line a call when the AJAX request is done :
tinymce.init(tinyMCEPreInit.mceInit['post_content']);

(post_content is the class of my textarea)

Thanks Tareq !

June 10, 2013 at 9:29 am in reply to: Rich Textarea and AJAX Loading 4736
noomia noomia

If I call :

tinymce.init({
	selector: "textarea",
});

when the AJAX request is done, it works but I haven’t go the same theme as your tinyMCE… Do you know wich theme is used and what are the size generated with the wp-editor ?

June 10, 2013 at 8:45 am in reply to: Rich Textarea and AJAX Loading 4731
noomia noomia

How do you initialize the TinyMCE in WPUF ?

June 10, 2013 at 8:12 am in reply to: Rich Textarea and AJAX Loading 4727
noomia noomia

I cant’ initialize tinymce when the ajax request is done ???

June 10, 2013 at 8:01 am in reply to: Google Map Lang-Long 4725
noomia noomia

Does it help 🙂 ?

June 10, 2013 at 7:26 am in reply to: Rich Textarea and AJAX Loading 4723
noomia noomia This reply has been marked as private.
June 7, 2013 at 8:19 am in reply to: Google Map Lang-Long 4642
noomia noomia

Maybe this can help 🙂

/************************************************************************/
/* Save Lat & Lng Value Into Two Custom Fields	
/************************************************************************/
function wpufe_latlng_address( $post_id ) {
    if ( isset( $_POST['address'] ) ) { //If address...
    	$latlong = $_POST['address'];
    	list( $def_lat, $def_long ) = explode( ',', $latlong ); //Put the value before ',' in $def_lat and the value after ',' in $def_long
        
        update_post_meta( $post_id, 'lat', $def_lat ); //Put $def_lat in the 'lat' custom field
        update_post_meta( $post_id, 'long', $def_long ); //Put $def_long in the 'long' custom field
    }
}
add_action( 'wpuf_add_post_after_insert', 'wpufe_latlng_address' );
add_action( 'wpuf_edit_post_after_update', 'wpufe_latlng_address' );
June 7, 2013 at 8:09 am in reply to: Google Map Bug 4640
noomia noomia

Thanks Tareq, it works 🙂

June 7, 2013 at 8:09 am in reply to: Conflict with autosuggest. 4639
noomia noomia

Ok thanks Tareq,

It seems it’s a conflict with jquery-ui-autocomplete and the autosuggestplugin…

June 6, 2013 at 8:22 am in reply to: Google Map Bug 4608
noomia noomia This reply has been marked as private.
June 5, 2013 at 12:06 pm in reply to: Multiple dashboard 4583
noomia noomia

Last question. Is it possible to get the number of posts that are displayed in the dashboard ? You display it in a full sentence, I only need the number…

Thanks

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