Design and Web Development
Home
BearDev
Forum is transfered to our new web site www.JoomSport.com
1.1.0 Component with Positive and Negative Bonus points used for Rugby league
Post 1.1.0 Component with Positive and Negative Bonus points used for Rugby league
on 08/25/2010 17:31

You can find here :http://www.megaupload.com/?d=QG8J5PE1 a build of 1.1.0 version of component and all modules (next matches 1.4, players 1.2, results 1.4, table 1.3) wich works with my build.
The modifications I have made are the followings:

1.Possibility to display bonus points in ranking table.
*To use bonus points don't forget to enable it BE season page, and choose if you wan't to display or not bonus collumn in Ranking Table
See red marks here:http://img401.imageshack.us/img401/6918/seasonedit.png
and here : http://img826.imageshack.us/img826/7602/seasonedit2.png
You can change the tittle of bonus in the FE language page, like in official version :
http://img805.imageshack.us/i/publiclanguage.png/
To add bonus point to a team just put the number of bonus points in the box near result:
In BE : http://img580.imageshack.us/img580/6645/matchday.png or http://img705.imageshack.us/img705/4151/matchw.png
in FE for Team Moderator: http://img138.imageshack.us/img138/2596/matchdayfeedit.png or http://img16.imageshack.us/img16/9771/matchfeedit.png
in FE for Team Captain: http://img130.imageshack.us/img130/803/matchdayfeedit2.png or http://img37.imageshack.us/img37/5595/matchfeedit2.png

2.Possibility to add "brittain" ranking in ranking table.
This ranking system is non official but used by a lot of rugby team managers and supporters. The points generaly used are the following : win home = 0point; win away =+2points; draw home= -1point; draw away=+1point; lost home = -2points; lost away = 0 points.
See green marks here:http://img401.imageshack.us/img401/6918/seasonedit.png and here : http://img826.imageshack.us/img826/7602/seasonedit2.png
If you don't want to use it just don't check the box to display it in ranking table.
You can change the tittle of "Brittain" ranking collumn in the public language page, like in official version :
http://img805.imageshack.us/i/publiclanguage.png/

3.Move Points near team name in season table layout.
And put them in Bold http://img34.imageshack.us/img34/4780/seasontablelayout.png

4.Add the ability to display or not emblems, team name, and number of played match.
To display or not team name, emblems or/and played match just check or uncheck the box in season page.
See blue marks here:http://img401.imageshack.us/img401/6918/seasonedit.png in FE the display is the following :http://img59.imageshack.us/img59/4889/seasontablelayout2.png
You can also display or not those informations in module table. Just do the choice in the module admin page http://img530.imageshack.us/img530/6482/modtablebe.png . In FE the display is the following : http://img444.imageshack.us/img444/355/modtablefe.png

5.Change sorting of calendar layout.
To correct the problem of postponed match the sorting is the following :
1 Matchday
2 Date
3 Time
4 Match Id ( I add this to have my team matches in the first line of each matchday if all matches of this matchday are played at the same date and time. Just have to think to create the match of my team first in each matchday :-))
http://img842.imageshack.us/img842/7687/seasontablelayoutcalend.png

6.Add a medium and a short name to each team.
If you don't use before the latest version of 1.0.7, 1.08, or 1.0.9 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://img405.imageshack.us/img405/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 6 digit) to each team.
http://img822.imageshack.us/img822/701/teamsh.png. You can also do this modification in FE teams Page http://img189.imageshack.us/img189/8332/teamfeedit.png


To change the number of digits of short name and medium name, see this post
Quote:
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 81 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 95 for short name the value maxlength="6" 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 1144 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 1160 for short name the value maxlength="6" 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)



7.All the component is translatable
Like you can see in all pictures above , all the component is now translatable.
In this build you can find the EN (Thanks to Beardev team), IT (Thanks to Alex), RU (Thanks to F@tum)(the words wich are added in 1.1.0 version are not tanslated, if someone can do this please send me the translated file), GR (Thanks to Christopher) and FR (Thanks to me :-) ) language. Also, if you want to add a translation in a new language edit the language file you want (en-GB.com_bearleague.ini, fr-FR.com_bearleague.ini, it-IT.com_bearleague.ini, or ru-RU.com_bearleague.ini) and save the new file xx-XX.com_bearleague.ini Be careful there is 2 different files, 1 for FE and 1 for BE : first in root>language>xx-XX directory and second time in Root>administrator>language>xx-XX directory. If you make a new translation you can post it on megaupload, like this I could include it in the futures versions.....
The module table is already translatable by the same method. Edit the language file and place the new file in the zip before install.
The only thing wich is not translatable in ini file, is the menu in BE. So I don't change anything, it's already in english. If you want to translate it you have to edit the file bearleague.xml in the zip file, change the values lines 343 to 357 and replace the new file in zip before install. You can also find in Language directory a sub directory XML where I put the xml file for French, Greek, Italian and English. If you replace the bearleague.xml by one of those your menu bar will be translate :)

8.Some minor modifications
For exemple, when a TeamCaptain or an TeamAdministrator goes on FE edit page he directly have the matchday page displayed.....

To install this build, like allready don't forget to make a save of your website and your database before installing:
1 Downlaod it :)
2 Unzip the package where you want.
3 Unistall previous version of component ( and modules, if you wan't to use the joined modules) YOUR DATA ARE NOT DELETED
4 Install the new version of component ( and eventualy modules)
5 If your menu links are broken, go to your joomla BE menu page and open then save your links !

Thank's for your patience, and now Enjoy!!!!

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: 1.1.0 Component with Positive and Negative Bonus points used for Rugby league
on 08/29/2010 20:12

Hi guys,

I just add the greek language.
Thank's to christopher for his translation..

Eric


zebulon437
zebulon437
Posts: 156

Hero
Hero
Registered

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

View all users posts