WordPress.org

Forums

SportsPress - Manage Leagues & Sports Clubs
Formulas not work (4 posts)

  1. teecrisp
    Member
    Posted 10 months ago #

    Hi there,

    i have installed the plugin correctly and running a custom league.Im having a hard time getting custom forumlas to show up in player lists.

    I have 3 variables per player (wins,losses,totalpoints) and in the statistics category. I have a column for points per win, and have a stat formula that has totalpoints/win, except it just shows up as zero in the player list.

    Any advice?

    https://wordpress.org/plugins/sportspress/

  2. ThemeBoy
    Member
    Plugin Author

    Posted 10 months ago #

    @teecrisp Could you paste the output of SportsPress > System Status below? (please use the "code" button)

  3. teecrisp
    Member
    Posted 10 months ago #

    Home URL:	http://8.8.8.8/wordpress
    Site URL:	http://8.8.8.8/wordpress
    SP Version:	1.1.8
    WP Version:	3.9.1
    WP Multisite Enabled:	No
    Web Server Info:	Apache/2.2.22 (Ubuntu)
    PHP Version:	5.3.10-1ubuntu3.13
    WP Memory Limit:	40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
    WP Debug Mode:	No
    WP Language:	Default
    WP Max Upload Size:	2 MB
    PHP Post Max Size:	8 MB
    PHP Time Limit:	30
    PHP Max Input Vars:	1000
    SUHOSIN Installed:	No
    Default Timezone:	Default timezone is UTC
    fsockopen/cURL:	 Your server has fsockopen enabled, cURL is disabled.
    SOAP Client:	 Your server has the SOAP Client class enabled.
    Plugins
    Installed Plugins:	Simple Members Only by Steven Fernandez version 1.0.0,
    SportsPress by ThemeBoy version 1.1.8
    SP Configuration
    Sport:	custom
    Event Outcomes:	Win (win) [0], Loss (loss) [0]
    Team Results:	Win (win) [0], Loss (loss) [0]
    Player Performance:	Wins (wins) [0], Losses (losses) [0], Total Points (totalpoints) [0], Avg Pp () [0], Points Per Win (pointsperwin) [0]
    Table Columns:
    Player Metrics:	Staff Member () [0], Winss (winss) [0], Lossess (lossess) [0], Total Pointss (totalpointss) [0]
    Player Statistics:	Wins (wins = ) [0], Losses (losses = ) [0], Total Points (totalpoints = ) [0], Points Per Win (pointsperwin = $totalpoints / $wins) [0]
    SP Taxonomies
    Leagues:
    Seasons:	Fusion Fighters Blitz July 12-13 (fusion-fighters-blitz-july-12-13), Fusion Fighters Blitz June 28-29 (fusion-fighters-blitz-june-28-29)
    Venues:
    Positions:
    SP Post Types
    Events:	 1 publish, 0 future, 0 draft, 0 private, 0 trash, 1 auto-draft, 0 inherit
    Calendars:	 0 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
    Teams:	 1 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
    League Tables:	 0 publish, 0 future, 0 draft, 0 private, 1 trash, 2 auto-draft, 0 inherit
    Players:	 23 publish, 0 future, 0 draft, 0 private, 1 trash, 2 auto-draft, 0 inherit
    Player Lists:	 2 publish, 0 future, 0 draft, 0 private, 0 trash, 2 auto-draft, 0 inherit
    Staff:	 0 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
    Theme
    Theme Name:	Twenty Fourteen
    Theme Version:	1.1
    Author URL:	http://wordpress.org/
    Templates
    Template Overrides:	No overrides present in theme.
  4. ThemeBoy
    Member
    Plugin Author

    Posted 10 months ago #

    @teecrisp The issue could be one of two things (or both):

    1. I'm not sure if there is a need to have a "Wins" variable in Player Performance. You could use the Event Outcome directly when calculating Player Statistics, so let's change the equation to:

    Points Per Win = Total Points ÷ Win

    ("Win" should be from Event Outcomes)

    2. If the "Rounding" value for Points Per Win is 0, this could also result in the value being returned as zero if the equation returns a number less than 0.5. Changing the Rounding value to 3, for example, will ensure that 3 decimal places are shown.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.