Exemplo n.º 1
0
 // Display total replys
 // Display total topic replys
 echo "<div class='btn btn-info btn-xs' style='margin-bottom: 3px'>";
 echo "Replies <span class='badge'>{$row2->total_topic_replys}</span>";
 echo "</div>";
 echo " ";
 // Display total sweets
 echo Sweets::getTotalSweets($f_p_id, 'Forum_Topic', 'Forum_Topic_Reply');
 echo " ";
 // Display total views
 echo "<div class='btn btn-info btn-xs' style='margin-top: 3px'> Views <span class='badge'>";
 echo PageViews::views('false', $f_p_id, 'Forum_Topic', $data['current_userID']);
 echo "</span></div> ";
 // Display total images
 echo "<div class='btn btn-success btn-xs' style='margin-top: 3px'> Images <span class='badge'>";
 echo Images::getImageCountForum('Topic', $f_p_id);
 echo "</span></div>";
 echo "</div>";
 echo "<div class='col-md-3 col-sm-3 col-xs-6' style='text-align: right'>";
 // Check to see if there has been a reply for this topic.  If not then don't show anything.
 if (isset($row2->LR_UserID)) {
     // Display Last Reply User Name
     $rp_user_name2 = CurrentUserData::getUserName($row2->LR_UserID);
     //Display how long ago this was posted
     echo " Last Reply by <br> <a href='" . DIR . "Profile/{$row2->LR_UserID}/' style='font-weight: bold'>{$rp_user_name2}</a><br> " . TimeDiff::dateDiff("now", "{$row2->LR_TimeStamp}", 1) . " ago ";
 }
 echo "</div>";
 echo "</div>";
 // For small devices hides extra info
 echo "<div id='Bar{$f_p_id}' class='collapse hidden-sm hidden-md hidden-lg'>";
 echo "<div class='col-xs-12'>";
Exemplo n.º 2
0
    echo "<b>Topic Hidden By</b>: " . $hidden_userName . " <b>@</b> " . $data['hidden_timestamp'] . "<br>";
    echo "<b>Reason</b>: " . $data['hidden_reason'];
}
?>
		</div>
		<div class='panel-body'>
			<?php 
// Check to see if topic is allowed
if ($data['topic_allow'] == "TRUE") {
    // Display Views Count
    echo "<div class='btn btn-xs btn-info'>Views <span class='badge'>" . $data['PageViews'] . "</span></div>";
    // Display Total Sweets Count for Topic and All Replys
    echo Sweets::getTotalSweets($data['topic_id'], 'Forum_Topic', 'Forum_Topic_Reply');
    // Display total images
    echo "<div class='btn btn-success btn-xs'> Images <span class='badge'>";
    echo Images::getImageCountForum('Topic', $data['topic_id']);
    echo "</span></div>";
    echo "<hr>";
    // Topic Display
    echo "<div class='panel panel-default'>";
    echo "<div class='panel-heading'>";
    echo "<div class='row'>";
    echo "<div class='col-lg-6 col-md-6 col-sm-6'>";
    // Show user main pic
    // Get user name from userID
    $f_p_user_name = CurrentUserData::getUserName($data['topic_creator']);
    echo " <a href='" . DIR . "Profile/{$f_p_user_name}/'>{$f_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
    $data_topic_date = $data['topic_date'];