Plugins

This section will explain how to add PHP snippets or plugins to your Stack admin-created pages. Please do keep in mind that these pre-added plugins are only for your TCG’s basic need. If you want to add custom PHP codes to your admin-created page, kindly please refer to our community forum for further information.

Plugin

Usage

<?php echo $plugin->plugLevels(); ?> Shows the complete list of your TCG’s levels in table format. This will only work for levels with the same rewards tier. I’m yet to develop the multiple rewards tier and it will be included in future releases.

<?php echo $plugin->plugCurrency(PLUGGED); ?> Shows the list of currencies for activity rewards such as deck mastery and level ups. The PLUGGED text must be replaced with the actual reward values from the database. To know the format of the rewarded currencies from the database, kindly refer to this list.

<?php echo $plugin->plugAffiliates(general); ?> Shows the list of your affiliates with images in no specific format, but sorted by the affiliates’ subject/name.

<?php echo $plugin->plugAffiliates(table); ?> Shows the list of your affiliates with images in table format. Sorted by the affiliates’ subject/name, it will also display the affiliate’s owner and subject.

<?php echo $plugin->plugAffiliates(form); ?> Shows the form for applying for your TCG’s affiliation and it is pre-formatted in tables. If you want to customize how your affiliation form looks, kindly refer to our community forum for further information.

<?php echo $plugin->plugBadges(); ?> Shows the list of your available level badges for your TCG. It is sorted alphabetically by donators and players will need to click a set to view all the level badges for that specific set.