Topic tooltips
-
Hi,
A themes front page usually displays the latest discussions, but with many forums there is no context to each topic listed so the topic title is often meaningless. E.g. a topic title of ‘Help’ does not invite the viewer to click the topic to see the posts.
I’d like to add a title=”first part of post…’ attribute to the <tr> tag of each topic in the list.
I tried adding a filter to topic_class(), to fudge class=”xx” to class=”xx” title=”yy” but alt_class() has no filters. My other approach was to add a new function to the theme, e.g. in kakumei
<tr<?php topic_class(); topic_tooltip(); ?>>
and in functions.php
function topic_tooltip() {
$topic_id = get_topic_id();
echo ' title="'.$topic_id.'"';
}but I’m struggling to work out how to get the current post available to display an extract of the first post of the topic.
Any help really appreciated.
Ian.
- You must be logged in to reply to this topic.