Skip to:
Content
Pages
Categories
Search
Top
Bottom

Lost all of my sticky posts


  • ChadTheDJ
    Member

    @chadthedj

    Can anyone check my code and see what I am doing wrong?

    Front-Page.php:

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id=”discussions”>

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

    <h2><?php _e(‘Minecraft: The Server Review Forums’); ?></h2>

    <table id=”forumlist”>

    <tr>

    <th style=”text-align: left !important;”><?php _e(‘Categories’); ?></th>

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

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

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

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

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

    </tr>

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

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

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

    <td colspan=”6″><?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; ?>

    <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” width=”15%”>“><?php forum_last_poster(); ?></td>

    <td class=”num” width=”10%”><?php topic_time(); ?></td>

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

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

    <td class=”num” width=”10%”><?php echo bb_number_format_i18n($GLOBALS->views); ?></td>

    </tr>

    <?php endwhile; ?>

    </table>

    <?php if ( $topics || $super_stickies ) : ?>

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

    <table id=”latest”>

    <tr>

    <th style=”text-align: left !important;”><?php _e(‘Topic’); ?> — <?php new_topic(); ?></th>

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

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

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

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

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

    </tr>

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

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

    <td><?php _e(‘Sticky:’); ?> <big>“><?php topic_title(); ?></big></td>

    <td class=”num” width=”15%”>“><?php topic_author() ?></th>

    <td class=”num” width=”15%”>“><?php topic_last_poster(); ?></td>

    <td class=”num” width=”10%”><?php topic_time(); ?></td>

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

    <td class=”num” width=”10%”><?php show_view_count(); ?></td>

    </tr>

    <?php endforeach; endif; ?>

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

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

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

    <td class=”num” width=”15%”>“><?php topic_author() ?></th>

    <td class=”num” width=”15%”>“><?php topic_last_poster(); ?></td>

    <td class=”num” width=”10%”><?php topic_time(); ?></td>

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

    <td class=”num” width=”10%”><?php show_view_count(); ?></td>

    </tr>

    <?php endforeach; endif; ?>

    </table>

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

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

    <div id=”hottags” role=”main”>

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

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

    </div>

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

    <?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() ?>

    <div id=”viewdiv”>

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

    <ul id=”views”>

    <li class=”view”>Online now: <?php do_action(‘members_online_now’,”); ?>

    <li class=”view”>Online today: <?php do_action(‘members_online_today’,”); ?>

    </div>

    </div>

    <?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(); ?>

    forum.php

    <?php bb_get_header(); ?>

    <div class=”bbcrumb”>“><?php bb_option(‘name’); ?><?php bb_forum_bread_crumb(); ?></div>

    <?php if ( $topics || $stickies ) : ?>

    <table id=”latest”>

    <tr>

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

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

    <th><?php _e(‘Views’); ?></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 _e(‘Sticky:’); ?> <big>“><?php topic_title(); ?></big></td>

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

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

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

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

    </tr>

    <?php endforeach; endif; ?>

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

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

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

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

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

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

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

    </tr>

    <?php endforeach; endif; ?>

    </table>

    <p class=”rss-link”>” class=”rss-link”><?php _e(‘<abbr title=”Really Simple Syndication”>RSS</abbr> feed for this forum’); ?></p>

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

    <?php endif; ?>

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

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

    <table id=”forumlist”>

    <tr>

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

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

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

    </tr>

    <?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; ?>

    <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 endwhile; ?>

    </table>

    <?php endif; ?>

    <?php post_form(); ?>

    <?php bb_get_footer(); ?>

  • You must be logged in to reply to this topic.