Jump to content

Sonya*

Clients
  • Posts

    3,805
  • Joined

  • Days Won

    30

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Sonya*

  1. 17 minutes ago, Daniel F said:

    This would definitely require a 3rd party app. 

    A pity. 

    There is no sense creating one for IPS4 anymore. What do you think, will it be possible to create such an app in IPS5?

    There can be no limits on content types: forum topics, blogs or blog entries, calendar events, download files, gallery images or albums, clubs, records from Pages databases.

    The review step should be mandatory, though. There should be no possibility to pay for something that is rejected by the community policy.

     

  2. I am looking for a possibility to offer paid articles on the site. The workflow is simple.

    1. The user creates an article in Pages database. It is hidden for all except for staff (pre-moderation).
    2. We (the staff) review the article. If it suits, the user can pay. The invoice should be generated.
    3. After the payment is completed, the article is instantly shown on the site.
    4. It should be a one-time-payment per article. If user submits another article, go to step 1.

    The challenge:

    • The user should only be able to pay for the articles, we have reviewed.
    • The invoice should be generated automatically upon reviewing of the article (status: reviewed).
    • Is the invoice paid, the article should be instantly shown.

    Any idea of how to build the process with IPS Commerce? 

  3. 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.

    Could contain: Page, Text, File

     

  4. I have a Pages database. It uses star rating (not reviews!). I have set sorting by rating in descending order:

    Could contain: Page, Text

    The sorting is weird, though:

    1. Item with 15x5 stars and 1x1 star.
    2. Item with 17x5 stars only.
    3. Item with 25x5 stars and 3x1 star.
    4. Item with 23x5 stars only.
    5. Item with 6x5 stars and 1x1 star.
    6. Item with 16x5 stars and 1x6 stars.
    7. 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?

     

  5. 1 minute ago, Nathan Explosion said:

    Again...no idea what you are trying to do)

    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:

    1. No.
    2. Rather no
    3. Don't know
    4. Rather yes
    5. Yes

    The rating should be saved as usual. Just the output should be changed.

  6. 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!

  7. 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.

     

  8. 2 minutes ago, WebCMS said:

    Addresses should work similar to Word Filters where there is a replacement text specified to replace the objectionable words.

    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.

  9. On 3/11/2024 at 5:25 PM, Thomas Hop said:

    Yes we have, there is also a notification there: (see image), also can’t get this error to go away, tried using the .htaccess that is provided, but to no avail.  

    I had this error on ngnix server, that does not support .htaccess. Enabling proxy mode has helped to resolve.

    Another time the error has been shown while elastic search was misconfigured. Once I disabled elastic, the error was gone.

  10. I have a special Expert group. The answers from this group should be featured in a block (post feed). There is no possibility to pull the answers from one group only in the default block. I must specify the topic author

    Could contain: Page, Text

    Activity stream block does not allow filtering by group as well.

    Does anybody know how to get posts from one group only in the block? Any ready plugin/app? Thanks.

  11. Another inconsistency: both settings are applied to the badge color and text in the post. But they are not respected in the topics list.

    Could contain: Page, Text

    Instead, ipsBadge_neutral and ipsBadge_small are used. As a side note, ipsBadge_small is defined with 9px. It looks tiny in the topic list. Please consider changing it to ips_Badge_large.  

  12. 45 minutes ago, AndyF said:

    I wonder if you can add some .htaccess to do this which might be a lot easier.

    .htaccess only deals with incoming links. It does not apply to outbound links. I assume that topic starter means outgoing links, not internal.

    17 hours ago, meade916 said:

    A lot of posts on my site have HTTP links from members posting links years ago or members having http links in their signature from years ago.

     

×
×
  • Create New...