Design and Web Development
Home
BearDev
Forum is transfered to our new web site www.JoomSport.com
Post Reply
Page 1 of 2
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »

Negative points
Post Negative points
on 09/07/2009 18:21

Sometimes, when teams, for example, don't show up to the match, there are usually some punishments. The usual one i think is to subtract one point to team classification. Is there any way of doing so in current BearLeague version? if not, do you think this could be implemented?
Thanks


donellyfan
Posts: 11

Naive
Naive
Registered

Joined Board
09/03/2009 10:06
Offline User is Offline

View all users posts

Post Re: Negative points
on 09/22/2009 11:59

Quote:Sometimes, when teams, for example, don't show up to the match, there are usually some punishments. The usual one i think is to subtract one point to team classification. Is there any way of doing so in current BearLeague version? if not, do you think this could be implemented?
Thanks


Is it too hard? or am i the only one with this strange request...? :)
cheers


donellyfan
Posts: 11

Naive
Naive
Registered

Joined Board
09/03/2009 10:06
Offline User is Offline

View all users posts

Post Re: Negative points
on 09/28/2009 07:55

Admin help us)))


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 09/28/2009 17:51

Dear, Guys!

I'm apologize for the later answer...

Do you mean that before the season start some teams should have some point?

Sorry once again..

Regards,
John


John
Posts: 576

Master
Master
Administrator

Joined Board
02/28/2010 13:18
Offline User is Offline

View all users posts

BearDev - development company. Any complexity Web Sites. PHP/MySQL/Joomla! solutions.

Post Re: Negative points
on 09/29/2009 06:48

Quote:Dear, Guys!

I'm apologize for the later answer...

Do you mean that before the season start some teams should have some point?

Sorry once again..

Regards,
John


Match: Team A and team B. Team A did not appear on the game.
Team A - a defeat, the team B - victory, while the game's result - 0:5, but no goals plus in the general treasury.
I think that we are talking about.


art548
Posts: 42

User
User
Registered

Joined Board
06/15/2009 13:39
Offline User is Offline

View all users posts

Post Re: Negative points
on 09/29/2009 18:07

Quote:Dear, Guys!

I'm apologize for the later answer...

Do you mean that before the season start some teams should have some point?

Sorry once again..

Regards,
John


no problem. Hope you're busy with upgrading bearleague :D

This request is very simple for me: When user defines points in season - "won points way", "draw point away", etc. - just add a "Administrative penalty points". And in match report the option to aply this penalty/punishment, whenever the administrator of the tournament finds it apropriated...
best regards



donellyfan
Posts: 11

Naive
Naive
Registered

Joined Board
09/03/2009 10:06
Offline User is Offline

View all users posts

Post Re: Negative points
on 09/29/2009 23:57

Hello,
Perhaps you can use the build I made in the wait of the upgrading. With it you can add malus point to a team...
http://www.beardev.com/component/joobb/topic/222-Buildof1.0.7ComponentusedforRugbySite.html

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/02/2009 10:14

donellyfan,

for your wishes you could use Eric's BL build.
He already implement the feature

Regards,
John


John
Posts: 576

Master
Master
Administrator

Joined Board
02/28/2010 13:18
Offline User is Offline

View all users posts

BearDev - development company. Any complexity Web Sites. PHP/MySQL/Joomla! solutions.

Post Re: Negative points
on 10/04/2009 11:47

Quote:
no problem. Hope you're busy with upgrading bearleague :D

This request is very simple for me: When user defines points in season - "won points way", "draw point away", etc. - just add a "Administrative penalty points". And in match report the option to aply this penalty/punishment, whenever the administrator of the tournament finds it apropriated...
best regards



How it is possible to remove from a team one point as punishment? It is very important)
In what file what to change?


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/04/2009 21:22

hello, Fatum!

what point you want remove ?

Best Regards.
John


John
Posts: 576

Master
Master
Administrator

Joined Board
02/28/2010 13:18
Offline User is Offline

View all users posts

BearDev - development company. Any complexity Web Sites. PHP/MySQL/Joomla! solutions.

