Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
The pages are almost exact, did u use any body classes maybe, they can be different.
Stiofan
Here is some updated code it will fix the map and only run on gd_place
add_action('wp_footer','_my_map_route'); function _my_map_route(){ if(geodir_is_page('detail')){ global $post; if(isset($post->geodir_startpoint) && $post->geodir_startpoint && $post->post_type=='gd_place'){ ?> <script> jQuery(function() { if(jQuery('#detail_page_map_canvas_fromAddress').length){ jQuery('#detail_page_map_canvas_fromAddress').val('<?php echo esc_html($post->geodir_startpoint);?>'); jQuery('#directions').trigger('click'); } jQuery('.geodir-tab-head a[data-tab="#post_map"]').click(function(){ jQuery('#directions').trigger('click'); }); }); </script> <?php } } }Stiofan
June 30, 2017 at 10:01 am in reply to: Please wait.. and field description on standard form not part of translation fil #385245Hi Boris,
These texts are in the Location manager: https://wpgeodirectory.com/translate/projects/geodirlocation/de/default/?filters%5Bterm%5D=Please+wait&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
Thanks,
Stiofan
You might need to do them one by one, also i think the mobile version takes longer to show than the desktop version which is instant.
Stiofan
Great! 🙂
You could add a field called start poing with html variable as “startpoint”
then add a plugin called “code snippets and add the below code snippetadd_action('wp_footer','_my_map_route'); function _my_map_route(){ if(geodir_is_page('detail')){ global $post; if(isset($post->geodir_startpoint) && $post->geodir_startpoint){ ?> <script> jQuery(function() { if(jQuery('#detail_page_map_canvas_fromAddress').length){ jQuery('#detail_page_map_canvas_fromAddress').val('<?php echo esc_html($post->geodir_startpoint);?>'); jQuery('#directions').trigger('click'); } }); </script> <?php } } }Thanks,
Stiofan
You could do either, you could have it on its own tab or make the map tab show the info and directions also. You don’t need any other plugins just a snippet of code.
Stiofan
This seems to be a bug with facebook, they claim to have fixed it but from the comments you can see it still seems to be affecting many https://developers.facebook.com/bugs/1626463061012181/
If you debug the url and click “scrap again” it will fix the issue even for already shared links.
Stiofan
This reply has been marked as private.OK so you only need the user to enter one further address, u could use this field to display its own tab or you could have it autofill the directions on the map tab so it will show rout and then directions below (if you need directions?)
Stiofan
right just expalin fully what you are trying to do, i specifically asked you this in the alst queston, you are contradicting yourself
“”The default listing address by geodirectory will be used as my destination location.”
Do you mean the listing address or the default city address for the whole site.Just explain fully what the destinations are and what the point of all this is….
A little 🙂
Then your options are to either let them enter the iframe code or create your own fields or output from standard fields. The ideal might be just a lat/lon inputs or zips codes, if you use an address it might not always be entered or interpreted correctly. and then have it output this on a map.
Stiofan
This reply has been marked as private.My point is, is it from a fixed location to the listing location, like from an airport to the listing locations?
#1 departure: is this fixed for all listing or different for all listings or the listing address?
#2 destination: is this fixed for all listing or different for all listings or the listing address?
Please explain fully or i cant help.
Stiofan
I think kiran said he tried to setup debugging on your site but it did not work, it should be a testing in your wp-config.php, if you need me to check it just let me know.
Thanks,
Stiofan
-
AuthorPosts