Topic: fluxbb 1.3 ~ add something below user info
Can anyone tell me what variable I have to use when I want to insert something in viewtopic.php just below the user information post count with the current user variable, I also tried $cur_user but that does not work.
I now use hook "vt_row_add_user_data_cache" and I am using $forum_user but then the same information comes with all members and guests.
I use the next code:
if (!empty($forum_user['whatpulse_user_id']))
{
$uid = $forum_user['whatpulse_user_id'];
$link = 'http://whatpulse.org/api/user.php?UserID='.$forum_user['whatpulse_user_id'];
require($ext_info['path'].'/functions.php');
cache_whatpulse_xml($uid, $link);
require($ext_info['path'].'/simplexml.class.php');
$sxml = new simplexml;
$whatpulse = $sxml->xml_load_file($ext_info['path'].'/cache/'.$uid.'.lptmp');
array_insert($forum_page['author_info'], 99, '<li>Whatpulse rank: <span>'.$whatpulse->Rank.'</span></li>', 'ip');
}If I use this code then the same information also comes for the next member and it should be different.