Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Jump to last post

@fel64

Member

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;
}
?>

Skip to toolbar