Simone

Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 2,874 total)
  • Author
    Posts

  • Simone
    Expired Member
    Post count: 3515

    Hi Adrian, it is a little bit tricky, but you can edit this and make it work:

    open listing-listview.php in /wp-content/plugins/geodirectory/geodirectory_templates

    find this block

    
    
    <?php
    					
    					 if (round((int)$distance,2) == 0){
    												$uom = get_option('geodir_search_dist_2');
    												$distance = geodir_calculateDistanceFromLatLong ($startPoint,$endPoint,$uom);
    												echo round($distance).' '.$uom.'<br />';
    											}else{
    												echo round($distance,2).' '.$uom.'<br />';
    										}
    					?>

    it’s between row 77 and 86

    replace this block with

    
    
    <?php
    					
    					 if (round((int)$distance,2) == 0){
    												$uom = get_option('geodir_search_dist_2');
    												$distance = geodir_calculateDistanceFromLatLong ($startPoint,$endPoint,$uom);
    												echo round($distance).' '.$uom.' from '.$_REQUEST['snear'].' <br />';
    												
    											}else{
    												echo round($distance,2).' '.$uom.' from <br />';
    										}
    					?>

    You will have the result, as per seen on the screenshot (tested on my demo site)

    Sidenote: the modification needs to be redone if a GD update will be released.

    in reply to: Stripe – Error. Does It Work behind A Proxy? #20638

    Simone
    Expired Member
    Post count: 3515

    Alerted Stiofan, will get back at you shortly.

    in reply to: Search Function Query #20637

    Simone
    Expired Member
    Post count: 3515

    Hello, I think the reason you don’t see any results when searching for Soho is because Google will understand Soho in New York,and not in London, if you search for “Soho, London” or “Soho, UK” it will display your listing.

    in reply to: CSV Upload: default category #20584

    Simone
    Expired Member
    Post count: 3515

    That column IS in the database.
    Check the attached screenshot.

    in reply to: CSV Upload: default category #20582

    Simone
    Expired Member
    Post count: 3515

    for the other categories you just use the csv as normal, so you will write as usual “1st category, 2nd category, etc”.. in the post_category and then you will add default_category with the id for the default category.
    Practical example:

    1st category id=1
    2nd category id=2
    3rd category id=3

    under post_category you will add 1st category, 2nd category, 3rd category
    under default_category you will add 1

    in reply to: GD > GMap – listing Page Widget #20581

    Simone
    Expired Member
    Post count: 3515

    I’m glad 🙂

    in reply to: GD > GMap – listing Page Widget #20575

    Simone
    Expired Member
    Post count: 3515

    Auto-zoom is ok because when you select your country/city it will detect the listings and let you see the listings for that specified area, not globally. Try it and see if it works as you would like

    in reply to: GD > GMap – listing Page Widget #20573

    Simone
    Expired Member
    Post count: 3515

    Autozoom will auto zoom (:D) so it overrides the manual zoom. It will let you see all the listings. If, for example, the two more distant listings are one in New York and one is in San Francisco, the map will automatically shows from San francisco to New York

    in reply to: GD > GMap – listing Page Widget #20571

    Simone
    Expired Member
    Post count: 3515

    Have you set Autozoom in the widget?

    in reply to: CSV Upload: default category #20560

    Simone
    Expired Member
    Post count: 3515

    Hello, good question….
    I took look in the database, this is what you could do (test it with some entries):

    Check the ID of the category you want to be set as default (you can check going in your post type categories and see the number in the CAT. ID column, for example the category Attractions is ID 2).

    Next step is to add a column in your CSV named “default_category” and in here you will insert 2 as it is the category ID for Attractions.
    Hope it’s clear

    in reply to: Show Map on Search Results Page #20511

    Simone
    Expired Member
    Post count: 3515

    The autozoom is the reason why you don’t see the listings in the map, as Guust said,
    the search page is not there because that section is dynamically loaded based on the action

    in reply to: My map on the front page #20500

    Simone
    Expired Member
    Post count: 3515

    You have placed the map in the Main content, which is supposed to leave space for a column (right sidebar). Ive add the Top section area in the homepage (in Geodirectory/design/home) and placed the map and the search in there.

    in reply to: Show Map on Search Results Page #20498

    Simone
    Expired Member
    Post count: 3515

    You can do that by adding the Map widget (GD > GMAP LISTING PAGE) in the GD Search Right sidebar (or search top section)

    in reply to: My map on the front page #20497

    Simone
    Expired Member
    Post count: 3515

    Hi, could you please post your login details in a private reply? I’ll have a look, thanks

    in reply to: Category limit #20496

    Simone
    Expired Member
    Post count: 3515

    That was the “trick” 🙂

Viewing 15 posts - 2,071 through 2,085 (of 2,874 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount