stephanfo

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • in reply to: Simple Language Switcher #46426

    stephanfo
    Expired Member
    Post count: 19

    For other people that can experience the same case than me : https://wpml.org/forums/topic/wpml-unable-to-duplicate-geodirectory-places-with-photos-places/

    Stef.

    in reply to: Simple Language Switcher #46423

    stephanfo
    Expired Member
    Post count: 19

    This is a big problem for me. If the duplication is not working with places, WPML is not useable. I think I bought it for nothing.

    I though that GD uses such customs taxonomies in custom posts, but even if it is the case, WPML is unable to duplicate all the content of the custom posts.

    I will also share this with the WPML team to see what will happen.

    I think it could be useful to tell both (GD & WPML) that not everything is compatible.

    Thank you anyway for your support.

    Stef.

    in reply to: Simple Language Switcher #46380

    stephanfo
    Expired Member
    Post count: 19

    Hi Paolo,

    More and more I’m realizing how WPML works. I understand that I have to duplicate all contents to all translations. Right? I’m using the auto process “WPML/Translation Manager/Duplicate content”, means that if I have 10 languages, I will have 10 times the places for each locations.

    This could be fine, as the comment are also valid for each location, this makes sense.

    The only problem I face now, is that the pictures and the position of the places are not duplicated. Big problem, I cannot do it manually.

    Maybe this is also not a question for you.

    Stef.

    in reply to: Simple Language Switcher #46293

    stephanfo
    Expired Member
    Post count: 19

    Hi Paolo,

    I finally purchased WPML, with the hope everything will be simple. Ok, I’m dreaming.

    To summarize my previous post, I would like to have all places visibles, whatever the language of the posts (means that if the current language is not available, show the original language). Moreover, I would like to translate tags and categories. I want a single content for all translations, not different websites for each countries.

    I set up WPML, and I’m only able to see the places if I select english (french & Italian show the places on the map, but nothing in popular places or search), even if I select the option “All posts (display translation if it exists or posts in default language otherwise).”

    Moreover, I tried to translate the categories / tags, but since, nothing appear in foreign language, even on the map.

    Is there a tutorial somewhere? I had a look on the first pages of the forum, but nothing relevant.

    FYI, I’m using the “Translate by WPML”, not “Translate using .mo files”. I do not know if can change anything.

    Thank you.
    Stef.

    in reply to: Buddypress integration #45215

    stephanfo
    Expired Member
    Post count: 19

    Hi Guust,

    I would like to receive an email when one of my friend in buddypress post a review, or add a favorite. In both case, whatever it is or not my place. Just because it is my friend. This is already the case when a friend

    Thank you.

    in reply to: Autofill Category #45177

    stephanfo
    Expired Member
    Post count: 19

    If this can help someone else, below my final code.

    JS Code:

    
    
    jQuery(document).ready(function(){
        
        if(location.pathname == "/add-listing/")
        {
            $price_id = jQuery('[name="package_id"]:checked').val();
    
            if($price_id == 1)
            {
                jQuery('#gd_placecategory.chosen_select').val('8').change();
                setTimeout(function()
                {
                    jQuery('input[name = post_default_category][value = 8]').attr("checked", "checked");
                }, 2000);
    
            }
        
            if($price_id == 2)
            {
                jQuery('#gd_placecategory.chosen_select').val('7').change();
                setTimeout(function()
                {
                    jQuery('input[name = post_default_category][value = 7]').attr("checked", "checked");
                }, 2000);
            }
            
        }
    
    });

    CSS Code:

    
    
    #gd_placecategory_row{
        display: none;
    }

    Thank you again geo team.
    Stef.

    in reply to: Autofill Category #44864

    stephanfo
    Expired Member
    Post count: 19

    I was thinking about this way, but it is not fully perfect, as we never know if the ajax will be loaded in 2 seconds. But this will work most of the time I guess.

    Thank you Stiofan.

    in reply to: Autofill Category #44756

    stephanfo
    Expired Member
    Post count: 19

    I thought to insert a code like this before to change the “chosen_select”, but it doesn’t trigger.

    
    
    jQuery(document).on('DOMNodeInserted', 'input[name = post_default_category], [value = 7]', function (e)
    {
        jQuery('input[name = post_default_category], [value = 7]').attr("checked", "checked");
    });
    in reply to: Autofill Category #44755

    stephanfo
    Expired Member
    Post count: 19

    Hi again,

    I wrote the following code in GDF Option/Quick Code, according to your example:

    
    
    jQuery(document).ready(function(){
        
        if(location.pathname == "/add-listing/")
        {
            $price_id = jQuery('[name="package_id"]:checked').val();
    
            if($price_id == 1)
            {
                jQuery('#gd_placecategory.chosen_select').val('8').change();
                jQuery('#gd_placecategory.chosen_select').val('7').change();
                //jQuery('input[name = post_default_category], [value = 8]').attr("checked", "checked");
            }
        
            if($price_id == 2)
            {
                jQuery('#gd_placecategory.chosen_select').val('7').change();
                //jQuery('input[name = post_default_category], [value = 7]').attr("checked", "checked");
            }
            
        }
    
    });

    Adding the good categories works like a charm. I would like also to be able to select the default category for both case. As far as I understand, this is an AJAX loading, and I do not know how to detect the adding of the node ‘input[name = post_default_category], [value = 7]’, or identify & wait for the ajax request to finish.

    Any idea?

    Thank you so much.
    Stef.

    in reply to: Autofill Category #44753

    stephanfo
    Expired Member
    Post count: 19

    It does exactly what I expect. Thank you so much Guust/Paolo/Stiofan. You are the boss ;-).

    Stef.

    in reply to: Autofill Category #44692

    stephanfo
    Expired Member
    Post count: 19

    Or is there a way to pre-load the categories by the link, as we can do to select the plan?

    For example: http://www.foo.com/add-listing/?listing_type=gd_place&package_id=2&category%5B%5D=hotel&category%5B%5D=restaurant

    Thanks

    in reply to: Autofill Category #44691

    stephanfo
    Expired Member
    Post count: 19

    Hi,

    Thank you for your message. The best would be a way to not use the Plan, and to only show/hide the custom fields in live, depending on the categories you select (as explained in my link above). That would be the best solution from my perspective.

    Else, you are right, the JQuery could be the solution.

    Thanks.

    in reply to: Autofill Category #44668

    stephanfo
    Expired Member
    Post count: 19

    Hi,

    The problem I face is the following. I have two categories (simple example: Hotel / Restaurant). These both categories have specific custom fields. In order to only show the appropriate custom fields (depending on the category), I have to set up 2 plan with “Prices & Payment” plugins (without any price). This idea as been given in the following post : Custom fields only visible with some categories.

    Now, the problem is that I have to select plan Hotel or Restaurant (from Price & Payment plugin), this correctly select the right customs fields to show when entering the new place and in the front end after. But I have to select in the category field Hotel or Restaurant another time (first time was when selecting the plan). I really need to select the categories, as this is showed in the map (to select if you want to see only Restaurant or Hotel on the map in this example).

    I would prefer that when I select the plan, automatically the category field is loaded with default values accordingly to the plan, and if everything work, to finally hide the field when entering a new place.

    Maybe there is another solution I missed, do not hesitate if you have another way to solve my issue.

    Thank you for your support.
    Stef.

    in reply to: Simple Language Switcher #37276

    stephanfo
    Expired Member
    Post count: 19

    I know this solution, but this is a big plugin, with a cost, not only to have a language switcher on the front-end. I really would like a light solution, just to switch between mo file. I do not want to translate the content, just the theme and core plugin.

    I have also tried polylang, but it seems not compatible with geodirectory (or I missed something).

    Thank you.

    in reply to: Translate rating definitions #36385

    stephanfo
    Expired Member
    Post count: 19

    Hi,

    I have updated all plugins today. I run the new tool to create the db-language.php. I well see the Tags and Categories, and I able to translate (everything is ok for this).

    Unfortunately, I’m not able to see any text to translate from the rating plugin, and nothing happen if I try to do the translation manually with POEDIT.

    Is it normal, is there something I miss?

    Thank you.

Viewing 15 posts - 1 through 15 (of 19 total)