Create Plugin Hook Point
#1
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:

$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?
[Image: TheShadeGamer.jpg]
[Image: logo.png]
Reply


Messages In This Thread
Create Plugin Hook Point - by XerShade - 2015-06-25, 11:21 PM
RE: Create Plugin Hook Point - by Destroy666 - 2015-06-26, 01:43 PM
RE: Create Plugin Hook Point - by XerShade - 2015-06-26, 02:02 PM
RE: Create Plugin Hook Point - by Destroy666 - 2015-06-26, 03:04 PM
RE: Create Plugin Hook Point - by XerShade - 2015-06-26, 03:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)