Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
DeChriss
tagDiv Member

Hi,

sorry, I don’t got your point and it seems you didn’t understood me right. πŸ™‚
I got three images.

1. Image1 – Regular Award
2. Image2 – Gold Award
3. Image3 – Platin Award

I need to change the code, so that the right image will be selected by review ratings.
For “1” to “8” the regular award is OK. But for “9” it will the gold award and for “10” it will be the platin award.

Anmerkung234

I know, how I get the review points, but I don’t know how to modify your undocumented code in the tdb_single_review_overall.php, to built-in an “If/else” query. Any ideas? πŸ™‚

  • This reply was modified 7 years by DeChriss.
  • This reply was modified 7 years by DeChriss.
  • This reply was modified 7 years by DeChriss.
DeChriss
tagDiv Member

Hi Catalin,

Thanks for your answer, that made me investigate a bit deeper. πŸ™‚
I think I found the right place in the td-cloud-library plugin within the shortcode tdb_single_review_overall.php.

$buffy .= '<div class="td-review-final-score">' . round($this->calculate_total($post_review_data)) . ($post_review_data['review_meta'] == 'rate_percent' ? ' %' : '') . '</div>';

Now, I have to search a way to hook into this single line to be safe in case of future updates. Maybe you have a idea? πŸ™‚

Cheers,
Chris

DeChriss
tagDiv Member

Maybe that would be a good feature to include with enabling/disabling by a simple checkbox. πŸ˜‰

DeChriss
tagDiv Member

Hi Calin,

that did the trick. Thanks for your help. πŸ˜€

Cheers
Chris

DeChriss
tagDiv Member

Hi Bogdan,

I’m not a beginner in web development. πŸ˜‰
But I disabled all plugins except visual composer V4.11.2 and tried the exclude and include filtering, to check if one of them will work, but it’s not the case.

We don’t have any CDN or Caching Plugin running in our development environment, so that here are no worrys.

I also tried to reinstall the visual composer plugin that didn’t helped.

Viewing 5 posts - 1 through 5 (of 5 total)