Jump to the post that solved this thread.
Not Solved Most variables not working on forumdisplay_thread
#21
Not Solved
		else
		{
			$attachment_count = '';
		}

		$plugins->run_hooks("forumdisplay_thread_end");
		
$query = $db->simple_select("users", "avatar, avatardimensions, username", "uid = {$thread['uid']}");
$avatar = $db->fetch_array($query);
$profilelink = get_profile_link($thread['uid']);
$thread['avatar'] = "";
if ($avatar['avatar'] != "")
{
    $useravatar = format_avatar($avatar['avatar'], $avatar['avatardimensions'], $mybb->settings['postmaxavatarsize']);
    $thread['avatar'] = "<div class=\"author_avatar\"><a href=\"{$profilelink}\"><img src=\"{$useravatar['image']}\" alt=\"\" {$useravatar['width_height']} /></a></div>";
} 


		eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
	}

	$customthreadtools = $standardthreadtools = '';
	if($ismod)
	{

Yes.

By the way, I also want it to work on forumdisplay_showthread
I'm new to MyBB, has been using WordPress and only know HTML/CSS.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Most variables not working on forumdisplay_thread - by XP Mai - 2015-08-16, 02:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)