09-10-2012, 01:06 PM
Do it yourself its realy Simple.
You must only definite a single User Data like User Code or Login Name.
Create a Variable {userid} end definite this Variable for to User Code or Login name.
a lil Example from Max´s Old Homepage.
if( $User->LoggedIn == true )
{
// fetch account info
$mysql = mysql_select_db( $SiteSQL["config-database_auth"] , $Site_sqlcon) or die( mysql_error() );
$account_info = mysql_query("SELECT user_code, user_id FROM bg_user WHERE user_code = ". $User->ID ."");
$account = mysql_fetch_array( $account_info );
mysql_close($mysql);
// Cash
$mysql = mysql_select_db( $SiteSQL["config-database_auth"] , $Site_sqlcon) or die( mysql_error() );
$cash1 = mysql_query("SELECT cash FROM bg_user WHERE user_code = ". $User->ID ."");
while( $cash2 = mysql_fetch_array( $cash1 ) )
{
$tpl->assignGlobal("User_Cash" , htmlspecialchars( $cash2['cash'] ) );
}
mysql_close($mysql);
