• Resolved Suiram

    (@suiram)


    Hi!
    It’s been a long time since my last post/request.

    Because of privacy, I need to anonymize author name.
    For instance: “John Doe”, did a review, then I need the author renders as “John D.”
    I’ve been looking at support forums and trying different things for three hours.

    I tryed with template, but (obviously) can’t work with ‘{{ author }}’ as a PHP variable.
    Also worked with functions:

    1. Using shortcode ‘site_reviews’ with:
      do_shortcode('[site_reviews schema="false" assigned_to="post_id"]')
      shows CSS style at review’s responses.
    2. Using helper function ‘glsr_get_reviews’ with:
      $_reviews = apply_filters('glsr_get_reviews', [], ['assigned_to' => 'post_id','schema' => 'false', ]);
      and then just:
      echo $_reviews;
      or:
      echo $_reviews->render();
      Has the same effect in both cases: no space between reviews, and no style at review’s replies.
    3. If I use a foreach sentence to iterate through ‘$_reviews’ variable with:
      foreach ($_reviews as $_review) { echo $_review; }
      Has the same output as indicated on point 2.
    4. So, I can achieve the anonymization through point 3. but I loss all CSS styling.

      Is there an easyer way to do it?

      Thanks in advance,
      Suiram

    • This topic was modified 5 years, 7 months ago by Suiram.
    • This topic was modified 5 years, 7 months ago by Suiram.
    • This topic was modified 5 years, 7 months ago by Suiram.
    • This topic was modified 5 years, 7 months ago by Suiram.
    • This topic was modified 5 years, 7 months ago by Suiram.
    • This topic was modified 5 years, 7 months ago by Suiram.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    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

    Plugin Author Gemini Labs

    (@geminilabs)

    You should see a, “Database Update Required” notice in the WordPress admin after updating to v5. You need to run that.

    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, 7 months ago by Suiram.
    Plugin Author Gemini Labs

    (@geminilabs)

    @suiram is this resolved?

    Thread Starter Suiram

    (@suiram)

    Indeed, yes it is

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Anonymizing author, for privacy’ is closed to new replies.