Via FTP: Upload the xchange/ directory into /plugins/, then import xchange/sql/xchange.sql.
Via package manager: Select xchange from the available plugins list.
Paths:
- Main plugin:
/plugins/xchange/xchange.php - Library:
/plugins/xchange/lib/xchange.lib.inc.php - AJAX handler:
/plugins/xchange/handlers/xchange.mod.php - User profile:
/plugins/xchange/profile/ - CSS / JS:
/plugins/xchange/css/, /plugins/xchange/js/
Configuration parameters:
| Variable | Default | Description |
|---|---|---|
| $basedatadisplay | 'yes' | Visible in the management interface |
| $basedisplevel | BASE_LEVEL_USER | Available to logged-in users |
| $ftype | 6 | Application module |
| XCHANGE_MAX_PHOTOS | 5 | Max photos per listing |
| XCHANGE_MAX_TITLE | 128 | Max title length |
| XCHANGE_MAX_DESCRIPTION | 5000 | Max description length |
| XCHANGE_ITEMS_PER_PAGE | 20 | Listings per page |
Transaction types: sell, trade, sell or trade, gift with shipping paid by the receiver, gift with local pickup.
Listing statuses: draft, active, under option, sold, traded, removed, gifted.
Transaction statuses: pending, accepted, completed, cancelled, disputed.
Rating: 1 to 5 stars between buyer and seller after a transaction.
SQL tables used: xchange_products, xchange_transactions, xchange_ratings, xchange_blacklist, users