statistics : add a new statistic

General JoomLeague Discussions

Moderator: And_One

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

statistics : add a new statistic

Postby starz91 » Mon May 23, 2011 4:37 pm

Hi,
how do I:
add a statistic calculating the number of minutes played per player?
add a statistic calculating the number of points earned per player for a season knowing that a game won = 4 pt, pt = 2 draw and a defeat = 1 pt?

what method?

thank you very much

my site : http://esviryfootball.com

starz

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3616
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: statistics : add a new statistic

Postby And_One » Tue May 24, 2011 7:04 pm

starz91 wrote:Hi,
how do I:
add a statistic calculating the number of minutes played per player?
add a statistic calculating the number of points earned per player for a season knowing that a game won = 4 pt, pt = 2 draw and a defeat = 1 pt?

what method?

thank you very much

my site : http://esviryfootball.com

starz


add basic stats and use sumstats with the correct statsid to summarize it ;)

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

Re: statistics : add a new statistic

Postby starz91 » Thu Aug 18, 2011 9:19 am

hi, can you give me an example ?

thank you

User avatar
comraden
Joomleague Core Developer
Joomleague Core Developer
Posts: 1298
Joined: Thu Aug 16, 2007 2:27 pm
Location: Poland, Lublin
Contact:

Re: statistics : add a new statistic

Postby comraden » Thu Aug 18, 2011 9:24 am

~3 months break, goood reflex ;)
http://llk.pl::jl_2.x | jl_3.x testing/production enviroment
samiec alfa koncernu 'Cham_Burak_Prostak' || proved: the most annoying person on the forum

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

Re: statistics : add a new statistic

Postby starz91 » Thu Aug 18, 2011 9:49 am

:oops:
I redid my site and I do not really know how to
i have 2 errors :

Code: Select all

Warning: Missing argument 3 for JLGStatisticBasic::getRosterStats(), called in /var/www/esviryfootball.com/htdocs/components/com_joomleague/models/roster.php on line 387 and defined in /var/www/esviryfootball.com/htdocs/administrator/components/com_joomleague/statistics/basic.php on line 69

Warning: Missing argument 3 for JLGStatisticSumstats::getRosterStats(), called in /var/www/esviryfootball.com/htdocs/components/com_joomleague/models/roster.php on line 387 and defined in /var/www/esviryfootball.com/htdocs/administrator/components/com_joomleague/statistics/sumstats.php on line 104

Fatal error: Call to undefined method JLGStatisticBasic::getRosterTotalStats() in /var/www/esviryfootball.com/htdocs/components/com_joomleague/models/roster.php on line 402

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: statistics : add a new statistic

Postby timoline » Thu Aug 18, 2011 10:21 am

Did you install the newest version?
howto reproduce?
Joomla 1.5.x
Joomleague 1.5.....latest git version

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

Re: statistics : add a new statistic

Postby starz91 » Thu Aug 18, 2011 10:27 am

my version is 1.5.1.9 under joomla 1.5.23 !

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: statistics : add a new statistic

Postby timoline » Thu Aug 18, 2011 10:29 am

starz91 wrote:my version is 1.5.1.9 under joomla 1.5.23 !

yup... there's your problem.......this is al fixed in JL1.5.2.xxxx
Joomla 1.5.x
Joomleague 1.5.....latest git version

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

Re: statistics : add a new statistic

Postby starz91 » Thu Aug 18, 2011 10:53 am

there is no problem to transfer between the two versions? I have to do an export jlg for my projects?

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3616
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: statistics : add a new statistic

Postby And_One » Thu Aug 18, 2011 11:18 am

starz91 wrote:there is no problem to transfer between the two versions? I have to do an export jlg for my projects?


no, just install the new version and do the table update. check the :wiki:

starz91
Newbie
Posts: 17
Joined: Tue Mar 08, 2011 8:44 am

Re: statistics : add a new statistic

Postby starz91 » Fri Aug 19, 2011 5:54 am

RESOLVED thank you (version 1.5.2)


Return to “Public”

Who is online

Users browsing this forum: No registered users and 2 guests

cron