Jump to content

Sonya*

Clients
  • Posts

    3,802
  • Joined

  • Days Won

    30

Sonya* last won the day on April 17

Sonya* had the most liked content!

Contact Methods

Profile Information

  • Gender
    Female

Recent Profile Visitors

28,922 profile views
  1. @TDBF, if you like, you can upload your free files to invisionify.com. Reach out to me, if this is an option for you. 😉
  2. I can see the issue. Your code rounds the average rating to an integer. That's why there is no difference for the first 4 items and then the next two. You can see they have the same record_rating in the database. This is how you save it. The rating_average (rating_value/rating_hits) with decimal would make a difference.
  3. I have a Pages database. It uses star rating (not reviews!). I have set sorting by rating in descending order: The sorting is weird, though: Item with 15x5 stars and 1x1 star. Item with 17x5 stars only. Item with 25x5 stars and 3x1 star. Item with 23x5 stars only. Item with 6x5 stars and 1x1 star. Item with 16x5 stars and 1x6 stars. Item with 7x7 stars and 7x7 stars. Does it make sense? Obviously, the item #4 should be placed at the very top, following by item #2. Should it not be sorted by average as total rating divided by number of votes? Or what is meant with Sort by Rating?
  4. In case you do not find the plugin, you can purchase this one https://www.ic-essentials.com/files/file/25-advanced-footer/ This is and will be supported. The one from @TDBF likely no. 😞
  5. How have you installed your forum? You have downloaded the files and uploaded them on your hosting, right? It is the same way while doing manual upgrade.
  6. I just need another output for the star rating. Either hook into how the stars are built. This does not work, as this is a module. Or send a rating remote from my template, that does not work either. For example, instead of outputting 5 stars, I would like to print out: No. Rather no Don't know Rather yes Yes The rating should be saved as usual. Just the output should be changed.
  7. This is not a controller, but a module. I suppose that is the reason the mixin does not work. I am trying with a controller now and fail again.
  8. I use this documentation This code is in the record Display template (Pages) does not work: <p>Member Rating: {$record->memberRating()}</p> <span data-ipsRating data-ipsRating-changeRate='true' data-ipsRating-url='{$record->url()}' data-ipsRating-value="{expression="number_format( $record->memberRating(), 1 )"}"> <input type="radio" name="ratingValue" id="ratingValue_1" value="1"> <label for="ratingValue_1">1</label> <input type="radio" name="ratingValue" id="ratingValue_2" value="2"> <label for="ratingValue_2">2</label> <input type="radio" name="ratingValue" id="ratingValue_3" value="3"> <label for="ratingValue_3">3</label> <input type="radio" name="ratingValue" id="ratingValue_4" value="4"> <label for="ratingValue_4">4</label> <input type="radio" name="ratingValue" id="ratingValue_5" value="5"> <label for="ratingValue_5">5</label> </span> When I click on a star, I can see a request: _https://mydomain.com/db1/category/record_title-r2/?csrfKey=76a58e802019f5b18f6d6b9c059df60f&rating=5 I also get a message printed out below the stars "Rating saved". But when I refresh the page, the rating is not saved. I do not see any errors, neither in Chrome console, nor in IPS system logs. Does somebody know what I miss? Thank you!
  9. Would it be possible to “hook” into data-ipsRating to change the output of the star elements? I have tried mixin: ips.controller.mixin('mixinName', 'core.front.core.rating', true, function () { alert('mixin'); this.before('initialize', function () { alert('before initialize'); }); this.before('_buildRatingElem', function () { alert('before _buildRatingElem'); }); }); There are three alerts. The first and second are called, the last one “before _buildRatingElem" not.
  10. Just to mention: word filter does not replace parts of the words. It replaces the whole match only. Partial replacing is not a default feature in IPS, not even in word filters.
  11. The author means the link should be allowed. But the referral part should be replaced by something, like *** either in text and URL. @WebCMS there is a custom app that makes something similar https://forum.invisionize.pl/files/file/872-dp45-advanced-regexp/
  12. Check your PHP version. It should be 8.1 for automatic update
×
×
  • Create New...