the problem & context

the problem: i'm so lazy and don't want to manually input things when submitting a new collecting deck

the solution: prepopulate them in your etcg!

caveats: you'll be modding your etcg files, so please back them up

i only play Idolise so i default to Idolise settings. there are ways to save for each tcg you play but i'm not getting into that.

the mod

example output: prepopulate card worth, count, and break points

Untitled

in your /etcg/collecting.php file (the one in the etcg directory)

under the section

<h2 class="modal-title" id="new-collecting-label">New Collecting Deck</h2>

  1. find card worth, card count, break points

before:

<div class="form-group">
                            <label for="worth">Card Worth</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="The worth of each card in the deck."></i>
                            <input name="worth" id="worth" type="number" class="form-control" placeholder="ie. 1">
                        </div>
                        <div class="form-group">
                            <label for="count">Card Count</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="The total number of cards in the deck when completed."></i>
                            <input name="count" id="count" type="number" class="form-control" placeholder="ie. 15">
                        </div>
                        <div class="form-group">
                            <label for="break">Break Points</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="Defines where to insert a line break (ie. input 5 to insert a line break after every 5 cards). Set the value to 0 if you don't want line breaks."></i>
                            <input name="break" id="break" type="number" class="form-control" placeholder="ie. 5">
                        </div>

after (we're populating the value):

<div class="form-group">
                            <label for="worth">Card Worth</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="The worth of each card in the deck."></i>
                            <input name="worth" id="worth" value="1" type="number" class="form-control" placeholder="ie. 1">
                        </div>
                        <div class="form-group">
                            <label for="count">Card Count</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="The total number of cards in the deck when completed."></i>
                            <input name="count" id="count" value="20" type="number" class="form-control" placeholder="ie. 15">
                        </div>
                        <div class="form-group">
                            <label for="break">Break Points</label> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="top" title="Defines where to insert a line break (ie. input 5 to insert a line break after every 5 cards). Set the value to 0 if you don't want line breaks."></i>
                            <input name="break" id="break" value="5" type="number" class="form-control" placeholder="ie. 5">
                        </div>