Monday, May 20, 2013
   
Text Size

Favourites Email Print

How to transfer point

Author:
Administrator
Date added:
Wednesday, 10 November 2010
Last revised:
never
Hits:
4596
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

When a user spend a point, it will deduct the spent point from the avilalbe balance and gets added to admin username.

<?php

$dispatcher =& JDispatcher::getInstance();

$trs=$dispatcher->trigger('doProfilePoint', array($user->username,'admin',$point,'ODude Ecard'));
echo "<br><b> $point ".JText::_($trs[0])." </b><br>";

?>

Syntax:

$dispatcher->trigger('doProfilePoint', array(Sender Username,'Receiver username',Total point to spend,'Remark of Transaction'));

Receiver username : Receiver username can be any if one user transfer point to other user. If no receiver, always use username as 'admin' (Site administrator)


Category

Add comment


Security code
Refresh