2015-12-03, 01:14 PM
2015-12-03, 01:55 PM
Try this plugin: https://github.com/SvePu/MyBB-Postbit-Us...e/releases
2015-12-03, 04:23 PM
thanks for replying but when user
Is online its showing online i want user online or offline it show always last time in this location
Is online its showing online i want user online or offline it show always last time in this location
2015-12-03, 06:52 PM
OK, then open the file postbit_lastactive.php from /inc/plugins/ in editor (eg.: Notepad++), search for:
and replace all with:
$lang->load("postbit_lastactive");
if($post['lastvisit'] == $post['lastactive'] && (is_member($mybb->settings['pla_groupselect']) || $mybb->settings['pla_groupselect'] == "-1"))
{
if(empty($mybb->settings['pla_timeformat']))
{
$mybb->settings['pla_timeformat'] = "relative";
}
$lastactivetime = my_date($mybb->settings['pla_timeformat'], $post['lastactive']);
$postlastactive = '<br />'.$lang->sprintf($db->escape_string($lang->pla_lastactive), $lastactivetime);
}
elseif($post['lastvisit'] != $post['lastactive'] && (is_member($mybb->settings['pla_groupselect']) || $mybb->settings['pla_groupselect'] == "-1") && $mybb->settings['pla_showonlinestatus'] == "1")
{
$onlinetextstring = empty($mybb->settings['pla_onlinestatus_text']) ? 'Online' : $mybb->settings['pla_onlinestatus_text'];
$onlinecssstyle = '';
if(!empty($mybb->settings['pla_onlinestatus_style']))
{
$onlinecssstylesheet = preg_replace("%(\r\n)|(\r)%", "", $mybb->settings['pla_onlinestatus_style']);
$onlinecssstyle = 'style="'.$onlinecssstylesheet.'"';
}
$postlastactive = '<br /><span '.$onlinecssstyle.'>'.$onlinetextstring.'</span>';
}
else
{
$postlastactive = '';
}
and replace all with:
$lang->load("postbit_lastactive");
$postlastactive = '';
if(is_member($mybb->settings['pla_groupselect']) || $mybb->settings['pla_groupselect'] == "-1")
{
if(empty($mybb->settings['pla_timeformat']))
{
$mybb->settings['pla_timeformat'] = "relative";
}
$lastactivetime = my_date($mybb->settings['pla_timeformat'], $post['lastactive']);
$postlastactive = '<br />'.$lang->sprintf($db->escape_string($lang->pla_lastactive), $lastactivetime);
}
2015-12-04, 02:26 AM
thanks sir problem solved
2015-12-04, 04:41 AM
Nevermind
2015-12-04, 11:15 AM
very good i have installed this plugin but space is coming in my forum
WHEN I CHECK THIS THROUGH inspect element its showing <br>
when i removed <br> through inspect element then space removed
how can i change in plugin
WHEN I CHECK THIS THROUGH inspect element its showing <br>
when i removed <br> through inspect element then space removed
how can i change in plugin
2015-12-04, 11:39 AM
You can remove the "<br />" in main plugin file from PHP variable $postlastactive
Change:
To:
Change:
$postlastactive = '<br />'.$lang->sprintf($db->escape_string($lang->pla_lastactive), $lastactivetime);
and$postlastactive = '<br /><span '.$onlinecssstyle.'>'.$onlinetextstring.'</span>';
To:
$postlastactive = $lang->sprintf($db->escape_string($lang->pla_lastactive), $lastactivetime);
and$postlastactive = '<span '.$onlinecssstyle.'>'.$onlinetextstring.'</span>';
2015-12-04, 12:10 PM
yes working perfect space removed thanks mr SvePu
2015-12-04, 12:24 PM
You're welcome!