Ejemplo n.º 1
0
 /**
  * New function
  *
  * Description of new function
  *
  * @access  private
  * @param   none
  * @return  output
  */
 private function _message_view_format($messages = array())
 {
     $message_format = array();
     foreach ($messages as $key => $message) {
         $message_format[] = array('cycle' => cycle('', 'alt'), 'status' => $message['status'] == 1 ? 'read' : 'unread', 'mail_id' => $message['mail_id'], 'unread_img' => '<img src="/images/icons/newmail.png" ' . ($message['status'] == 1 ? 'style="visibility:hidden;" title="Mark as unread"' : 'title="Mark as read"') . ' />', 'subject' => $message['subject'], 'sender' => $message['username'], 'timestamp' => _datadate($message['date']));
     }
     return $message_format;
 }
Ejemplo n.º 2
0
    ?>
_headshot.png?<?php 
    echo $reply_message['last_saved_avatar'];
    ?>
" alt="" class="avatar_headshot" />
		<div style="width:500px; float:left; background:transparent; padding:8px 2px 5px 10px;">
			<div class="clearfix">
				<strong class="left" style="font-size:14px; line-height:1.8"><a href="/user/<?php 
    echo urlencode($reply_message['username']);
    ?>
"><?php 
    echo $reply_message['username'];
    ?>
</a> said:</strong>
				<span class="right" style="font-size:12px; color:#777; line-height:1.8">Received <?php 
    echo _datadate($reply_message['date']);
    ?>
</span>
			</div>
			<p>
				<?php 
    echo parse_bbcode(stripslashes(nl2br($reply_message['message'])));
    ?>
			</p>
		</div>
	</div>
<?php 
} else {
    ?>
	<?php 
    if ($ticket_data['status'] == 'solved') {
Ejemplo n.º 3
0
?>
">
	<div class="left">
		<a href="<?php 
echo site_url('user/' . urlencode($post['username']));
?>
">
			<img src="/images/avatars/<?php 
echo $post['user_id'];
?>
.png" alt="" class="topic_avatar" width="180" height="270" />
		</a>
	</div>
	<div class="post-toolbar">
        <span class="left">Posted <?php 
echo _datadate($post['post_time']);
?>
</span>
		<span class="right">
		<a href="#message" onclick="quote_post(<?php 
echo urlencode($post['post_id']);
?>
);" title="Quote post">Quote</a> |
    		<?php 
echo anchor('user/' . urlencode($post['username']), 'View Profile');
?>
    		<?php 
echo user_online($post['last_action']);
?>
		</span>
	</div>
Ejemplo n.º 4
0
				<a href="<?php 
echo site_url('user/' . urlencode($mail['username']));
?>
">
					<img src="/images/avatars/<?php 
echo $mail['user_id'];
?>
.png?<?php 
echo $mail['last_saved_avatar'];
?>
" alt="" class="topic_avatar" width="180" height="270" />
				</a>
			</div>
			<div class="post-toolbar">
		        <span class="left">Received <?php 
echo _datadate($mail['date']);
?>
</span>
				<span class="right">
		    		<?php 
echo anchor('user/' . urlencode($mail['username']), 'View Profile');
?>
				</span>
			</div>
			<div class="post-content">
				<span class="post_author">
				    <span class="reply_at"><?php 
echo $mail['username'];
?>
</span> said:
				</span>
Ejemplo n.º 5
0
							<a href="<?php 
    echo site_url('user/' . urlencode($comment['username']));
    ?>
" style="color:<?php 
    echo user_color($comment['user_level']);
    ?>
; font-weight:bold;" ><?php 
    echo $comment['username'];
    ?>
</a> said: <br />
							<p>
								<?php 
    echo stripslashes(nl2br($comment['comment_text']));
    ?>
								<small>(<?php 
    echo _datadate($comment['comment_time']);
    ?>
)</small>
							</p>
							<?php 
    if ($comment['modify']) {
        ?>
								<a href="/profile/comment/delete/<?php 
        echo $comment['comment_id'];
        ?>
" style="color:#ff7c7c" class="delete small"> (Delete)</a>
							<?php 
    }
    ?>
							</li>
						<?php 
Ejemplo n.º 6
0
    /**
     * New function
     *
     * Description of new function
     *
     * @access  public
     * @param   none
     * @return  output
     */
    public function load_more_comments($user_id = 0, $messages_loaded = 0)
    {
        // if( ! $this->input->if_ajax()) die("Error: AJAX REQUEST MISSING");
        if (!isset($this->system->userdata['user_id'])) {
            $this->system->userdata['user_id'] = 0;
            $this->system->userdata['user_level'] = 'user';
        }
        $profile_comments = $this->db->select('profile_comments.*, users.username, users.user_id, users.user_level')->select('IF(profile_comments.comment_author = ' . $this->system->userdata['user_id'] . ', 1, 0) as modify', FALSE)->join('users', 'users.user_id = profile_comments.comment_author')->limit(6, $messages_loaded)->order_by('profile_comments.comment_id', 'DESC')->get_where('profile_comments', array('comment_profile' => $user_id))->result_array();
        if ($this->system->userdata['user_level'] != 'user') {
            foreach ($profile_comments as $key => $comment) {
                $profile_comments[$key]['modify'] = 1;
            }
        }
        foreach ($profile_comments as $comment) {
            ?>
			<li id="comment-<?php 
            echo $comment['comment_id'];
            ?>
" class="<?php 
            echo $comment['comment_id'];
            ?>
">
			<img src="/images/avatars/<?php 
            echo $comment['user_id'];
            ?>
_headshot.png" width="64" height="64" alt="" class="avatar_thumb" />
			<a href="<?php 
            echo site_url('profile/view/' . urlencode($comment['username']));
            ?>
" style="color:<?php 
            echo user_color($comment['user_level']);
            ?>
; font-weight:bold;" ><?php 
            echo $comment['username'];
            ?>
</a> said: <br />
			<p>
				<?php 
            echo stripslashes(nl2br($comment['comment_text']));
            ?>
				<small>(<?php 
            echo _datadate($comment['comment_time']);
            ?>
)</small>
			</p>
			<?php 
            if ($comment['modify']) {
                ?>
				<a href="/profile/comment/delete/<?php 
                echo $comment['comment_id'];
                ?>
" style="color:#ff7c7c" class="delete small"> (Delete)</a>
			<?php 
            }
            ?>
			</li>
		<?php 
        }
    }