Post Re: Negative points
on 10/05/2009 13:23

Quote:hello, Fatum!

what point you want remove ?

Best Regards.
John


Hi, John! For example, one team has broken a rule and should be punished! It is necessary to remove from it 1 (2,3,4...) a point! It is possible to add in matchday a field where points will be added how many acts in film for this game?

For win one team will have 3 points! Team has played 5 games and should type 15 points, but with punishment types 14! And display this in table!
Maybe write this to main formule of a counting of points? 3 (a point for game) * 5 (games) = 15 (total points), if a field with negative points empty for this team -> 15, if is not present, 15 - 1 (quantity of the removed points) = 14!

sorry for my english! I hope you unserstand me)


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/05/2009 15:14

Quote:Hello,
Perhaps you can use the build I made in the wait of the upgrading. With it you can add malus point to a team...
http://www.beardev.com/component/joobb/topic/222-Buildof1.0.7ComponentusedforRugbySite.html

Regards

Eric


Hi
With this build it's posible to add bonus (positive) or malus (negative) points to a team for each match she play

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/05/2009 15:21

But except bonus points it is necessary nothing for me!
Well and still autogoal function)
Maybe you now what code and wich file i must change or add?


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/05/2009 15:31

I change the code in the following files :
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\ADMIN.BEARLEAGUE.CLASS.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\ADMIN.BEARLEAGUE.HTML.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\ADMIN.BEARLEAGUE.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\BEARLEAGUE.XML
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\INSTALL.BEARLEAGUE.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\JBL_HELP.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\LANGUAGE.BEARLEAGUE.PHP

\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\BEARLEAGUE\LANGUAGES\DEFAULT.PHP
\ADMINISTRATOR\COMPONENTS\COM_BEARLEAGUE\BEARLEAGUE\LANGUAGES\ITALIAN.PHP

\COMPONENTS\COM_BEARLEAGUE\VIEWS\LTABLE\VIEW.HTML.PHP

\COMPONENTS\COM_BEARLEAGUE\VIEWS\LTABLE\TMPL\DEFAULT.PHP

\MEDIA\BEARLEAGUE\LANGUAGES\DEFAULT.PHP
\MEDIA\BEARLEAGUE\LANGUAGES\ITALIAN.PHP

I also modified and add some fileds in database..... so it's very difficult to say you all what to modified in a post. I think the better way is donlaod the build, install it in a local server, and compare with officilal files and database.......

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/05/2009 15:42

Maybe admin can help me!

And where you change Code:4. In FE all time format are 24H ( for exemple 15:00 and not 15:00 PM) ?


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/05/2009 16:11

Here you can find the modified files for this : http://www.beardev.com/component/joobb/topic/166-Resultslookstobeinreverseorder.html


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 06:58

http://www.beardev.com/component/joobb/topic/222-Buildof1.0.7ComponentusedforRugbySite.html

zebulon437 Thanks a lot for help) I installed your commponent!
mod_bl_table display points without bonus, team have without bonus 6 points, with - 5! Module display 6 points! How may fix this?


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 09:49

Hi

1.to move the Points column at the end of the rankinng table ( It was your first request, no?) just replace the file default.php in root>components>com_bearleague>views>ltable>tmpl by the file you can donload here :
http://rapidshare.com/files/289318199/default.php.html
MD5: 97D952B91002204EFAC5A23A65E7FEAB

2.Quote:http://www.beardev.com/component/joobb/topic/222-Buildof1.0.7ComponentusedforRugbySite.html

zebulon437 Thanks a lot for help) I installed your commponent!
mod_bl_table display points without bonus, team have without bonus 6 points, with - 5! Module display 6 points! How may fix this?


Have you check the box Enable bonus points in season panel?
http://img84.imageshack.us/img84/8762/beseason.jpg

Regards.
Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 13:13

http://img522.imageshack.us/img522/890/tableon.jpg
http://img16.imageshack.us/img16/3507/table2ld.jpg

I has already move the Points column, tnx!

