Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'the_excerpt'

Viewing 6 results - 26 through 31 (of 31 total)
  • Author
    Search Results
  • #110230
    shooo
    Member

    oO last replies are on ligne 749 no?

    but thank you, i change ligne 750

    <div id="lastreply">

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>

    <div class="post">
    <h4>

    <?php
    $author_link = bbp_get_reply_author_link( array( 'type' => 'both', 'size' => 60 ) );
    $reply_link = '' . bbp_get_reply_topic_title() . '';

    /* translators: bbpress replies widget: 1: reply author, 2: reply link, 3: reply date, 4: reply time */

    printf( _x( $show_date == 'on' ? '%1$s on %2$s, %3$s, %4$s' : '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link, get_the_date(), get_the_time() );
    ?>

    </h4>
    <?php the_excerpt(); ?>

    </div><!-- fin de post -->

    <?php endwhile; ?>

    </div><!-- fin du last reply-->

    and it’s ok :) but I am afraid that the next bbpress update overwrites the change

    thx a lot for your help :)

    #40579
    shooo
    Member

    hello,

    I try desperately to create some kind of widget for my blog with last forum entries .

    I think query_posts was indicated because it is simple and effective.

    here is the code I use to fully control the design of my widget.

    <div id=”lastreply”>

    <?php

    query_posts(“post_type=reply”);

    while (have_posts()) : the_post();

    ?>

    <div class=”post”>

    <div class=”thumb”><?php echo get_avatar( get_the_author_id() , 60 ); ?></div>

    <h4>” rel=”bookmark”><?php the_title(); ?></h4>

    <small>De <?php the_author_posts_link(); ?> <span class=”red”>♥</span> <span class=”tag”><?php the_tags(‘#’,’, #’); ?></span></small>

    <?php the_excerpt(); ?>

    </div><!– fin de post –>

    <?php endwhile; ?>

    </div><!– last reply–>

    I have 3 problems so that my poor php skills prevents me to solve.

    1 / the title is not good, it starts with “reply to” it would have been clearer to the title of the topic directly.

    2 / the link isn’t the link to topic but the link for the answer!

    3 / but it’s going to be warmer, I wish to join the last replies to the last comment into a single widget, except that query_posts doesn’t work with the comments ^ ^

    would you have a little time to devote to my request? Thank you in advance.

    #40023
    JohnnyPea
    Member

    When I load the sidebar with the_content(), the_excerpt() or similar content function in custom loop before the main loop on page the forums (their contents) are displayed through that function in the sidebar.

    So I can’t use these content function before the main loop on page template? It seems to me bbPress is hooking the first function of this kind (the_content(), the_excerpt()…) on a page.

    I suppose bbPress plugin should avoid this to prevent malfunction in some themes.

    #107808

    Genesis has 2 functions that I have determined are causing the problems.

    http://pastie.org/2469242 (/genesis/lib/structure/post.php lines 101-143 (as of 1.7.1))

    The first function is the post image function. Users have the ability to automatically set image thumbnails to appear on the archive listings. However if they turn this on, when you go to a bbPress archive page a random image from the media library ends up on the top of the page. This is turned of by default in Genesis, but is widely used.

    The second function is how Genesis displays post content. You can see, depending on how the user has Genesis configured, it uses the_excerpt or the_content_limit – which results in a dead loop.

    The other things I did such as remove the post info/meta, breadcrumbs, etc are just purely cosmetic. They aren’t *needed* per say, but it can look screwy if they are outputted on some of the forum pages.

    As long as Genesis is forced to always use the_content and the post image option is nuked, everything should always work smoothly.

    If you want to explore the option of a core patch I’d be more than happy to help you with a patch and testing :)

    #37639
    alexchenco
    Member

    I recently started using this WordPress PHP implementation of the Markdown http://michelf.com/projects/php-markdown/

    Right now it only supports Posts and Comments. Topics and Replies don’t get aprsed.

    This comes from markdown.php:

    # Post content and excerpts
    # - Remove WordPress paragraph generator.
    # - Run Markdown on excerpt, then remove all tags.
    # - Add paragraph tag around the excerpt, but remove it for the excerpt rss.
    if (MARKDOWN_WP_POSTS) {
    remove_filter('the_content', 'wpautop');
    remove_filter('the_content_rss', 'wpautop');
    remove_filter('the_excerpt', 'wpautop');
    add_filter('the_content', 'Markdown', 6);
    add_filter('the_content_rss', 'Markdown', 6);
    add_filter('get_the_excerpt', 'Markdown', 6);
    add_filter('get_the_excerpt', 'trim', 7);
    add_filter('the_excerpt', 'mdwp_add_p');
    add_filter('the_excerpt_rss', 'mdwp_strip_p');

    remove_filter('content_save_pre', 'balanceTags', 50);
    remove_filter('excerpt_save_pre', 'balanceTags', 50);
    add_filter('the_content', 'balanceTags', 50);
    add_filter('get_the_excerpt', 'balanceTags', 9);
    }

    How to modify the line above to be effective for Topics and Replies?

    alexchenco
    Member

    I would like to know how to start a custom bbPress loop to display the recent 5 posts of a certain forum (say Forum Test 1).

    In WordPress I create custom loops like this:

    `<?php $custom_posts = new WP_Query(); ?>

    <?php $custom_posts->query(‘post_type=bbp_topic&posts_per_page=5’); ?>

    <?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); ?>

    <div class=”block-2 border-top”>

    <h2><a href=”<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></a></h2>

    <?php the_excerpt(); ?>

    <p><?php comments_number(‘0 Replies’,’1 Reply’,’% Replies’); ?>.</p>

    </div>

    <?php endwhile; ?>`

    How to do what I mentioned above in bbPress 1.1?

Viewing 6 results - 26 through 31 (of 31 total)
Skip to toolbar