Loading...
 

Credits


Introduced in Tiki6, Credits are a way for Tiki users to have different stored value types of credits. They can be points, tokens, hours, minutes, numbers of uses of something, etc. This feature comes with an API to add and use credits for each user.

Somehow, it implies having the ability to define and use multiple currencies within a single Tiki site, similarly to what can be achieved with Community Currencies linked to a CCLite server, which allows using those multiple currencies with other sites (intertrading), sites which can be powered by Tiki or other CMS/Softwares, such as Joomla, Drupal, Elgg, etc.

Credit Details

Credits have a few characteristics:
  • Credits have expiry dates and validity periods.
  • Admins can configure different credit types and you can have different credit types for different sites

Admin Credits

  • The admin panel for this feature is at tiki-admin_credits.php
    tiki6_tiki_user_credits_admin_01.png

  • You also need to define which TUC types are allowed in the tiki site, through “Admin home > Payments > Tiki User Credits” (tiki-admin.php?page=payment):
    tiki6_tiki_user_credits_admin_payment_00.png

  • Credits are used in the order of the earliest expiration date. Credits with no expiration date are used last.

Some definitions (useful for the admin panel):

 Admin panel details


Static Level Credits
These are credits such as “storage” where the credit is not permanently used up when they are used. Instead, they can be restored. e.g. the user has used 500/2000 mb of storage.

Scaling divisor
This is used to reduce the length of the bar shown in Module credits for a certain credit type. For example, some credits may have units in the thousands when others are in tens. The former will end up having a very long bar compared to the other credit unless the divisor is set to a larger number.

Expiration date
If there is no expiration date, the credits last forever until they are used.

A Plan
A block of credits that have an expiration date can be considered a plan, especially if they are created with fixed intervals, e.g. monthly plans.


Add credits to users

You add credits to users through tiki-admin_credits.php?userfilter=username (being username the name of the user; which you can type in the username search botiki6_tiki_user_credits_admin_grant_00.png

An admin can also set that a user has already consumed some of that set of allocated credits:

tiki6_tiki_user_credits_admin_use_00.png

And a report on the historical usage can be shown also:

tiki6_tiki_user_credits_admin_historical_usage_00.png

Use Credits

You can pay invoices of Tiki Payments using Tiki User Credits.

The credits that a user has left can be seen at any time by means of the module Module credits:

tiki6_tiki_user_credits_module_00.png





Developer Tips


You could make use of functions in lib/credits/creditlib:

function useCredits to use up credits and function addCredits to add credits for users. Also use getCredits to get a user’s credit information, and getScaledCredits which extends getCredits with more human readable information.


alias
Credit | TUC | TUCs | Tiki User Credit | TikiUserCredit | TikiUserCredits | Tiki User Credits

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as “hubs” for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show php error messages