Jump to the post that solved this thread.
Not Solved Most variables not working on forumdisplay_thread
#25
Not Solved
Blackout!

Line 1311 to 1330

		{
			$attachment_count = '';
		}

		$plugins->run_hooks("forumdisplay_thread_end");
		
		$query = $db->simple_select("userfields", "fid10", "ufid = {$thread['uid']}");
$thread['fid10'] = $db->fetch_array($query)['fid10']; 
$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")."\";");
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, 03:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)