UAP 4 Documentation - CurrentUserData

Welcome to UAP Docs - CurrentUserData

CurrentUserData Library


This Library was designed to display user information within forums posts based on the user's ID.

It can be used within Views.

use Libs\CurrentUserData;

// Displays Username
$username = CurrentUserData::getUserName($userID);
// Output Username
echo $username;

// Get User's Profile Image
$user_image_display = CurrentUserData::getUserImage($userID);
// Output User's Profile Image
echo "<img src='".DIR.$user_image_display."' class='img-responsive' style='margin-bottom: 2px'>";

// Get User's SignUp Date
$user_signup_display = CurrentUserData::getSignUp($userID);
// Ouput User's SignUp Date
echo $user_signup_display;

// Get and Ouput User's Group(s)
foreach(CurrentUserData::getUserGroups($userID) as $row){ echo "".$row."
"; }; // Get User's Signature $user_signature = CurrentUserData::getUserSignature($data['topic_creator']); // Output User's Signnature if(!empty($user_signature)){ echo "<hr style='margin-bottom: 0px'><font size='1'><i>Signature</i></font><hr style='margin-top: 0px'> $user_signature"; }

- Can't find what your looking for? Please use Forum.

UAP 4 Documentation - CurrentUserData

Title
Statistics
Last Reply
Forum Permissions
You cannot post in this forum.
You cannot moderate this forum.
You cannot administrate this forum.