Leihe
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Upload all files from the ZIP folder. Run the following command in the database Attention adapt the table name according to your specifications E.g. `_spieler` becomes `ws3_spieler` ALTER TABLE `_spieler` ADD `lending_dauer` TINYINT(3) NULL DEFAULT NULL AFTER `lending_matches`; ALTER TABLE `_saison` ADD `halbsaison_beendet` ENUM('1','0') NOT NULL DEFAULT '0' AFTER `beendet`; In \modules\season\module.xml after <column id="entity_season_beendet" field="SeasonTab.beendet" type="boolean" filter="true" /> insert this <column id="entity_season_halbsaison_beendet" field="SeasonTab.halbsaison_beendet" type="boolean" filter="true" /> further down after <field id="beendet" type="boolean" /> dies einfügen <field id="halbsaison_beendet" type="boolean" /> nsert this after <adminpage id="complete-season" filename="season-complete" navcategory="season" permissionrole="r_spiele" /> insert this <adminpage id="half-complete-season" filename="half-season-complete" navcategory="season" permissionrole="r_spiele" /> In \modules\season\adminmessages_de insert <message id="half-complete-season_navlabel">Hinrunden beenden</message> <message id="half_season_complete_title">Hinrunde beenden</message> <message id="half-complete-season_introduction">Durch auswählen einer Saison wird die Hinrunde als "beendet" markiert und verliehene Spieler (Bis Winterpause) kehren zu ihren Teams zurück. Für folgende Hinrunden gibt es keine Ligaspiele mehr zu berechnen:</message> In \modules\season\entitymessages_de insert <message id="entity_season_halbsaison_beendet">Hinrunde ist beendet</message> In \templates\default\views\myteam-overview replace the following line <br><small>+ {{ i18n.getMessage("entity_player_lending_fee") }}: {{ player.lending_fee|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }}</small> replace with <br><small>Spieler ist ausgeliehen</small> in \templates\default\views\player-details after {% elseif player.lending_owner_id == 0 and player.lending_fee > 0 and env.getConfig("lending_enabled") %} <div class="alert alert-info"> this line <p>{{ i18n.getMessage("lending_player_lendable_info", player.lending_fee|number_format(0, ',', ' ') ~ " " ~ env.getConfig("game_currency"))|raw }}</p> replace with {% if player.lending_dauer == 1 %} <p>{{ i18n.getMessage("lending_player_dauer_winter", player.lending_fee|number_format(0, ',', ' ') ~ " " ~ env.getConfig("game_currency"))|raw }}</p> {% elseif player.lending_dauer == 2 %} <p>{{ i18n.getMessage("lending_player_dauer_sommer", player.lending_fee|number_format(0, ',', ' ') ~ " " ~ env.getConfig("game_currency"))|raw }}</p> {% endif %} In \classes\services\PlayersDataService.class at public static function getPlayersOfTeamById(WebSoccer $websoccer, DbConnection $db, $clubId, $nationalteam = FALSE, $considerBlocksForCups = FALSE, $considerBlocks = TRUE) { after 'lending_owner_id' => 'lending_owner_id', 'transfermarkt' => 'transfermarket' insert 'lending_dauer' => 'lending_dauer' Attention don't forget the comma should look like this 'lending_owner_id' => 'lending_owner_id', 'transfermarkt' => 'transfermarket', 'lending_dauer' => 'lending_dauer' further down at public static function getPlayerById(WebSoccer $websoccer, DbConnection $db, $playerId) { after $columns['P.lending_owner_id'] = 'lending_owner_id'; $columns['L.name'] = 'lending_owner_name'; $columns['P.lending_fee'] = 'lending_fee'; $columns['P.lending_matches'] = 'lending_matches'; $columns['P.lending_dauer'] = 'lending_dauer'; insert $columns['P.lending_dauer'] = 'lending_dauer';