Okay so I am trying to code a plugin that displays the most recent posters avatar on the forum index and have hit a snag, basically I am trying to do this in my code:
But the snag is here on line 339 of inc/functions_forumlist.php
Basically I need to hook in after this part of the code but no hook exists that I can find, is there a way to add in something like build_forumbits_forum_end to go with the build_forumbits_forum hook at the start so I can change the $lastpost variable before the template is built?
$lastpost = "<img src=\"$avatar_url\" />" . $lastpost;
But the snag is here on line 339 of inc/functions_forumlist.php
// If this forum is a link or is password protected and the user isn't authenticated, set lastpost to "-"
if($forum['linkto'] != '' || $hideinfo == true || $hidelastpostinfo == true)
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");
}
Basically I need to hook in after this part of the code but no hook exists that I can find, is there a way to add in something like build_forumbits_forum_end to go with the build_forumbits_forum hook at the start so I can change the $lastpost variable before the template is built?