landwire
Forum Replies Created
-
Hi Robert,
so I looked at that:
https://www.mapsmarker.com/docs/basic-usage/how-to-create-maps-directly-by-using-shortcodes-only/But this does not create the marker in the database as far as I can understand. Is there a way to also create the marker in the database? Maybe I should just look at your actual code and functions. Which function is called when you actually click “Save Marker” at the backend? I assume I could just use that to create a marker with code?
Robert,
Thanks for our quick replies!
Sorry, I still am not able to do that. I just have installed the free version of the plugin to try that. Do I have to change a setting somewhere? If I want to move the marker at the backend to position it slightly different, so that the coordinates update to the new position too, I just try and drag the marker, but the whole map just moves.Well, so is that described above possible with the plugin or not?
I just tried the demo and only the whole map drags, but not just the marker and the coordinates do not update either.
Thanks,
SaschaForum: Plugins
In reply to: [Magn WP Drag and Drop Upload] Frontend Drop AreaThanks for getting back!
Basically I am creating a very basic form on the front end, which will submit a new post. Fields are post title, description text and images. Images should just be added by drag and drop, very much like your plugin and then be attached (NOT inserted) into newly created post.Anyway, I will have a go at it tomorrow using the standard wordpress media manager to upload images. I just do not like it (media manager) opening another modal window, as ideally my form opens in a modal already. Just a simple field/image/box that says “Drag images here” would be enough. Better would be after you dragged the images to be able to delete, sort and choose featured image from images uploaded by clicking on some buttons that overlay each image.
That is my particular use case ??
SForum: Plugins
In reply to: [WP REST API (WP API)] Somes requests : authentificationCould someone give me an example of how to use the authentication in a Jquery ajax call and how to pull the current_users authentication details (username/password) into this?
I looked at the github documentation, but it only explains curl:
curl –data-binary=”{
“title”: “Hello Updated World!”,
“modified”: “2013-04-01T14:00:00+10:00”
}” \
-H “Content-Type: application/javascript” \
–user admin:password \
https://example.com/wp-json.php/posts/1How would that example look as an Jquery ajax call with the current_users authentication details passed to jQuery in a secure way?
What is the json_check_authentication filter? ANy documentation on this?
Forum: Plugins
In reply to: [Meta Box] Plupload on frontendWas there any solution on how to call plupload on the front end?
Forum: Plugins
In reply to: [Front-end Editor for WordPress] How do I get this to work?Thanks for the info! Will try and do a clean install on 3.7 and give it a shot.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Getting all metadata entriesThanks for your quick reply! Have not had time to try it out yet, but would I use the old p2p_split_posts function to achieve 2. ?
Will try this tonight….1. Get all connections from current post viewed:
$connected = new WP_Query( array( 'connected_type' => 'building_to_user', 'connected_items' => get_queried_object(), 'nopaging' => true, ) );
So all my connections from the “building” I am just viewing are in $connected.
2. Group connections by field ‘role’ – Would I use the old p2p_split_posts function?
/** * Split some posts based on a certain connection field. * * @param object|array A WP_Query instance, or a list of post objects * @param string $key p2pmeta key */ function p2p_split_posts( $posts, $key ) { if ( is_object( $posts ) ) $posts = $posts->posts; $buckets = array(); foreach ( $posts as $post ) { $value = p2p_get_meta( $post->p2p_id, $key, true ); $buckets[ $value ][] = $post; } return $buckets; } $all_posts_by_role = p2p_split_posts( $connected, 'role' );
3. Display each group:
foreach ( $all_posts_by_role as $role ) { if ( !isset( $all_posts_by_role[$role] ) ) continue; $posts_by_role = $all_posts_by_role[$role]; echo $role; echo '<br>'; foreach ( $posts_by_role as $post ) { ?> <div class="post-block"> <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li> </div> <?php } } ?>
Sorry just checking again, if that is a known issue, or whether I am doing something wrong…
SJust as an update: maybe the above was not the problem, but that wordpress was installed in a sub-directory. See other post I have left.
Another question:
Is it possible to log out of WordPress without refreshing the whole page or redirecting to a new one? Basically having your: Disable refresh upon login? option also for the log-out process?Sorry that should have been a separate forum post…
SHey Marcus,
that was such a quick answer! Thanks very much.
As far as I understand your answer:
1. It will work with SSL.
2. When I use the rewrite rules then it will not work.Is there a way of telling the rewrite rule to ignore AJAX requests? Or should I just take the rewrite rule out? I used it mainly to restrict direct access to wp-login.php.
Hi Brad,
that is a good question. I would think it is ok to give the option within the existing plugin. It is more than just GFCPT anyway. You have populate post type/ taxonomy / and then user. Not sure what else you could ask for? But for me users are important.
I got the populate users working for now (just with code and GF hooks – it was pretty simple), but the option to just choose it in the form would great.
Sorry, not to be of more help than this.
Have the Gravity Forms guys hired you by now? In a way I cannot believe you do this all for free. If I ever earn some money from my website you will be one of the first guys to get some fat donation! But there are plenty more – which makes WordPress a great thing!
Keep it up,
SaschaHey Brad,
did that option get added in the end?Forum: Plugins
In reply to: [Co-Authors Plus] [Plugin: Co-Authors Plus] Add co-author by function callThanks for your quick reply anyway! Will look through the code next time first…