Geolocation?
This topic contains 34 replies, has 7 voices, and was last updated by Vikas 11 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 10, 2014 at 8:51 am #1652
Hi Manilaboy,
It can probably be done easily but I would not advise it. Not everyone wants to search from where they are.
Where geo-location is concerned it is best to offer an option rather than force it. A bit like autoplaying of video and audio. Not a good user experience if they feel you are tracking them automatically.
Kevin
May 10, 2014 at 9:11 am #1655Thank you, Kevin.
I see some sites asking if you will allow or deny geo-tracking. When the user allows it, relevant listings and date loads on the map, content section and even the sidebar.
Is this how the location filtering option on GD works?
May 10, 2014 at 9:28 am #1657I think geolocation is probably standard for all things.
If you want the geolocation to take place automaticaaly just write up a function using onload to pre-populated the elementId.
Kevin
May 10, 2014 at 9:30 am #1658Thank you for responding, Kevin. I think GD developers will release geo-location soon but not sure how will it work.
May 10, 2014 at 10:33 am #1666Thank you very much, for your informtion Kevin.
but ¿on which file should add the first code?
Thanks in advance.May 10, 2014 at 10:42 am #1667Hi Julian
It needs to go in your header.php file but you can do this with the geodirectory settings page. Under design you have a tab for scripts. Just add the script to the header script code box.
Kevin
May 10, 2014 at 10:50 am #1669Thanks Kevin, i make this, but don’t work for me, for these reason, i ask.
Try manually,
Thank you for your great solution, and your response.May 10, 2014 at 11:01 am #1670Hi Kevin,
This is something similar to what I like to have:
http://www.restaurantplease.com
The map and location is automatically displayed. The user simply needs to enter the keyword and/or the category to filter the listings on the map. It will be nice the listings on the main content and sidebar widgets will automatically display listing based on the user’s location.
May 10, 2014 at 11:31 am #1674That’s pretty simple to do.
You should post a job request in the customisation section. It should not cost too much.
Kevin
May 10, 2014 at 11:36 am #1675Yes, I will probably do that. I am just waiting for the geolocation feature to be released.
May 10, 2014 at 12:07 pm #1678Definitely does not work for me, thanks for your help, Kevin.
Maybe, if you can share these two php files, was more easy for me, i’m not programmer, just designer.
Thanks you.
Best regards.May 10, 2014 at 12:18 pm #1679Hi Julian,
My mistake I forget to say you need to set an id.
in the listing form filter file where you put the new input you will see immediately before another input with a class of snear you also need to add an id of snear – so it looks like
<input name="snear" class="snear" id="snear" type="text" value="<?php echo $near;?>" onblur="if (this.value == '') {this.value = '<?php echo NEAR_TEXT;?>';}" onfocus="if (this.value == '<?php echo NEAR_TEXT;?>') {this.value = '';}" />It needs the id for the jquery to pass the value to the form field.
Sorry
Kevin
May 10, 2014 at 12:27 pm #1680Perfect Kevin, now it works on the front search, and for the detail page map, like on your site ¿i can do the same?
ThanksMay 10, 2014 at 12:33 pm #1681At the moment directions do not work on Geodirectory
if you try and get directions to a location the directions go to your default location and not the actual attraction location.
As such until the fix is done it is pretty pointless giving you instructions on how to do it in case the developers change the inputs and id etc.
Kevin
May 10, 2014 at 12:41 pm #1682Hi Julian
Just seen your site and you have two search boxes now. You did not have to paste all the input code into the file you just had to add id=”snear” to the input field that was already there.
Kevin
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket