• Resolved ziegel

    (@ziegel)


    Hi,

    So short code does not work for me.

    First example, would be only on the latest plugin version, where “date” stopped showing relative dates of reviews, regardless of choice from options mentioned.

    Also, the color of the so called “yellow” stars, which I find kind of orangish, could not be manipulated. Stars in plugin code, are data-svg, something which is very difficult to manually manuplate.

    Can you please check, and fix if needed?

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author Noah Hearle

    (@designextreme)

    @ziegel To use the text for relative dates, just omit the date parameter, otherwise it will attempt to use the PHP date format.

    You have three main choices to alter the overall rating stars:

    1. Either use the two star parameters:
      [reviews_rating stars="#FF0000" stars_gray="#CCCCCC"]
    2. Or set the these stars to refer to the CSS:
      [reviews_rating stars="css" stars_gray="css"]
    3. Or revert to the star HTML entity rather than the SVG – which can also be styled using CSS:
      [reviews_rating stars="html"]

    You can amend the original post to include a URL highlighting the reviews that you see.

    If there is still an issue, please can you share the Shortcodes that you’re using?

    Thread Starter ziegel

    (@ziegel)

    Hi,

    Thanks a lot! I will soon check.

    I do think that the mere upgrade to the latest plugin version, where I did not have the date parameter previously, caused the relative reference date to disappear. The HTML span element is still in place, however it’s empty and has no fetched textual content.

    The description of the short code usage, possibly could improve.

    Regarding the stars, can you please provide an example for the full manipulating of the color?

    Also, I have noted that in the short code, some times values are in equal to var, and some times they appear within double-quote (i.e., “) equal to var. Can you please explain this issue on the plugin interface, and of course also over here?

    Thread Starter ziegel

    (@ziegel)

    I have checked and I do not have date in the short-code, and yet upgrading to the latest version caused the relative review posting time to disappear. What I have it:

    [reviews_rating view=1 icon=no attribution="no" stars-html review_text_height="196px" excerpt="170"]

    I had to roll back to solve the issue.

    I will soon look into the stars’ color issue.

    Also, when I import additional new reviews with outer-html, the review numbering does not update to the number of the correct reviews, and I had to change it manually on the options data base:

    google_business_reviews_rating_result_valid –> user_ratings_total

    google_business_reviews_rating_places –> rating_count

    Thread Starter ziegel

    (@ziegel)

    stars=”#FF0000″ as part of the following short code did not change the orangish stars color. I can’t also understand how would this change the stars color coming from svg-data…

    Could it be my stars-html caused it?

    [reviews_rating view=1 icon=no attribution="no" stars-html review_text_height="196px" excerpt="170" stars="#FF0000"]

    • This reply was modified 1 year, 6 months ago by ziegel.
    Thread Starter ziegel

    (@ziegel)

    Note, the plugin explanations page uses “stars-html” which is not the syntax you have used above, which is stars="html"

    Thread Starter ziegel

    (@ziegel)

    I can’t change the stars from being:

    background-image: url("data:image/svg+xml;charset=UTF-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0NiI+CiAgPHBhdGggZmlsbD0icmdiKDI0NywgMTgyLCAzKSIgZD0iTTMzLjA2MSAyOC41MDlMNDcuNzIxIDE4SDI5LjYwM0wyNC4wMjguODIyIDE4LjQ1MyAxOEguMzM1bDE0LjY2IDEwLjUwOS01LjU3OCAxNy4xMTIgMTQuNjExLTEwLjY1NUwzOC42MzkgNDUuNjR6Ii8+Cjwvc3ZnPg==");

    Plugin Author Noah Hearle

    (@designextreme)

    @ziegel Thanks for the detailed response.

    I will investigate the disappearing date issue shortly. It is very likely related to the changes to the point at which the language loads, so I’ll endeavour to test this and issue a fix soon.

    I will also look into improving the handling of these dates more generally as it has been some time since I’ve revisited this aspect of the code and its description in the Shortcodes section.

    For the Shortcode parameters, they’re a little like CSV – so single numbers or words don’t need enclosure. If you add quotes around numbers, true, false, null, etc. that is also fine and it’s treated the same way. I avoid the quotes just to illustrate these values are different to text strings and lists. You can see this in action at the Demonstration website.

    The overall review count is not referring to the reviews in your catalogue, rather the overall number of reviews stated by Google. This may be out by one or two if the update frequency is long and you regularly receive reviews. Check the Retrieved Data section for the information retrieved and compare this to the number you see with in Google and on your website (page caching may delay the updated count).

    For a good guide on usage, please check out the Demonstration website – this will have plenty of examples of the Shortcode parameters and some supporting CSS.

    Plugin Author Noah Hearle

    (@designextreme)

    @ziegel I can’t respond to the newer queries immediately, but I do recommend removing the stars-html parameter as this will not do anything. Please refer to the Demonstration website for some examples that will help you get started.

    I’ll return later to cover additional queries – so please write this within a single post if possible.

    Thread Starter ziegel

    (@ziegel)

    I don’t use the retrieve data, due to its inherent limitation regarding fetching 5 reviews. I use the import outer html to keep all reviews on the website, however this fails to update the review counter on the plugin (it’s in various place). This should be fixes to be part of the import outer-html on the Advanced section.

    Thread Starter ziegel

    (@ziegel)

    It seems the entire topic of “stars” is not touched at all on the Demonstration website.

    I’ll be happy if you could check this issue, and if found needed, elaborate what should be done to modify the stars color. Above explanation, did not do the work for me.

    Thread Starter ziegel

    (@ziegel)

    Also note, that there is a big difference between the first 5 reviews fetched with the API compared to the reviews fetched with outer-html import, on the advanced section, where dates are of DIFFERENT time format.

    Plugin Author Noah Hearle

    (@designextreme)

    @ziegel This plugin will only update its overall review count if you synchronise it using the Places API. Without this, there is no easy way to update this data.

    New reviews will be added to your catalogue over time and the HTML Import functionality is not needed to maintain your new reviews. You can set to collect just the newer reviews or relevant reviews. Relevancy will be affected by your choice of language and may differ to the reviews you see when viewing this yourself.

    The reviews retrieved using the HTML Import have their own date format – sometimes this is a relative date, sometimes an actual date and more recently, it uses the number of days, weeks or years. Once the HTML is submitted, please check over the estimated dates so these are added correctly. There are languages that are not supported, so these will all need to be set individually.

    The CSS of the star you’ve detailed is the default image as an SVG background – if you use the parameter: stars="css", it refers to the CSS colour, then apply this programmatically to the SVG background as inline CSS. If you use a colour here, it will perform the same action with that colour.

    Here is a direct link to an example of a colour change to the overall rating stars – specifically the final example and the last two CSS rules.

    Thread Starter ziegel

    (@ziegel)

    This print screen shows the dates issue, regarding import of reviews: api fetch vs. outer-html import.

    Thread Starter ziegel

    (@ziegel)

    And here you can see all stars are, is data-svg, where color can NOT be modified.

    Plugin Author Noah Hearle

    (@designextreme)

    @ziegel The screen shot is showing the expected review data – the retrieved date is empty because it was never retrieved through the Places API, rather it was set by you using the HTML Import process.

    The submitted date does not contain a time because it only uses the date, set to the start of the day. With the HTML Import, it doesn’t contain enough information to accurately set the time, so this is ommitted. The actual data stored for this is used to present the relevant date string as it is not present within the HTML Import data. The submitted date always uses timestamps, so it can be formatted accordingly when presented in your website.

    With the second point, have you remembered to set the styling in CSS? If not, then it will apply the default yellow/orange colour as you’ve shown here.

    I will use the example on the Demonstration website to offer you a starting point for your CSS:

    .google-business-reviews-rating .rating,
    .google-business-reviews-rating .rating .star {
    color: rgba(255, 20, 20, 0.9);
    }
    .google-business-reviews-rating .rating .star.gray {
    color: rgba(165, 100, 100, 0.4);
    }

    This will mirror the colours in the final example.

    If it helps resolve this, I can assist more easily if you can share the URL and the current Shortcode used to present it. This way I can inspect the CSS and perform a test using the same data and Place ID locally. You can share this directly using the support link and submitting your details through the form.

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

The topic ‘Some Short Code Not Working for Me’ is closed to new replies.