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

Results 1 to 6 of 6

Thread: views playerhistory tmpl default.php

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Posts
    11

    views playerhistory tmpl default.php

    hi,
    what code should be in line 110 in <!--<td><?php ?></td>--> ?
    This is reference to line 96 <!--<th><?php echo JText::_("COM_MULTILEAGUE_WL"); ?></th>-->
    Its empty, maybe for future solutions?

    Or maybe you can help me with this.
    My players want to know how many points they get for every match. How can i do that?

    thank you.

  2. #2
    Junior Member
    Join Date
    Jun 2017
    Posts
    11
    still current

  3. #3
    Junior Member
    Join Date
    May 2017
    Posts
    7
    Hi, I created this code to write the points on this page.It is not perfect, but it can be improved.
    In this case the correct result is 18 points and the result is 9.
    In line 96
    <th><?php echo "Points"; ?></th>
    in line 110
    <td><?php
    if ($item->home_score_prediction == $item->home_team_score AND $item->away_score_prediction == $item->away_team_score) {
    echo "18";
    }


    elseif ( ($item->home_score_prediction < $item->away_score_prediction AND $item->home_team_score < $item->away_team_score) OR
    ($item->home_score_prediction > $item->away_score_prediction AND $item->home_team_score > $item->away_team_score) OR
    ($item->home_score_prediction == $item->away_score_prediction AND $item->home_team_score == $item->away_team_score) ) {


    echo "9";
    }


    if ( ($item->home_score_prediction < $item->away_score_prediction AND $item->home_team_score > $item->away_team_score) OR
    ($item->home_score_prediction > $item->away_score_prediction AND $item->home_team_score <= $item->away_team_score) OR
    ($item->home_score_prediction == $item->away_score_prediction AND $item->home_team_score !== $item->away_team_score) ) {


    echo "0" ;
    }


    ?></td>

    See result ins https://bembolao.com/index.php/class...ory&mluser=730
    No is perfect.Its works.
    Last edited by ekosak; 26-02-2018 at 07:44 PM.

  4. #4
    Administrator
    Join Date
    Dec 2011
    Posts
    2
    ekosak, thank you for your contribution at Master-League!

    Regards,
    Nikos

  5. #5
    Junior Member
    Join Date
    Jun 2017
    Posts
    11
    hi,
    thanks!

    I add
    OR
    ($item->home_score_prediction < $item->away_score_prediction AND $item->home_team_score == $item->away_team_score)
    ) {


    echo "0" ;
    }

    and it works better I think. Try and see in draw results.

  6. #6
    Junior Member
    Join Date
    May 2017
    Posts
    7
    Hi, thanks
    Right. One problem still persists. When the game did not happen in the draws shows the score.
    And I still try to show the sum on this page.

Posting Permissions

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