Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to move?


  • Alex-Special-k
    Member

    @alex-special-k

    Hi all! how to move “Last discussions” to a forum bottom? i.e. that at first there were “forums” and then “last discussions”. And where to clean from a template “Popular labels” .

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)

  • Alex-Special-k
    Member

    @alex-special-k

    The problem is resolved! =)


    Alex-Special-k
    Member

    @alex-special-k

    Here the received code.

    front-page.php :

    <?php bb_get_header(); ?>

    <?php if ( bb_forums() ) : ?>

    <?php if ( $forums ) : ?>

    <?php endif; // $topics or $super_stickies ?>

    <h2><?php _e(‘Forums’); ?></h2>

    <table id=”forumlist”>

    <tr>

    <th><?php _e(‘Main Theme’); ?></th>

    <th><?php _e(‘Topics’); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    </tr>

    <?php global $bb_forums_loop; ?>

    <?php while ( bb_forum() ) : ?>

    <?php if (bb_get_forum_is_category()) : ?>

    <tr<?php bb_forum_class(‘bb-category’); ?>>

    <td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    </tr>

    <?php continue; endif; ?>

    <?php if ($bb_forums_loop->walker->depth == 1) : ?>

    <tr<?php bb_forum_class(); ?>>

    <td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    <td class=”num”><?php forum_topics(); ?></td>

    <td class=”num”><?php forum_posts(); ?></td>

    </tr>

    <?php endif; ?>

    <?php endwhile; ?>

    </table>

    <h2><?php _e(‘Latest Discussions’); ?></h2>

    <table id=”latest”>

    <tr>

    <th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    <!– <th><?php _e(‘Voices’); ?></th> –>

    <th><?php _e(‘Last Poster’); ?></th>

    <th><?php _e(‘Freshness’); ?></th>

    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big><?php topic_page_links(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <!– <td class=”num”><?php bb_topic_voices(); ?></td> –>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <!– <td class=”num”><?php bb_topic_voices(); ?></td> –>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $topics ?>

    </table>

    <?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</div>’ ) ); ?>

    <h2><?php _e(‘Hot Tags’); ?></h2>

    <p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>

    <?php if ( bb_is_user_logged_in() ) : ?>

    <div id=”viewdiv”>

    <h2><?php _e(‘Views’); ?></h2>

    <ul id=”views”>

    <?php foreach ( bb_get_views() as $the_view => $title ) : ?>

    <li class=”view”>“><?php view_name( $the_view ); ?>

    <?php endforeach; ?>

    </div>

    <?php endif; // bb_is_user_logged_in() ?>

    <?php else : // $forums ?>

    <div class=”bbcrumb”>“><?php bb_option(‘name’); ?> » <?php _e(‘Add New Topic’); ?></div>

    <?php post_form(); endif; // $forums ?>

    <?php bb_get_footer(); ?>


    chrishajer
    Participant

    @chrishajer


    Alex-Special-k
    Member

    @alex-special-k

    chrishajer, thank u!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.