Ashish Kumar (Ashfame) (@ashfame)

Forum Replies Created

Viewing 25 replies - 726 through 750 (of 938 total)
  • @ashfame

    Participant

    Don’t hack the core files or you will lose changes when you upgrade. Instead do this

    In your topic.php

    replace

    post_form();

    with

    post_form(array('last_page_only' => false));

    @ashfame

    Participant

    fix file permissions of my-templates & my-plugins folder – http://blog.ashfame.com/2009/09/fix-my-templates-my-plugins-folder-not-working-bbpress/

    @ashfame

    Participant

    I guess that's what do_action() does when it doesn't have any arguments?

    do_action() must be called with which action to do. no?

    $bb_table_prefix already takes care of different table prefixes. I didn’t get your point.

    In reply to: Permalinks 404 issues

    @ashfame

    Participant

    I am on a shared hosting account from WPWebhost.

    @ashfame

    Participant

    give the absolute path of image in src attribute

    @ashfame

    Participant

    @Kawauso

    Is using display:none; fine as per SEO? It violates the rule of showing different content to the users than the bot.

    @ashfame

    Participant

    @ashfame

    Participant

    Try searching a lil deep in the forums. Somthing like this was discussed recently

    In reply to: Profile Avatars?

    @ashfame

    Participant

    There is a plugin bb-avatars or something. Look in the Extends section of the site.

    @ashfame

    Participant

    @chris

    Somehow I missed replying sensibly. I just want it to hook with the post_post_form action. Looks like Kawauso got it fixed but I am looking for explainations. Thanks!


    @Kawauso

    Why the $limit was passed something which wasn’t numeric? and how did you find it? I would like to know your approach.

    And I didn’t get the point of using $bbdb over $bb_table_prefix ? Is there any performance gain?

    and yes your code for profile link works more efficiently than mine. Thanks!

    In reply to: Pagination

    @ashfame

    Participant

    span .page-numbers .current should work

    In reply to: First Poster

    @ashfame

    Participant

    Cheers!

    @ashfame

    Participant

    If I uncomment the 22 line, then it doesn’t output anything.

    It prints the error on the line 44 which means that $recent_reply is empty. That means query wasn’t executed.

    @ashfame

    Participant
    In reply to: First Poster

    @ashfame

    Participant

    I think all are covered now ;)

    In reply to: First Poster

    @ashfame

    Participant

    view.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php view_name(); ?></div>

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

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this view'); ?></a></p>

    <div class="nav">
    <?php view_pages(); ?>
    </div>
    <?php endif; ?>

    <?php bb_get_footer(); ?>

    In reply to: First Poster

    @ashfame

    Participant

    tag-single.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> &raquo; <?php bb_tag_name(); ?></div>

    <?php do_action('tag_above_table'); ?>

    <?php if ( $topics ) : ?>

    <table id="latest" role="main">
    <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('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> link for this tag') ?></a></p>

    <?php tag_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    <?php endif; ?>

    <?php post_form(); ?>

    <?php do_action('tag_below_table'); ?>

    <?php manage_tags_forms(); ?>

    <?php bb_get_footer(); ?>

    In reply to: First Poster

    @ashfame

    Participant

    and forum.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div>

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

    <table id="latest" role="main">
    <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('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <p class="rss-link"><a href="<?php bb_forum_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this forum'); ?></a></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">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?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">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?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(); ?>

    In reply to: First Poster

    @ashfame

    Participant

    Your new frontpage.php

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="hottags" role="main">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
    </div>

    <div id="discussions">
    <?php if ( $topics || $super_stickies ) : ?>

    <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('Author'); ?></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><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?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_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </table>
    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
    <?php endif; // $topics or $super_stickies ?>

    <?php if ( bb_forums() ) : ?>
    <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 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">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?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">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?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; // 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"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li>
    <?php endforeach; ?>
    </ul>
    </div>
    <?php endif; // bb_is_user_logged_in() ?>

    </div>

    <?php else : // $forums ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>

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

    <?php bb_get_footer(); ?>

    @ashfame

    Participant

    You just answer that yourself – CSS

    The most effective way is to match the xhtml markup and the css both on WP theme & bbPress

    @ashfame

    Participant

    One has to manage it by getting page_topics from the meta table and then manipulate your php code.

    @ashfame

    Participant

    @Kawauso

    I think using $wpdb & $bbdb should sanitize by them self but reading the page on codex it looks like that we need to do that explicitly. I am a lil confused. Can you please clarify?

    @ashfame

    Participant

    Thanks ! I forgot that I should check out the codex for that.

    @ashfame

    Participant

    ah.. found it page_topics under bb_meta

    @ashfame

    Participant

    How can I get the value the user has set for pagination under the reading settings?

Viewing 25 replies - 726 through 750 (of 938 total)