How to remove -

Status: finished.
This is a bugfix release with a limited set of new features.

Moderator: And_One

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

How to remove -

Postby MrKramer » Sun Mar 27, 2011 8:11 am

i cant get rid of this little problem, maybe im thinking to difficult.

i want to change the --- to - seen on the picture between the teams.
- is the result for a upcoming game.

Image

how do i do this? (what file or something)

thanks in advance

*answer can be deutsch, i can understand deutsch

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

Re: How to remove -

Postby And_One » Sun Mar 27, 2011 11:36 pm

:__:

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

Re: How to remove -

Postby MrKramer » Tue Mar 29, 2011 1:20 am

MrKramer wrote:i cant get rid of this little problem, maybe im thinking to difficult.

i want to change the --- to - seen on the picture between the teams.
- is the result for a upcoming game.

Image

how do i do this? (what file or something)

thanks in advance

*answer can be deutsch, i can understand deutsch


Joomleague version: v1.5.0.dfbe2e8
Joomla Version: 1.5.20
Link: http://davo4.nl

User avatar
kubik
.
Posts: 618
Joined: Tue Nov 03, 2009 7:20 pm
Joomleague version: 2.0.x
Location: Oberschlesien
Contact:

Re: How to remove -

Postby kubik » Tue Mar 29, 2011 8:58 am

MrKramer wrote:
MrKramer wrote:i cant get rid of this little problem, maybe im thinking to difficult.

i want to change the --- to - seen on the picture between the teams.
- is the result for a upcoming game.

Image

how do i do this? (what file or something)

thanks in advance

*answer can be deutsch, i can understand deutsch


Joomleague version: v1.5.0.dfbe2e8
Joomla Version: 1.5.20
Link: http://davo4.nl

You need an update to 1.5.1 beta ;)

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

Re: How to remove -

Postby MrKramer » Wed Mar 30, 2011 2:44 am

kubik wrote:You need an update to 1.5.1 beta ;)


How do i update it?

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

Re: How to remove -

Postby And_One » Wed Mar 30, 2011 8:38 am

:wiki:

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

Re: How to remove -

Postby MrKramer » Thu Mar 31, 2011 8:39 pm

Oke i updated to 1.5.1 Beta 1

I still have the problem i started with.. the - i want to remove.

User avatar
kubik
.
Posts: 618
Joined: Tue Nov 03, 2009 7:20 pm
Joomleague version: 2.0.x
Location: Oberschlesien
Contact:

Re: How to remove -

Postby kubik » Thu Mar 31, 2011 8:43 pm

MrKramer wrote:Oke i updated to 1.5.1 Beta 1

I still have the problem i started with.. the - i want to remove.

mod_joomleague_nextmatch_ext ?
nextmatchext.JPG
You do not have the required permissions to view the files attached to this post.
Joomla 2.5.x & 3.x
JoomLeague - Latest Git Version
GG Network No : 5739578
www.RegioLiga.pl

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

Re: How to remove -

Postby MrKramer » Thu Mar 31, 2011 11:49 pm

kubik wrote:mod_joomleague_nextmatch_ext ?
nextmatchext.JPG


I dont mean that one, i mean the 2 x - that is used if there is no score:

Team --- Team

If there is a score there will be:

Team 3-7 Team


I want if there is no score it looks like:

Team - Team

desperate
.
Posts: 96
Joined: Sat May 01, 2010 5:53 pm

Re: How to remove -

Postby desperate » Sat Apr 02, 2011 11:17 am

Replace following two lines in .../modules/mod_joomleague_nextmatch_ext/helper.php

[syntax="php"]
$rows[$match->match_id]['homescore'] = (!is_null($match->team1_result)) ? $match->team1_result : '-';

$rows[$match->match_id]['awayscore'] = (!is_null($match->team2_result)) ? $match->team2_result : '-';
[/syntax]

with

[syntax="php"]
$rows[$match->match_id]['homescore'] = (!is_null($match->team1_result)) ? $match->team1_result : '';

$rows[$match->match_id]['awayscore'] = (!is_null($match->team2_result)) ? $match->team2_result : '';
[/syntax]


Not to forget the team separator (default ' : ', in your case probably ' - ') in the backend settings of this fantastic module.

MrKramer
Newbie
Posts: 8
Joined: Tue Aug 31, 2010 11:15 am

Re: How to remove -

Postby MrKramer » Sun Apr 03, 2011 12:29 am

desperate wrote:Replace following two lines in .../modules/mod_joomleague_nextmatch_ext/helper.php

[syntax="php"]
$rows[$match->match_id]['homescore'] = (!is_null($match->team1_result)) ? $match->team1_result : '-';

...................................
[/syntax]


Many Thanks for helping me out with that!


Return to “1.5.1-daniela (Beta 1)”

Who is online

Users browsing this forum: No registered users and 2 guests

cron