Skip to:
Content
Pages
Categories
Search
Top
Bottom

1970 issue

Viewing 8 replies - 1 through 8 (of 8 total)
  • @vafaaaan

    Member

    db table bb_topics -> row topic_time is datetime and picks time from server ? check if server time is correct .. maybe

    did you add the topic manually?

    @chrishajer

    Participant

    I reported a similar problem for the bbPress plugin forum about 6 weeks ago, but there is no action on the ticket.

    https://trac.bbpress.org/ticket/753

    My guess is the template is calling the wrong time/timestamp function since it doesn’t happen with the stock kakumei theme.

    @livibetter

    Member

    Could you post the search.php in your template? and check database to ensure the time is correct in database.

    @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

@livibetter

Member

This is quite old (check this diff)

<?php echo date(__('F j, Y, h:i A'), bb_get_post_time()); ?>

replace it with

<?php bb_post_time( __('F j, Y, h:i A') ); ?>

You are using 0.8.3, right? You should use an updated theme.

@electroniques

Member

Hey.

Yes, that’s it.

Works like a charm now!

And yes again, I’m using 0.8.3, but switching to a different theme is close to impossible since I have modified it so heavily to match my WordPress-Blog.

Thanks a lot!

@livibetter

Member

I see.

There are some useless code in search.php, like $users and $titles. They are not used in 0.8.3. If you can’t switch to an updated template, then you should diff to find out what has been changed.

@chrishajer

Participant

Now the plugin browser theme just needs to be fixed :)

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar