Dirk

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 351 total)
  • Author
    Posts

  • Dirk
    Full Member
    Post count: 390

    Hi Alex,

    no answer?


    Dirk
    Full Member
    Post count: 390

    No hook available? Should be in GDv2 if you don’t have one…

    in reply to: Problem Directory #436053

    Dirk
    Full Member
    Post count: 390

    @Maxime,

    your estimation is not correct. You will have a free credit of $200 which gives you 40.000 free calls to the api (in this case). You can check with your old API key (project in google dev console) what you have now and in the past to estimate your upcoming monthly costs.

    Dirk

    in reply to: Single value for ratings #435972

    Dirk
    Full Member
    Post count: 390

    Sure, you can echo the following function. See codex for information:

    https://wpgeodirectory.com/codex/codex/geodirectory_functions/geodir_font_awesome_rating_stars_html/

    in reply to: Video Support for Map Listings #435279

    Dirk
    Full Member
    Post count: 390

    In WP you can embed videos with echo the link of the video in one content area line. The rest is done by WP.

    See:
    https://codex.wordpress.org/Video_Shortcode

    in reply to: Toolset with GD questions #435278

    Dirk
    Full Member
    Post count: 390

    Hi Ursula,

    I had a project where I setup GD with Toolset. I used GD places for business entries and toolset for products. I used a 1-many relation between places and these products. For the frontend I used toolset views plugin to design the representation (in this case the single product pages and also a grid). I integrated the grid into a GD tab of the business and also a link back from the products (toolset) to the business (GD).
    I had no compatibility issues between the two plugins.
    With this knowledge what would I do today:
    I would choose one of them for my main plugin-set as most of the features can be achived with both sets.
    Both plugins have advantages and also disadvantages. The advantage of toolset is that you can do most things without any code change or you can integrate code snippets to the views. With GD (v1) you have to use hooks for the customization. With GD you are getting a specialized plugin for geo-located directories.
    It depends on what exactly you like to achive. I would not do a too coupled integration as this is always work if updates are coming.

    Your question about taxonomies. What I saw, but never checked, is that you can extend the GD place CPT with a taxonomie of toolset. But this taxonomie will not be known by GD so you have to do all the echo part by your own. I would not do it.

    Best,
    Dirk

    in reply to: Locations that do not work correctly #435077

    Dirk
    Full Member
    Post count: 390

    Does not look like I’m getting support with the location issues here. Sad.

    Dirk

    in reply to: Video Support for Map Listings #434393

    Dirk
    Full Member
    Post count: 390

    Also simple:

    For the map bubble you have with add_filter the $postinfo_obj. With print_r you will get what’s inside.

    This is not what you will have in case of the add_action. But at least you will have a global variable called $post (global $post) to get what you want.

    Also geodirectory has an API where you can get such kind of variables. Look into the code or into the codex:
    https://wpgeodirectory.com/codex/codex/

    BTW: WP and it’s concepts are simple and designed for customizations. GD is a plugin for WP and follows these concepts.

    Best,
    Dirk

    in reply to: Video Support for Map Listings #434350

    Dirk
    Full Member
    Post count: 390

    As Alex wrote you can use the code snippets plugin and you are safe with updates (of the plugins and themes).

    Your second question: The “30” in the function call is the priority or here the order. There are different actions added to the hook and they are executed in priority order. With the priority “30” it is where the image slider is located.

    I think you should get more familiar with WordPress and then the implementation is very easy.

    Install the mentioned plugin and add a snippet like:

    
    
    remove_action ( 'geodir_details_main_content', 'geodir_action_details_slider', 30 );
    add_action ('geodir_details_main_content', 'my_function', 30);
    function my_function () {
    echo '<h1>Hello World</h1>';
    }

    If you don’t like to implement yourself, there are some experts to hire (look at the sidebar here).

    @alex: Will you inform Stiofan about the missing doc?

    in reply to: Video Support for Map Listings #434302

    Dirk
    Full Member
    Post count: 390

    This is simple:

    remove_action ( 'geodir_details_main_content', 'geodir_action_details_slider', 30 );

    will remove the existing image slider. You can add here the action with something from your own or the content of the video tab.

    Map Bubble:

    
    
    /**
     * Filter to change infowindow html
     *
     * You can use this filter to change infowindow html.
     *
     * @since 1.0.0
     * @package GeoDirectory
     * @param string $html Infowindow html.
     * @param object $postinfo_obj The Post object.
     * @param bool|string $post_preview Is this a post preview?
    */
      $html = apply_filters('geodir_custom_infowindow_html', $html, $postinfo_obj, $post_preview);

    @stiofan: The filter and the action is not in the codex.

    Dirk

    in reply to: Locations that do not work correctly #434269

    Dirk
    Full Member
    Post count: 390
    This reply has been marked as private.
    in reply to: Locations that do not work correctly #434260

    Dirk
    Full Member
    Post count: 390
    This reply has been marked as private.
    in reply to: Google Analytics – How to disable? #433828

    Dirk
    Full Member
    Post count: 390

    Thanks. In my case I have already emptied the database entry and it is completely removing the tracking codes. Was just wondering why after disable the “new” system that there is still something generated.

    Best,
    Dirk

    in reply to: Google Analytics – How to disable? #433793

    Dirk
    Full Member
    Post count: 390

    Kor,

    this is due to line 264 in geodir_template_tags.php.

    The first if statement is with what is on the actual option page (GD-General-Google-Analytics). But the bad thing is in the elseif statement. You are pulling from geodir_ga_tracking_code out of the database.

    No need for you to get WP admin access here.

    Best,
    Dirk

    in reply to: Google Analytics – How to disable? #433792

    Dirk
    Full Member
    Post count: 390

    I have emptied the option in the database and now the js file and the tracking code is not generated anymore.
    Is this a leftover of an older version? If so, you have to ensure that this is deleted as I was sure that I disabled google analytics in GD but it was generating something hidden for me.

    Dirk

Viewing 15 posts - 106 through 120 (of 351 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount