Solved: 5 Years, 5 Months, 3 Weeks ago Private Message title in dropdown of header_welcomeblock_member?
#3
Solved: 5 Years, 5 Months, 3 Weeks ago
Hi, I tried with this code in global.php but nothing:

// Dropdown mp
	$query = $db->query("
		SELECT pm.subject, pm.pmid, fu.username AS fromusername, fu.uid AS fromuid
		FROM ".TABLE_PREFIX."privatemessages pm
		LEFT JOIN ".TABLE_PREFIX."users fu on (fu.uid=pm.fromid)
		WHERE pm.folder = '1' AND pm.uid = '{$mybb->user['uid']}' AND pm.status = '0'
		ORDER BY pm.dateline DESC
		LIMIT 5
	");
	
	while($private_dropdown = $db->fetch_array($query))
	{
		$private_dropdown_subject = htmlspecialchars_uni($private_dropdown['subject']);
		$private_dropdown_fromuser = htmlspecialchars_uni($private_dropdown['fromusername']);

	eval("\$private_dropdown_template_template .= \"".$templates->get("private_dropdown_template_template")."\";");
	}
	
eval("\$private_dropdown_template = \"".$templates->get("private_dropdown_template")."\";");

and in "private_dropdown_template" template only added, to test, {$private_dropdown_subject} and {$private_dropdown_fromuser} but it doesn't appear in header_welcomeblock_member..

<ul class="dropdown-menu">
 <li>{$private_dropdown_template}</li>
</ul>

Sad
Reply


Messages In This Thread
RE: Private Message title in dropdown of header_welcomeblock_member? - by niere8 - 2015-10-02, 05:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)