Site Templates

The template files used in McJiffy EASy uses basic php files for it's templates. You will just need to use <?php echo $VARIABLENAME; ?> to output any of the variables set in the EASy script.

To create a template, create a new directory under the "themes" directory and name your template file "index.php". As mentioned before, this template file is a basic php file, so you can use any type of php programming in your template file.

The pre-set variables available for templates to use are:

$AppId - your eBay Developer production key

$site - the array set from the configuration files

ROOT_DIR - the file system path to your installation of McJiffy EASy

THEME_DIR - the file system path to the currently selected theme

$keyword - the currently selected keyword

$url - the full url of the current page

$themeUrl - the full url to the themes directory

$page - the current page number

$pageSize - the number of items to show on each page

$pageNumbers - the total number of pages for the current keyword

$mainkeywords - array of main keywords set through the confiugration files

$related - array of keywords dynamically pulled from eBay that are related to the current keyword. These are usually more refined versions of the current keyword.

$topics - array of kewords dynamically pulled from eBay that are considered related topics to the current keyword.

$ebayItems - array of product search results from eBay. Each item is also an array with entries for: title - product name, link - link to product, image - link to image hosted on ebay, currentbid - current bid price, bidcount - current number of bids for this product, endtime - time when auction ends, type - either auction or buy it now, bin - buy it now price if available

$impressionPixel - a tracking image used by eBay to log impressions of a given page and keyword. These stats will appear in your eBay affiliate dashboard.

$country['bin'] - localized text for "Buy It Now"

$country['currentbid'] - localized text for "Current Bid"

$country['bids'] - localized text for "Bids"

$country['ends'] - localized text for "Ends"