Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter Suiram

    (@suiram)

    Indeed, yes it is

    Thread Starter Suiram

    (@suiram)

    Yep. Thank you 🙂
    I did, and from no reviews after update, I get back all reviews, but without stars on review summary nor review entry.
    Revised HTML (before and after update) and looks the same.
    Cleaned cache, with no changes.
    Got scores and quantity of reviews, but no stars 🙁

    Changed to another theme, deactivate all plugins and got stars back.
    Just as Help says 😀

    • This reply was modified 5 years, 6 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Great!! Didn’t seen that feature 🙂
    I’ve upgraded from 4.7.0 to 5.1.6 on development, and stars are gone.
    Now I have to check for a solution inthe forum.

    Thanks again!
    Suiram

    Thread Starter Suiram

    (@suiram)

    Seems so, thanks.

    • This reply was modified 7 years, 7 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Thank you, I hope the code mentioned above be of some use:

    Talking about polylang plugin, the function “pll_get_post($post_id, $slug)” could be used to get IDs of each product A languages:

    • Product A ID, In language 1: $ID_prod_a_lang1 = pll_get_post(product_a_id, 'language-1')
    • Product A ID, in language 2: $ID_prod_a_lang2 = pll_get_post(product_a_id, 'language-2')
    • This reply was modified 7 years, 8 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    I have two languages.

    If I do as stated by you creating two categories (one for each language), and assigned on [site_reviews_form], and getted by [site_reviews_summary], then every [site_reviews_summary] retrieve the information for the whole language, which includes the reviews of all products, posts and pages of that category.

    And I need to keep each review withs its product. This can be done easyly thorugh “assign_to” and “assigned_to” parameters.
    The point is that thouse parameters only allow one post.

    Returning to the origins of my post: the (for instance) product A is the same, regardless of the language.
    So it has sense to summarize all of its reviews regardless the language.
    And that’s why I’d like to aggregate all reviews of product A, never mind if they are written on language 1 or language2.

    I agree that this can be done though categories: creating a category for each product (cat_prodA, for instance) and on the product [site_reviews_form] of both languages assign to that “cat_prodA” to retrieve it on [site_reviews_summary] of any language.

    But, instead of assign the review to one category for each product, it’s much easyer to assign the review to both posts languages IDs, as then, there is no need of create anything.
    (Again…) The problem is that the plugin only allows to assign a review to a single post.

    And that’s what I’m proposing you to improve: allow to assign the review to an array of posts.

    Thread Starter Suiram

    (@suiram)

    I’m using polylang.
    The point is that the review itself is about the same product/service, no matters the language is writen with. So I want that each product/service show the reviews aggregation of both languages.

    For instance:

    • Product A in language 1: 3 reviews
    • Product A in language 2: 5 reviews

    The review summary of product A should be about 8 reviews.

    This could be done through the “assign_to” parameter of “site_reviews_form” shortode. If only could be assigned to both IDs.

    Talking about polylang plugin, the function “pll_get_post($post_id, $slug)” could be used to get IDs of each product A languages:

    • In language 1: $ID_prod_a_lang1 = pll_get_post(product_a_id, 'language-1')
    • And in language 2: $ID_prod_a_lang2 = pll_get_post(product_a_id, 'language-2')

    It could be great if the shortcode [site_reviews_form], could be used as follows:
    echo so_shortcode('[site_reviews_form assign_to="'.$ID_prod_a_lang1.','.$ID_prod_a_lang2.'"]');
    As the “Get Help” > “Shortcodes” suggests in the text:

    The “assign_to” attribute allows you to automatically assign submitted reviews to a post or page. Accepted values are either one or more post/page ID’s (separated by commas), or “post_id” which will assign reviews to the ID of the current page.

    • This reply was modified 7 years, 8 months ago by Suiram.
    • This reply was modified 7 years, 8 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Thank you very much, so I hope the new version will allow to set “no-ajax” while using reCAPTCHA 😉

    Talking a different matter, I’ve tried to contribute with some translations, but I’d like to request you if it’s ok to send you the po and mo files… or let you grab the file from somewhere…

    • This reply was modified 7 years, 9 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Thanks for the reply.
    Yes, we could say it’s solved, as I found a workarround.

    As you said “http://tempsdesalut.com/curse/aromaterapia/” is redirected to “http://tempsdesalut.com/inici/”, in fact to it’s root “http://tempsdesalut.com” which default page is “inici”; anyway the redirection you detected must be done to allow another plugin to manage the 301 redirections.

    Anyhow, as said it’s solved; the workarround is add another redirection inside that plugin so that after the riview form submission, it lands on the correct page.

    But, javascript must be disabled (through “add_filter( ‘site-reviews/assets/js’, ‘__return_false’ );” as indicated on documentation) otherwise review never submits the form.

    Confirmed: with JavaScript enabled, 301 redirected pages, doesn’t work.

    • This reply was modified 7 years, 9 months ago by Suiram.
    • This reply was modified 7 years, 9 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    I’ve already sent you two emails with (I hope) all data needed.

    Let me know if I can do anything else 🙂

    • This reply was modified 8 years, 6 months ago by Suiram.
    • This reply was modified 8 years, 6 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Thanks Matt,
    Yes I do have last version of wordpress as well as your plugin.
    I really don’t know what do you mean when talking about “elementor active on those pages” (apologies for my English…) but as long as all wrong pages (as well as that which are right) are a custom post type, all of the should be the same about that.

    One thing annoy me with the domain (for instance) cursosreflexologia.com
    1.- While the plugin is deactivated, it reach home page, as it should.
    2.- Once the plugin is activated, it brings 523 error, though that domain is not redirected… O_o

    I’ve tried to search through database, but I found no table to look at.

    So perhaps the problem is the order of the entries?
    I’ve uploaded the image here:
    https://we.tl/DfwFRCCKLd

    Btw… each entry with “523” is wrong, I’ve introduced that text, just to disable the entry without deleting it.

    Let me know if I can be of eny help
    Thanks!

    • This reply was modified 8 years, 6 months ago by Suiram.
    Thread Starter Suiram

    (@suiram)

    Sorry… this is only to mark the topic as resolved (didn’t make it on previous answer)

    Thanks for all! 🙂

    Thread Starter Suiram

    (@suiram)

    Hi,
    Well… I always try not to modify “core” things, so I try to find out a round about. In my case, as said, “shortcode_atts” dislikes hyphened names, so I used underscore on its args, and then converted that underscore into hypens (using “”):

    $args = shortcode_atts( array(
    		'post_status'=>'publish',
    		'post_type'=>'fl-menu-item',
    		'orderby'=>'title',
    		'order'=>'ASC',
    		'fl_menu_tag'=>'', // should be 'fl-menu-tag'
    		), $atts);
    
    	// Here it comes the name conversion:
    	$args['fl-menu-tag'] = $args['fl_menu_tag'];
    	unset($args['fl_menu_tag']);
    
    	// And then make the query with the right argument name within "$args":
    	$query = new WP_Query( $args );

    Perhaps it helps someone else 😉

    Thread Starter Suiram

    (@suiram)

    Hi again,
    Right now I noticed that “wp_term_taxonomy” table, the menu item tag appears as “fl-menu-tag” on this table at the “taxonomy” column.

    And I realised that some wordpress functions (in my case “shortcode_atts”) doesn’t work properly with hyphen names, and prefer underscores.

    Is it quite difficult for my to change such thing?
    Just to test.

    Thread Starter Suiram

    (@suiram)

    Hello,
    I will. And I’ll let you know.

    Thank you for all 🙂

Viewing 15 replies - 1 through 15 (of 21 total)