Radio Streaming - 50% Lifetime Discount with purchase of any Joomla Web Radio Addon. Discount Code: STR15-Z
See Radio Streaming Plans

Results 1 to 5 of 5

Thread: Prediction

  1. #1
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183

    Prediction

    --------------------------------------------------
    Topic Transfered from old forum
    --------------------------------------------------

    Hi,

    I just want to find out if there is a way to let users only do predictions once per match, so that when their prediction is in, it is final?

    Thank you
    Regards
    Support Operator
    MultiHosting.com

  2. #2
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    --------------------------------------------------
    Topic Transfered from old forum
    --------------------------------------------------

    Hello,

    the system has a time schedule, which means that until that deadline, they can change their predictions.
    Usually, most admins, set the time-deadline for each match, one (1) minute before kickoff.

    Hope that answers your question.
    Support Operator
    MultiHosting.com

  3. #3
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    --------------------------------------------------
    Topic Transfered from old forum
    --------------------------------------------------

    Ah ok, thank you for that.
    That is fine then, as soon as the Matches start it will have ended.

    Regards
    Support Operator
    MultiHosting.com

  4. #4
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    Quote Originally Posted by 3hills View Post
    --------------------------------------------------
    Topic Transfered from old forum
    --------------------------------------------------

    Hello,

    the system has a time schedule, which means that until that deadline, they can change their predictions.
    Usually, most admins, set the time-deadline for each match, one (1) minute before kickoff.

    Hope that answers your question.
    Where exactly it is possible to look this possibility (time schedule), in what file?
    Support Operator
    MultiHosting.com

  5. #5
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    --------------------------------------------------
    Topic Transfered from old forum
    --------------------------------------------------

    Quote Originally Posted by 3hills View Post
    Where exactly it is possible to look this possibility (time schedule), in what file?
    you can take look at the file <joomla directory>/com_multileague/models/matches.php

    the function getMatches() gets the matches that will be shown to the user view "matches" (the one that he makes predictions)
    the function savePredictions() saves the user predictions , it performes date checks to see if the user try to save a match that has already started.

    you can change the getMatches() to bring only the matches that the user has not predicted but you will have to change the savePredictions() to be sure that the user can't send you data for already predicted match

    there is already a check for that "if(count($alreadyPredictCheck)==0){"
    you can simply remove the else and the user won't be able to update his prediction (but of course it will be good to change the getMatches so the user can't see in matches he predicted in front end).
    Support Operator
    MultiHosting.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •