Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header( );?>
- <p><?php if( user( ) ): echo '<a href="/boards.php?new&forum=' . $forum_row['forum_id'] . '">New Thread</a>'; else: echo 'Only members can post. <a href="/register.php">Join?</a>'; endif; ?></p>
- <h2><a href="/boards.php">Boards</a> / <?php echo $forum_row['forum_name']; ?></h2>
- <?php
- while( $thread_row = mysql_fetch_array( $thread_select ) ) {
- $thread_id = $thread_row['thread_id'];
- $reply = mysql_query( "SELECT `user_id` FROM `jammy_reply` WHERE `thread_id` = '$thread_id'" ) or die( mysql_error( ) ); if( mysql_num_rows( $reply ) > 0 ): $row = mysql_fetch_array( $reply ) echo " <span style=\"float: right\">last reply by " . $row['user_id'] . "</span>"; endif;
- echo " <p><a href=\"/boards.php?thread=" . $thread_row['thread_id'] . "\">" . $thread_row['thread_subject'] . "</a> posted by " . user_data( 'alias', $thread_row['user_id'] ) . ", " . time_since( $thread_row['thread_date'] ) . "</p>\n";
- }
- ?>
- <?php get_footer( ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement