Esempio n. 1
0
 //Format the content with bbcode
 $rf_p_content_bb = BBCode::getHtml($rf_p_content);
 echo "<div class='col-lg-3 col-md-3 col-sm-3 hidden-xs' style='padding-top: 8px; padding-bottom: 8px; float: left; padding-bottom: 1500px; margin-bottom: -1500px; text-align: left; border-right: 1px solid #cccccc;'>";
 // Display User's Stats
 // Check to see if user has a profile image
 $user_image_display = CurrentUserData::getUserImage($rf_p_user_id);
 $user_signup_display = CurrentUserData::getSignUp($rf_p_user_id);
 $user_total_posts = ForumStats::getTotalPosts($rf_p_user_id);
 if (!empty($user_image_display)) {
     echo "<img src='" . $user_image_display . "' class='img-responsive' style='margin-bottom: 2px'>";
 } else {
     echo "<span class='glyphicon glyphicon-user icon-size' style='margin-bottom: 2px'></span>";
 }
 echo " <strong><a href='" . DIR . "Profile/" . $rf_p_user_name . "' class='btn btn-xs btn-default'>{$rf_p_user_name}</a></strong> <Br>";
 // Show user's membership status
 foreach (CurrentUserData::getUserGroups($rf_p_user_id) as $row) {
     echo "<font size='2'>" . $row . "</font><br>";
 }
 echo "<font size='1'>";
 echo "<strong>Total Posts</strong>: {$user_total_posts}<br>";
 echo "<strong>Joined</strong>: {$user_signup_display}";
 echo "</font>";
 echo " <a href='" . DIR . "Profile/{$rf_p_user_name}' class='btn btn-xs btn-default'>Profile</a> ";
 // Check to see if current user is logged in... if not then hide the pm button
 if (!empty($data['current_userID'])) {
     echo " <a href='" . DIR . "NewMessage/{$rf_p_user_name}' class='btn btn-xs btn-default'>PM</a> ";
 }
 echo "</div>";
 echo "<div class='col-lg-9 col-md-9 col-sm-9' style='padding-top: 8px; padding-bottom: 8px; float: left; padding-bottom: 1500px; margin-bottom: -1500px;'>";
 // Display Post DateTime
 echo "<font size='1'><strong>Posted:</strong> " . date("F d, Y @ h:i A ", strtotime($rf_p_timestamp)) . " </font><hr style='margin-top: 0px'>";