Geolocation?

This topic contains 34 replies, has 7 voices, and was last updated by  Vikas 9 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1652

    Kevin Heath
    Buyer
    Post count: 33

    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

    #1655

    directory
    Expired Member
    Post count: 1502

    Thank 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?

    #1657

    Kevin Heath
    Buyer
    Post count: 33

    I 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

    #1658

    directory
    Expired Member
    Post count: 1502

    Thank you for responding, Kevin. I think GD developers will release geo-location soon but not sure how will it work.

    #1666

    julian
    Free User
    Post count: 37

    Thank you very much, for your informtion Kevin.
    but ¿on which file should add the first code?
    Thanks in advance.

    #1667

    Kevin Heath
    Buyer
    Post count: 33

    Hi 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

    #1669

    julian
    Free User
    Post count: 37

    Thanks 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.

    #1670

    directory
    Expired Member
    Post count: 1502

    Hi 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.

    #1674

    Kevin Heath
    Buyer
    Post count: 33

    That’s pretty simple to do.

    You should post a job request in the customisation section. It should not cost too much.

    Kevin

    #1675

    directory
    Expired Member
    Post count: 1502

    Yes, I will probably do that. I am just waiting for the geolocation feature to be released.

    #1678

    julian
    Free User
    Post count: 37

    Definitely 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.

    #1679

    Kevin Heath
    Buyer
    Post count: 33

    Hi 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

    #1680

    julian
    Free User
    Post count: 37

    Perfect Kevin, now it works on the front search, and for the detail page map, like on your site ¿i can do the same?
    Thanks

    #1681

    Kevin Heath
    Buyer
    Post count: 33

    At 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

    #1682

    Kevin Heath
    Buyer
    Post count: 33

    Hi 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

Viewing 15 posts - 16 through 30 (of 35 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket