Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Cannot disable rating

    by » 3 years ago


    Go to Components -> Community Quiz -> Click on options button on toolbar -> Permission settings tab -> Disable Rating permission


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS Tools


  • Re: Cannot disable rating

    by » 3 years ago


    It is, but given parameters have disabled rating this should trump permissions.


  • Re: Cannot disable rating

    by » 3 years ago


    I am sorry but I could not understand. If you disallow permissions, it will disable rating quiz option for users. If you want to completely disable rating feature, you need to disable the Enable Ratings option.


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS Tools


  • Re: Cannot disable rating

    by » 3 years ago


    Hello,

    did You look at my links? The option is disabled bu ratings show. 

     

    I want to disable it completely.

     

    i need to do template overrides anyway to make it UiKit ready. But reporting that this setting doesn’t work.


  • Re: Cannot disable rating

    by » 3 years ago


    The rating permission will disable rating functionality when taking quiz.
    "Enable Ratings" option will be used to control rating shown on listing pages.

    If these two options are not working, that means either you have some template override or some other issue. Can you please send me your website details using contact us form so that I can check the issue?


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS Tools


  • Re: Cannot disable rating

    by » 3 years ago


    The issue is you have both a disable rating and also permissions, you don't actually check the component disable rating see the code you are using is:

    <?php if($user->authorise('core.rate', $asset)):?>
    <div class="panel panel-<?php echo $theme;?> quiz-rating"<?php echo empty($data->response) ? ' style="display: none;"' : '';?>>
    <div class="panel-body">
    <div class="center text-center">
    <p><?php echo JText::_('COM_COMMUNITYQUIZ_RATING_HELP');?></p>
    <span class="cj-star-rating" data-score="0" style="width: auto;"></span>
    </div>
    </div>
    </div>
    <?php endif;?>

    But you should be checking the component config, so use:

    <?php if($params->get('enable_ratings', 1) && $user->authorise('core.rate', $asset)):?>
    <div class="panel panel-<?php echo $theme;?> quiz-rating"<?php echo empty($data->response) ? ' style="display: none;"' : '';?>>
    <div class="panel-body">
    <div class="center text-center">
    <p><?php echo JText::_('COM_COMMUNITYQUIZ_RATING_HELP');?></p>
    <span class="cj-star-rating" data-score="0" style="width: auto;"></span>
    </div>
    </div>
    </div>
    <?php endif;?>

     

    Since disabling it at the component level should trump permissions. 

    Many thanks
    Tony

     

     

     

     


  • Re: Cannot disable rating

    by » 3 years ago


    The component option is used on all pages except form. I will add this check also in the code.


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS Tools


You do not have permissions to reply to this topic.
Powered by CjForum