Skip to:
Content
Pages
Categories
Search
Top
Bottom

Jump to last post


  • intellivision
    Participant

    @intellivision

    I can figure it out with a little work, but I’m just wondering if anyone has written a hack to do this.

    The link would take you from forum.php to the last post in (any given) topic.php.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Pop this in a new .php file in your plugin directory.

    <?php
    /*
    Plugin Name: Page &raquo;
    Plugin URI:
    Description: Adds &raquo; to the end of topic titles, linking to latest post.
    Author: fel64
    Version: 0.7
    Author URI: http://www.loinhead.net/
    */

    if (!function_exists('is_tags')) {
    function is_tags()
    {
    return is_tag();
    }
    }

    if (is_front() || is_forum() || is_tags()) {
    add_filter('topic_title', 'fel_addlatestlink', 101);
    }

    function fel_addlatestlink($title)
    {
    global $topic;
    $felgtlpl = get_topic_last_post_link($topic->topic_id);
    $title = $title . '</a> <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;';

    return $title;
    }
    ?>

    did not work foe me :(


    citizenkeith
    Participant

    @citizenkeith

    fel64,

    I didn’t compare this to the one you posted a few months ago. But it still doesn’t work for me. Clicking the >> next to the thread just gets me to a page that does not show any posts. I have to click the “Go to last post” link on that page to get there.

    The link for >> is this, for example:

    http://www.citizenkeith.com/forums/topic.php?id=65&page=200&replies=996#post-29898

    The link for the actual last post is this:

    http://www.citizenkeith.com/forums/topic.php?id=65&page=34&replies=996#post-29898

    So it looks as though pages are messed up. I’ll try turning off every single plugin again and will report back with info.


    citizenkeith
    Participant

    @citizenkeith

    Ok, I switched back to Kakumei and turned off all plugins except this one. Works fine now.

    I’ll figure out which one is causing the problem and report it to the author, as well as here in this thread.


    citizenkeith
    Participant

    @citizenkeith

    I found the culprit: the Front Page Topics plugin.

    https://bbpress.org/plugins/topic/3?replies=15

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