コード例 #1
0
ファイル: topic.php プロジェクト: davarravad/UserApplePie-v-2
 echo "<div class='col-lg-6 col-md-6 col-sm-6'>";
 echo " Reply By: ";
 // Show user main pic
 echo " <a href='" . DIR . "Profile/{$rf_p_user_id}/'>{$rf_p_user_name}</a> ";
 echo "</div>";
 echo "<div class='col-lg-6 col-md-6 col-sm-6' style='text-align:right'>";
 // Display how long ago this was posted
 $timestart = "{$rf_p_timestamp}";
 //Time of post
 echo "<font color=green> " . TimeDiff::dateDiff("now", "{$timestart}", 1) . " ago</font> ";
 echo "</div>";
 echo "</div>";
 echo "</div>";
 echo "<div class='panel-body forum' style='overflow: hidden; height: auto; padding: 0px;'>";
 //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>";
コード例 #2
0
 /**
  * Get current user's signature from database
  */
 public static function getUserSignature($where_id)
 {
     $data = self::$db->select("SELECT signature FROM " . PREFIX . "users_extprofile WHERE userID = :userID", array(':userID' => $where_id));
     $signature_data = BBCode::getHtml($data[0]->signature);
     return $signature_data;
 }