Team History Statistic W/D/L Problem

Status: Finished
Branch: https://gitlab.com/joomleague/joomleague/tree/master

Moderator: And_One

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Team History Statistic W/D/L Problem

Postby zebil » Thu Oct 08, 2015 11:44 am

Hi,
At team info page i don't want to show draws. Because it is table tennis page and there is no draw. I removed from template settings. But stil shown at history page. Here is the screen shots.

What should i do?
point.png
template ranking.png
Team Info.png




Joomla 2.5.28 and Joomleague 2.93
You do not have the required permissions to view the files attached to this post.

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Team History Statistic W/D/L Problem

Postby Bluefox » Thu Oct 08, 2015 12:36 pm

think the only way to change it will be to modify the language string (com_joomleague.ini).
-> did you try that?

currently the language files are located at 2 locations: within the ocmponent folder + within the joomla language folders. The ones in the joomla folder are taken priority and there you can change it.

.../language/
Help can be asked in the forum

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Team History Statistic W/D/L Problem

Postby zebil » Thu Oct 08, 2015 1:09 pm

I checked now. It's only changing the title. You can only change the W/D/L title, but still showing the results like 7,0,4 etc...
I also checked the default_history.php file in teaminfo/tmpl but nothinh found.

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Team History Statistic W/D/L Problem

Postby Bluefox » Thu Oct 08, 2015 2:12 pm

to change the value in the column you can try this:

file: components/com_joomleague/models/teaminfo.php
function: getTeamranking

you will see code like

Code: Select all

$rank['series'] = $value->cnt_won . "/" . $value->cnt_draw . "/" . $value->cnt_lost;


change that line to

Code: Select all

$rank['series'] = $value->cnt_won . "/" . $value->cnt_lost;


as you noticed there is no option to hide the draw value.
Help can be asked in the forum

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Team History Statistic W/D/L Problem

Postby zebil » Thu Oct 08, 2015 2:21 pm

Waaoow, it is worked! Thank you so much for your help!
Thank you!

User avatar
Bluefox
.
Posts: 312
Joined: Tue Aug 27, 2013 11:26 am
Joomleague version: 2.0.x
Location: Friesland, Netherlands
Contact:

Re: Team History Statistic W/D/L Problem

Postby Bluefox » Thu Oct 08, 2015 2:48 pm

it is worked
good to hear :)

if there are more questions: they are welcome
Help can be asked in the forum


Return to “2.93.239.9df0b25-Katrin”

Who is online

Users browsing this forum: No registered users and 1 guest

cron