foreach ($this->postings as $posting) { ?> <tr> <td width="100" align="center" valign="top" class="cofiThreadTableRow<?php echo $rowColor; ?> cofiThreadBorder1" > <?php // show avatar and username echo "<div class='cofiAvatarBox'>"; $CofiUser = new CofiUser($posting->user_id); // get $post->username; // $opUserUsername = $CofiHelper->getUsernameById( $posting->user_id); $opUserUsername = $CofiUser->getUsername(); if ($CofiUser->getAvatar() == "") { // display default avatar echo "<img src='" . $_root . "components/com_discussions/assets/users/user.png' class='cofiAvatar' alt='{$opUserUsername}' title='{$opUserUsername}' />"; } else { // display uploaded avatar echo "<img src='" . $_root . "images/discussions/users/" . $posting->user_id . "/large/" . $CofiUser->getAvatar() . "' class='cofiAvatar' alt='{$opUserUsername}' title='{$opUserUsername}' />"; } echo "</div>"; // display social media buttons $twitter = $CofiUser->getTwitter(); $facebook = $CofiUser->getFacebook(); $flickr = $CofiUser->getFlickr(); $youtube = $CofiUser->getYoutube(); if ($twitter != "" || $facebook != "" || $flickr != "" || $youtube != "" || $_usePrimezilla == "1") { echo "<div class='cofiSocialMediaBox'>";
<?php $rowColor = 1; foreach ($this->postings as $posting) { ?> <tr> <td align="center" class="cofiIndexTableRow<?php echo $rowColor; ?> cofiIndexTableRowReplies"> <?php $CofiUser = new CofiUser($posting->user_id); // $entryUsername = $CofiHelper->getUsernameById( $posting->user_id); $entryUsername = $CofiUser->getUsername(); echo "<div class='cofiCategoryAvatarBox'>"; if ($CofiUser->getAvatar() == "") { // display default avatar echo "<img src='" . $_root . "components/com_discussions/assets/users/user.png' class='cofiCategoryDefaultAvatar' alt='" . $entryUsername . "' title='" . $entryUsername . "' />"; } else { // display uploaded avatar echo "<img src='" . $_root . "images/discussions/users/" . $posting->user_id . "/small/" . $CofiUser->getAvatar() . "' class='cofiCategoryAvatar' alt='" . $entryUsername . "' title='" . $entryUsername . "' />"; } echo "</div>"; ?> </td>
</td> <td width="200" align="center" class="cofiIndexTableRow<?php echo $rowColor; ?> cofiIndexTableRowLastPost"> <table width="100%" cellspacing="0" cellpadding="0" border="0" class="noborder"> <tr> <td width="32" align="left" class="noborder"> <?php $CofiUser = new CofiUser($thread->last_entry_user_id); echo "<div class='cofiCategoryAvatarBox'>"; // $lastEntryUserUsername = $CofiHelper->getUsernameById( $thread->last_entry_user_id); $lastEntryUserUsername = $CofiUser->getUsername(); if ($CofiUser->getAvatar() == "") { // display default avatar echo "<img src='" . $_root . "components/com_discussions/assets/users/user.png' class='cofiCategoryDefaultAvatar' alt='{$lastEntryUserUsername}' title='{$lastEntryUserUsername}' />"; } else { // display uploaded avatar echo "<img src='" . $_root . "images/discussions/users/" . $thread->last_entry_user_id . "/small/" . $CofiUser->getAvatar() . "' class='cofiCategoryAvatar' alt='{$lastEntryUserUsername}' title='{$lastEntryUserUsername}' />"; } echo "</div>"; ?> </td> <td align="left" valign="center" class="noborder" style="padding-left: 5px;"> <?php echo $thread->last_entry_date; ?> <br />