Getting Started

Setting Up

Customization

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 Customization for further information.

Plugin Code Usage

<?php echo $plugin->plugLevels(); ?>


Shows the complete list of your TCG’s levels in table format. It also shows the rewards for each level, which is good if you have multiple set of rewards per level tier.

<?php echo $plugin->plugMastery(); ?>


Shows the complete list of your deck mastery and special mastery rewards in table format, it includes member and event cards masteries if you allow this on your TCG.

<?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 the Reward Values list.

<?php echo $plugin->plugAffiliates( ‘general’ ); ?>


Shows the list of your affiliates with images in no specific format but sorted by the affiliates’ subject or name.

<?php echo $plugin->plugAffiliates( ‘table’ ); ?>


Shows the list of your affiliates with images in table format. Sorted by the affiliates’ subject or 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 Customization 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.

<?php echo $plugin->plugMemberTasks(); ?>


If you have the member deck feature enabled for your TCG, this plugin will show the list of available tasks that a member must complete in order to activate the card associated with a specific task. Please make sure to add the tasks first before using this plugin on any admin-created page, as this will return false or empty if the script detects an empty database table.