Example #1
0
                    <strong><?php 
        echo $words->get("forum_label_tags");
        ?>
:</strong>
                    <?php 
        echo $breadcrumb;
        ?>
                </p>
            <?php 
    }
    ?>
        </div>
        <?php 
    $topic->topicinfo->IsClosed = false;
    if ($topic->topicinfo->expiredate != "0000-00-00 00:00:00") {
        echo "&nbsp;&nbsp;&nbsp;<span class=\"forumsthreadtags\"><strong> expiration date :", ServerToLocalDateTime($topic->topicinfo->expiredate), "</strong>";
        $topic->topicinfo->IsClosed = strtotime($topic->topicinfo->expiredate) <= time();
    }
    if ($topic->topicinfo->IsClosed) {
        echo " &nbsp;&nbsp;&nbsp;<span class=\"forumsthreadtags\"><strong> this thread is closed</strong>";
    }
    ?>
        <?php 
    if ($User) {
        ?>

            <div id="forumsthreadreplytop">
                <?php 
        if (isset($topic->isGroupSubscribed) && $topic->isGroupSubscribed) {
            if (isset($topic->IdSubscribe)) {
                if ($topic->notificationsEnabled > 0) {
        echo $group_data->getMemberCount();
        ?>
</li>
                            <li><?php 
        echo $words->get('GroupsDateCreation');
        ?>
: <?php 
        echo $group_data->created;
        ?>
</li>
                            <?php 
        if ($group_data !== 0) {
            ?>
                            <li><?php 
            if ($group_data->latestPost) {
                echo $words->get('GroupsLastPost') . ": " . date($words->getBuffered('DateHHMMShortFormat'), ServerToLocalDateTime($group_data->latestPost));
            } else {
                echo $words->get('GroupsNoPostYet');
            }
        }
        ?>
                        </ul>
                    </div> <!-- groupinfo -->
                </div> <!-- groupbox -->
            <?php 
    }
    ?>
</div> <!-- floatbox -->
            <?php 
    $this->pager->render();
    ?>
Example #3
0
</td>
                <td class="forumsboardthreadauthor"><a href="bw/member.php?cid=<?php 
    echo $thread->first_author;
    ?>
"><?php 
    echo $thread->first_author;
    ?>
</a></td>
                <td class="forumsboardthreadviews"><?php 
    echo number_format($thread->views);
    ?>
</td>
                <td class="forumsboardthreadlastpost">
                    <span class="small grey"><?php 
    //                  echo "#### [",$thread->last_create_time,"] " ;
    echo date($words->getFormatted('DateHHMMShortFormat'), ServerToLocalDateTime($thread->last_create_time));
    ?>
</span><br />
                    <a href="bw/member.php?cid=<?php 
    echo $thread->last_author;
    ?>
"><?php 
    echo $thread->last_author;
    ?>
</a>
                    <a href="<?php 
    echo $last_url;
    ?>
"><img src="styles/css/minimal/images/iconsfam/bullet_go.png" alt="<?php 
    echo $words->getBuffered('to_last');
    ?>
Example #4
0
        echo $words->getSilent('by');
        ?>
 <a href="members/<?php 
        echo $thread->last_author;
        ?>
"><?php 
        echo $thread->last_author;
        ?>
</a>
                    <?php 
        if ($thread->IdGroup > 0 && $showGroups) {
            echo $words->getFormatted('in') . ' <a href="groups/' . $thread->IdGroup . '/" title="' . $words->getSilent('Group') . ": " . $thread->GroupName . '">' . MOD_layoutbits::truncate($thread->GroupName, 13);
        }
        ?>
                    <?php 
        echo '</a> - <span title="' . date($words->getSilent('DateHHMMShortFormat'), ServerToLocalDateTime($thread->last_create_time)) . '"><a href="' . $last_url . '" class="grey">' . $layoutbits->ago($thread->last_create_time) . '</a></span>';
        ?>
                    </span>
                    <a href="<?php 
        echo $last_url;
        ?>
"><img src="styles/css/minimal/images/iconsfam/bullet_go.png" alt="<?php 
        echo $words->getBuffered('to_last');
        ?>
" title="<?php 
        echo $words->getBuffered('to_last');
        ?>
" align="absmiddle" /></a><?php 
        echo $words->flushBuffer();
        ?>
                </td>
Example #5
0
//echo "[",$post->posttime,"]",$words->getFormatted('DateHHMMShortFormat') ;
echo $words->getFormatted('posted');
?>
 <?php 
echo date($words->getBuffered('DateHHMMShortFormat'), ServerToLocalDateTime($post->posttime));
echo $words->flushBuffer() . "  &nbsp;&nbsp; " . $words->getFormatted("forum_label_visibility") . ": " . $words->getFormatted("forum_edit_vis_" . $post->PostVisibility);
$max = 0;
if (!empty($post->Trad)) {
    $max = count($post->Trad);
}
for ($jj = 0; $jj < $max and $topic->WithDetail; $jj++) {
    // Not optimized, it is a bit stupid to look in all the trads here
    if ($post->Trad[$jj]->trad_created != $post->Trad[$jj]->trad_updated) {
        // If one of the trads have been updated
        if ($post->Trad[$jj]->IdLanguage == $_SESSION["IdLanguage"]) {
            echo "<br /><em>last edited on ", date($words->getFormatted('DateHHMMShortFormat'), ServerToLocalDateTime($post->Trad[$jj]->trad_updated)), " by ", $post->Trad[$jj]->TranslatorUsername, "</em>";
        }
    }
}
?>
        </p> <!-- forumstime -->

        <p class="forumsedit">
        <?php 
if ($can_edit_own && $post->OwnerCanStillEdit == "Yes" && $User && $post->IdWriter == $_SESSION["IdMember"]) {
    echo '<a href="forums/edit/m' . $post->postid . '"><img src="images/icons/comment_edit.png" alt="edit" />' . $words->getFormatted('forum_EditUser') . '</a>&nbsp;&nbsp;<a href="forums/translate/m' . $post->postid . '"><img src="images/icons/world_edit.png" alt="translate" />' . $words->getFormatted('forum_TranslateUser') . '</a>&nbsp;&nbsp;';
}
if ($this->BW_Right->HasRight("ForumModerator", "Edit") || $this->BW_Right->HasRight("ForumModerator", "All")) {
    //                 echo ' [<a href="forums/modedit/m'.$post->postid.'">Mod Edit</a>]';
    echo '<a href="forums/modfulleditpost/' . $post->postid . '"><img src="images/icons/group_edit.png" alt="adminedit" />Admin Edit</a>';
}