bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Jump to last post

(6 posts)
  • Started 1 year ago by intellivision
  • Latest reply from citizenkeith
  • This topic is not resolved
  1. 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.

    Posted 1 year ago #
  2. 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;
    }
    ?>
    Posted 1 year ago #
  3. did not work foe me :(

    Posted 1 year ago #
  4. citizenkeith
    Member

    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.

    Posted 1 year ago #
  5. citizenkeith
    Member

    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.

    Posted 1 year ago #
  6. citizenkeith
    Member

    I found the culprit: the Front Page Topics plugin.

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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.