Jump to the post that solved this thread.
Solved: 6 Years, 9 Months, 1 Week ago Show Last active (last logged in) in postbit
#26
Solved: 6 Years, 9 Months, 1 Week ago
Please edit the main plugin file before deactivation/deinstallation.
Search for:
function postbit_lastactive_deactivate()
{
	require MYBB_ROOT."/inc/adminfunctions_templates.php";
	find_replace_templatesets("postbit", "#\n".preg_quote('{$post[\'lastactive\']}')."(\r?)#", '', 0);
	find_replace_templatesets("postbit_classic", "#\n".preg_quote('{$post[\'lastactive\']}')."(\r?)#", '', 0);
}

Replace that part with:
function postbit_lastactive_deactivate()
{
	require MYBB_ROOT."/inc/adminfunctions_templates.php";
	find_replace_templatesets("postbit", "#(\n?)".preg_quote('{$post[\'lastactive\']}')."(\r?)#", '', 0);
	find_replace_templatesets("postbit_classic", "#(\n?)".preg_quote('{$post[\'lastactive\']}')."(\r?)#", '', 0);
}
Now the lastvisit UNIX timestamp shouldn't be displayed after deactivation/deinstallation.

(2015-11-01, 04:35 PM)Eldenroot Wrote: Anyway, it doesnt affect functionality of the plugin itself
Yes, that's true...but I tried it a couple of times and I can't reproduce that issue.

Maybe another plugin blocks the functionality.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Show Last active (last logged in) in postbit - by SvePu - 2015-11-01, 04:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)