예제 #1
0
 } else {
     // Mod/Admin has disallowed this reply.  Show message
     echo " <strong><font color='red'>This Reply Has Been Disabled By Mod/Admin.  Contact Mod/Admin for more information.</font></strong> ";
     echo "<hr>";
     echo "<b>Reply Hidden By</b>: {$rf_p_user_name} <b>@</b> {$rf_p_hide_timestamp}";
 }
 echo "</div>";
 echo "</div>";
 echo "<div class='panel-footer' style='text-align:right'>";
 echo "<div class='row'>";
 echo "<div class='col-lg-6 col-md-6 col-sm-6' style='text-align:left'>";
 if ($rf_p_edit_date != NULL) {
     // Display how long ago this was posted
     $timestart = "{$rf_p_edit_date}";
     //Time of post
     echo " <font color=red>Edited</font> <font color=red> " . TimeDiff::dateDiff("now", "{$timestart}", 1) . " ago</font> ";
 }
 echo "</div>";
 echo "<div class='col-lg-6 col-md-6 col-sm-6' style='text-align:right'>";
 //Start Sweet
 $sweet_url = "Topic/" . $data['topic_id'] . "/" . $data['current_page'] . "/#topicreply" . $rf_p_main_id;
 echo Sweets::displaySweetsButton($data['topic_id'], 'Forum_Topic_Reply', $data['current_userID'], $rf_p_main_id, $sweet_url);
 echo Sweets::getSweets($data['topic_id'], 'Forum_Topic_Reply', $rf_p_main_id);
 // If user owns this content show forum buttons for edit and delete
 // Hide button if they are currently editing this reply
 if ($data['action'] != "edit_reply" && $data['action'] != "edit_topic" && $data['current_userID'] == $rf_p_user_id && $rf_p_allow == "TRUE") {
     echo Form::open(array('method' => 'post', 'action' => '#topicreply' . $rf_p_main_id, 'style' => 'display:inline'));
     // Topic Reply Edit True
     echo "<input type='hidden' name='action' value='edit_reply' />";
     // Topic Reply ID for editing
     echo "<input type='hidden' name='edit_reply_id' value='" . $rf_p_main_id . "' />";
예제 #2
0
    // Display total topic replys
    echo "<div class='btn btn-info btn-xs'>";
    echo "Replies <span class='badge'>{$row2->total_topic_replys}</span>";
    echo "</div>";
    // Display total sweets
    echo Sweets::getTotalSweets($f_p_id, 'Forum_Topic', 'Forum_Topic_Reply');
    // Display total views
    echo "<div class='btn btn-info btn-xs'> Views <span class='badge'>";
    echo PageViews::views('false', $f_p_id, 'Forum_Topic', $data['current_userID']);
    echo "</span></div>";
    // 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 "<Br> Last Reply by <a href='" . DIR . "Profile/{$row2->LR_UserID}/' style='font-weight: bold'>{$rp_user_name2}</a> " . TimeDiff::dateDiff("now", "{$row2->LR_TimeStamp}", 1) . " ago ";
    }
    echo "</div>";
    echo "</div>";
    echo "</div></td></tr>";
}
// End query
echo "</table>";
// Display Create New Topic Button if user is logged in
if (isset($data['current_userID'])) {
    echo "<a class='btn btn-sm btn-success' href='" . DIR . "NewTopic/" . $data['current_topic_id'] . "'>";
    echo "Create New Topic";
    echo "</a>";
}
// Display Paginator Links
// Check to see if there is more than one page
예제 #3
0
        echo "<br>";
        //Display how long ago this was posted
        $timestart = $f_p_timestamp;
        //Time of post
        echo " <font color=green> " . TimeDiff::dateDiff("now", "{$timestart}", 1) . " ago</font> ";
        //echo "($f_p_timestamp)"; // Test timestamp
        unset($timestart, $f_p_timestamp);
        echo "</ul>";
    } else {
        $rp_user_name2 = CurrentUserData::getUserName($rp_user_id2);
        //If reply show the following
        echo "<ul class='list-group-item'>";
        echo "<a href='" . DIR . "Profile/{$rp_user_id2}/'>{$rp_user_name2}</a> posted on.. <br>";
        echo "<strong>";
        echo "<a href='" . DIR . "Topic/{$f_p_id}/' title='{$f_p_title}' ALT='{$f_p_title}'>{$f_p_title}</a>";
        echo "</strong>";
        //Display how long ago this was posted
        $timestart = $rp_timestamp2;
        //Time of post
        echo "<br><font color=green> " . TimeDiff::dateDiff("now", "{$timestart}", 1) . " ago</font> ";
        unset($timestart, $rp_timestamp2);
        echo "</ul>";
    }
    // End reply check
}
// End query
?>
    </ul>
  </div>
</div>