Hi everyone.
I would like to show a number points on the profilpage of the member.
So, i have added "points" field in the joomla_comprofiler table.
Then, i have opened cb.menu.php file,
And after this :
[code:1] //
User Status items for User Status Window:
// Hits
if ($params->get('hits', '1')==1) {
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_HITS"]["_UE_HITS"]=null;
$this->menuList->addObjectItem($mi, $user->hits,"", "",
"","", _UE_HITS_DESC,""«»);
}
// Point system by Cano
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_POINTS"]["_UE_POINTS"]=null;
$this->menuList->addObjectItem($mi, $user->points,"", "",
"","", _UE_POINTS_DESC,""«»);
// Online Status
if($ueConfig==1 && $params->get('online', '1')==1) {
$database->setQuery("SELECT COUNT(*) FROM #__session WHERE userid =". (int) $user->id);
$isonline = $database->loadResult();
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_ONLINESTATUS"]["_UE_ONLINESTATUS"]=null;
$this->menuList->addObjectItem($mi, ($isonline > 0) ? _UE_ISONLINE : _UE_ISOFFLINE,"", "",
"","", _UE_ONLINESTATUS_DESC,""«»);
}[/code:1]
I have added that :
[code:1] // Try to show a table data
$mi = array(); $mi["_UE_MENU_STATUS"]["_UE_POINTS"]["_UE_POINTS"]=null;
$this->menuList->addObjectItem($mi, $user->points,"", "",
"","", _UE_POINTS_DESC,""«»); [/code:1]
But it doesn't work really...
Look yourself
img502.imageshack.us/my.php?image=bugxv0.jpg
Whereas i have change the value of points to 5 in phpmyadmin tool.
The value is already 0!
What's the problem ?
thx
Post edited by: Cano, at: 2007/05/31 21:25