Log in

View Full Version : which hook to use? (trying to pass info to forumhome_lastpostby template)


sp00fer
06-09-2006, 08:52 PM
basically, i am trying to shorten the $lastpostinfo[trimhead] string that appears in forumhome_lastpostby templates.

Which hook should i use to pass the modified variable to the template? none of the forumhome ones seem to work.

tgreer
06-09-2006, 09:04 PM
It's set in \includes\functions_forumlist.php, which is also where the template is fetched. and there is no hook at that location. There is also no hook location at either instance of the call to the fuction, construct_forum_bits.

The nearest hook to the call in index.php, is "forumhome_complete", but by that time it's too late, I think.