Yes, enabled! Its in module, not in commponent)


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 13:25

Hmmm...

I'm not use module, so I made the build only for component.

I look to make this as fast as possible...


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 14:03

Hi

Replace the file helper.php in Root>modules>mod_bl_table by this one :

http://rapidshare.com/files/289404299/helper.php.html
MD5: 460C2D6DB5C80244D88F5E8CD84EAB7A

Normaly it's works.....

Regards
Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 10/06/2009 14:23

respect, man! I dont now what i do without you! Thanks a lot!


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Russian translation
on 12/10/2009 14:16

I have made russian translation for zebulon437 modification and add friendly url from 1.0.9 version, and little modification for football league!
If somebody inerested you may download this DOWNLOAD

But i waiting 1.0.9 with negative point! And i'll translate this too!


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/13/2009 15:08

One more vote to a negative points functionality.

A team in my league just received a -3 punishment and I can't make it appear in the season's table.


Giorgos
Giorgos
Posts: 4

Naive
Naive
Registered

Joined Board
12/13/2009 15:03
Offline User is Offline

View all users posts

http://www.freeweird.com http://www.archangelos.net

Post Re: Negative points
on 12/14/2009 13:54

I have the same problem...


Is possible change the value of ranking table from phpmyadmin panel? I dont' found the record...


save
save
Posts: 10

Naive
Naive
Registered

Joined Board
11/30/2009 14:15
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/15/2009 19:33

Hi guys,

I think the build of component I just publish here : http://www.beardev.com/component/joobb/topic/318-1.0.9ComponentwithPositiveandNegativeBonuspointsusedforRugbyleague.html can do what you want..

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/16/2009 20:56

Hi Zebulon, thank you for your reply!

I have tried your component, but I had some problems with the management of the teams: when I install it, the teams that i have created with the official release disappear from the control panel and from the modules; i don't know what is the problem.



To remove a points, do you think is possible simply to change the value from phpmyadmin? What is the right row?

Regards, and sorry for my very very bad english!




save
save
Posts: 10

Naive
Naive
Registered

Joined Board
11/30/2009 14:15
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/16/2009 21:10

Hi Save

This is not a bug, like I say in the post where you download the component I made:

Quote:5.Add a medium and a short name to each team.
If you don't use before the latest version of 1.0.7 component I made, when you install this version you can see all your teams name are not displayed! Don't be afraid your data haven't be deleted It's just because the long name used in official version of component is now only used in the tittle of the team layout. http://img683.imageshack.us/img683/695/teamlayout.png In all other places of component the team name used is the medium name. The short name is used in all modules instead of long team name used in official modules version.
To have your team displayed just go in BE teams page and add a medium (max 15 digit) and short name ( max 4 digit) to each team.
http://img189.imageshack.us/img189/701/teamsh.png. You can also do this modification in FE teams Page http://img189.imageshack.us/img189/8332/teamfeedit.png


So just edit all your teams, add them a short and a medium name
and all will be good :)

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/16/2009 21:14

Thank you Zebulon,

I'm sorry for my inattention...

Regards


save
save
Posts: 10

Naive
Naive
Registered

Joined Board
11/30/2009 14:15
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/16/2009 21:20

No problem :)


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 09:28

Thanks for this component admin and zebulon437))) It's great job!


F@TUM
F@TUM
Posts: 24

Naive
Naive
Registered

Joined Board
09/25/2009 13:24
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 12:23

Hi Zebulon, i have installed your component, it's great!!!Thank you!!!!

I have only a question? Is possible in your mod_table to show the long name of the teams?

Should i edit the mod_bl_table/tmpl/default.php?

Regards




save
save
Posts: 10

Naive
Naive
Registered

Joined Board
11/30/2009 14:15
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 18:09

Hi
No it's not in default.php :)

you have to editRoot>modules>mod_bl_table>helper.php and replace line 50
Code: $query = "SELECT t.t_short_name FROM #__bl_teams as t WHERE t.id = ".$tid;

To use medium name by

Code: $query = "SELECT t.t_moy_name FROM #__bl_teams as t WHERE t.id = ".$tid;

