Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: 1970 issue

@electroniques

Member

Hey.

I checked the Database time and it is correct.

So it must be some theme/bbpress related error.

Here’s my search.php:

<?php bb_get_header(); ?>

<h3 class=”bbcrumb”>“><?php option(‘name’); ?> » <?php _e(‘Search’)?></h3>

<?php search_form( $q ); ?>

<?php if ( !empty ( $q ) ) : ?>

<h2><?php _e(‘Search for’)?> “<?php echo wp_specialchars($q); ?>”</h2>

<?php endif; ?>

<?php if ( $users ) : ?>

<h2><?php _e(‘Users’)?></h2>

<?php endif; ?>

<?php if ( $titles ) : ?>

<h2><?php _e(‘Thread title matches’)?></h2>

    <?php

    foreach ( $titles as $topic ) :

    $count = $topic->topic_posts;

    ?>

  1. <h4>“><?php topic_title(); ?></h4>

    <small><?php printf(__(‘ %1$d replies — Last reply: %2$s’), $count, get_topic_date(__(‘F j, Y’), $topic->topic_id) ) ?> </small>

  2. <?php endforeach; ?>

<?php endif; ?>

<?php if ( $recent ) : ?>

<h2><?php _e(‘Recent Posts’)?></h2>

<ol class=”results”>

<?php foreach ( $recent as $bb_post ) : ?>

  • <h4>“><?php topic_title($bb_post->topic_id); ?></h4>

    <p><?php echo show_context($q, $bb_post->post_text); ?></p>

    <p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>

  • <?php endforeach; ?>

    <?php endif; ?>

    <?php if ( $relevant ) : ?>

    <h2><?php _e(‘Relevant posts’)?></h2>

    <ol class=”results”>

    <?php foreach ( $relevant as $bb_post ) : ?>

  • <h4>“><?php topic_title($bb_post->topic_id); ?></h4>

    <p><?php echo show_context($q, $bb_post->post_text); ?></p>

    <p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>

  • <?php endforeach; ?>

    <?php endif; ?>

    <?php if ( !$topics && !$recent && !$relevant && !users) : ?>

    <p><?php _e(‘No results found.’) ?></p>

    <?php endif; ?>

    <p><?php printf(__(‘You may also try your search at Google‘), bb_get_option(‘uri’), urlencode($q)) ?></p>

    <?php bb_get_footer(); ?>

    </code

    Skip to toolbar