Ejemplo n.º 1
0
$words = new MOD_words();
$layoutbits = new MOD_layoutbits();
?>


<?php 
$uri = ForumsView::getURI();
if ($threads = $boards->getThreads()) {
    ?>

<table class="forumsboardthreads floatbox">

<?php 
    $threadsliced = array_slice($threads, 0, 5);
    foreach ($threadsliced as $cnt => $thread) {
        $url = ForumsView::threadURL($thread);
        if ($url[0] == 's') {
            // JeanYves Hack/Fix to be sure that forums/ is written in the beginning of the links !
            $url = "forums/" . $url;
        }
        $max = $thread->replies + 1;
        $maxPage = ceil($max / $this->_model->POSTS_PER_PAGE);
        $last_url = $url . ($maxPage != 1 ? '/page' . $maxPage : '') . '/#post' . $thread->last_postid;
        ?>
            <tr>
                <td class="forumsboardthreadtitle"><?php 
        echo '<img src="styles/css/minimal/images/iconsfam/comment_add.png" alt="' . $words->getBuffered('tags') . '" title="' . $words->getBuffered('tags') . '" />' . $words->flushBuffer();
        ?>
                    <?php 
        if ($thread->ThreadDeleted == 'Deleted') {
            echo "[Deleted]";
Ejemplo n.º 2
0
:</strong>
                    <a href="groups/<?php 
        echo $this->_model->getGroupName($topic->topicinfo->IdGroup);
        ?>
">
                        <?php 
        echo $this->_model->getGroupName($topic->topicinfo->GroupName);
        ?>
                    </a>
                </p>
                <?php 
    }
    ?>

            <?php 
    $url = ForumsView::getURI() . '';
    $breadcrumb = '';
    // Append slash to URL if it's not there yet
    if (substr($url, -1) != '/') {
        $url = $url . '/';
    }
    $replyuri = preg_replace('#/page.{1,3}/#', '/', $uri . 'reply');
    $tagBase = $url;
    if (isset($topic->topicinfo->continent) && $topic->topicinfo->continent) {
        $url = $url . 'k' . $topic->topicinfo->continent . '-' . Forums::$continents[$topic->topicinfo->continent] . '/';
        $breadcrumb .= '<a href="' . $url . '">' . Forums::$continents[$topic->topicinfo->continent] . '</a> ';
        if (isset($topic->topicinfo->countryname) && $topic->topicinfo->countryname) {
            $url = $url . 'c' . $topic->topicinfo->countrycode . '-' . $topic->topicinfo->countryname . '/';
            $breadcrumb .= '&raquo; <a href="' . $url . '">' . $topic->topicinfo->countryname . '</a> ';
            if (isset($topic->topicinfo->adminname) && $topic->topicinfo->adminname) {
                $url = $url . 'a' . $topic->topicinfo->admincode . '-' . $topic->topicinfo->adminname . '/';
Ejemplo n.º 3
0
}
if ($can_del) {
    if ($post->postid == $topic->topicinfo->first_postid) {
        $title = $words->getFormatted('del_topic_href');
        $warning = $words->getFormatted('del_topic_warning');
    } else {
        $title = $words->getFormatted('del_post_href');
        $warning = $words->getFormatted('del_post_warning');
    }
    echo ' [<a href="forums/delete/m' . $post->postid . '" mouseover="return confirm(\'' . $warning . '\');">' . $title . '</a>]';
}
if (isset($post->title) && $post->title) {
    // This is set if it's a SEARCH
    echo $words->getFormatted('search_topic_text');
    //                echo ' <b>'.$post->title.'</b> &mdash; <a href="'.ForumsView::postURL($post).'">'.$words->getFormatted('search_topic_href').'</a>';
    echo ' <strong><a href="' . ForumsView::postURL($post) . '">' . $words->fTrad($post->IdTitle) . '</a></strong>';
}
?>
        </p>
        </div>

        <?php 
// Todo : find a way to land here with a $topic variable well initialized
if ($topic->WithDetail) {
    // If the details of trads are available, we will display them
    if ($post->PostDeleted == "Deleted") {
        echo "[Deleted]";
    }
    // If current user has a moderator right, he can see the post
    if ($post->PostDeleted != "Deleted" or $this->BW_Right->HasRight("ForumModerator")) {
        $PostMaxTrad = 0;