To use long name By :
Code: $query = "SELECT t.t_name FROM #__bl_teams as t WHERE t.id = ".$tid;

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 18:10

Quote:Thanks for this component admin and zebulon437))) It's great job!

Thanks for compliment!!! and also for your translation!!

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 19:20

Quote:Hi
No it's not in default.php :)

you have to editRoot>modules>mod_bl_table>helper.php and replace line 50
Code: $query = "SELECT t.t_short_name FROM #__bl_teams as t WHERE t.id = ".$tid;

To use medium name by

Code: $query = "SELECT t.t_moy_name FROM #__bl_teams as t WHERE t.id = ".$tid;

To use long name By :
Code: $query = "SELECT t.t_name FROM #__bl_teams as t WHERE t.id = ".$tid;

Regards

Eric



Thank Zebulon! It works perfectly, you are the best:smile:

Regards


save
save
Posts: 10

Naive
Naive
Registered

Joined Board
11/30/2009 14:15
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/17/2009 21:05

Thanks Zebulon! I installed it too and it works perfect!


Giorgos
Giorgos
Posts: 4

Naive
Naive
Registered

Joined Board
12/13/2009 15:03
Offline User is Offline

View all users posts

http://www.freeweird.com http://www.archangelos.net

Thumb Up Re: Negative points
on 12/19/2009 12:28

Zebulon, is there any way that I can control the "Team Med. name" and the "short name" character limit? Right now it's 15 for the med name and 4 for the short name, and I would like to increase it (Greek names can be really long :grin:)...

Thanks! :smile:


Giorgos
Giorgos
Posts: 4

Naive
Naive
Registered

Joined Board
12/13/2009 15:03
Offline User is Offline

View all users posts

http://www.freeweird.com http://www.archangelos.net

Post Re: Negative points
on 12/19/2009 18:19

Giorgos,

Yes it's possible :

1.MAKE A SAVE OF YOUR DATABASE AND YOUR SITE

2.Connect to your database and change the lenght of varchar for the fields t_moy_name and t_short_name in jos_bl_teams table by the number of characters you want for medium name and short name (maximum is 255)

3.Edit the file Root>components>com_bearleague>views>edit_team>tmpl>default.php

and change
* line 149 for medium name the value maxlength="15" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_moy_name field)
* line 177 for short name the value maxlength="4" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_short_name field)

4.Edit the file Root>administrator>components>com_bearleague>admin.bearleague.html.php

and change
* line 1715 for medium name the value maxlength="15" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_moy_name field)
* line 1731 for short name the value maxlength="4" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_short_name field)

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Re: Negative points
on 12/21/2009 08:07

Quote:Giorgos,

Yes it's possible :

1.MAKE A SAVE OF YOUR DATABASE AND YOUR SITE

2.Connect to your database and change the lenght of varchar for the fields t_moy_name and t_short_name in jos_bl_teams table by the number of characters you want for medium name and short name (maximum is 255)

3.Edit the file Root>components>com_bearleague>views>edit_team>tmpl>default.php

and change
* line 149 for medium name the value maxlength="15" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_moy_name field)
* line 177 for short name the value maxlength="4" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_short_name field)

4.Edit the file Root>administrator>components>com_bearleague>admin.bearleague.html.php

and change
* line 1715 for medium name the value maxlength="15" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_moy_name field)
* line 1731 for short name the value maxlength="4" by maxlength="xx" where xx is the number of characters you want (This value must be the same you put in database for t_short_name field)

Regards

Eric


Thanks Zebulon, you are the best! :grin:

I tried it and it works!


Giorgos
Giorgos
Posts: 4

Naive
Naive
Registered

Joined Board
12/13/2009 15:03
Offline User is Offline

View all users posts

http://www.freeweird.com http://www.archangelos.net

Post Re: Negative points
on 12/21/2009 08:47

Happy to could help you :)

Regards

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

Joined Board
07/07/2009 16:38
Offline User is Offline

View all users posts

Post Reply
Page 1 of 2
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »