2004-08-05, 07:19 PM
2004-08-05, 08:49 PM
Sorry, I don't understand your question?
2004-08-05, 09:25 PM
For Reputation, Look in reputation.php
For Online info, Look below. Its in the functions.php file, but here it is below:
For Online info, Look below. Its in the functions.php file, but here it is below:
// Determine the status to show for the user (Online/Offline/Away)
$timecut = time() - $settings['wolcutoff'];
if($post['lastactive'] > $timecut && ($post['invisible'] != "yes" || $mybbgroup['canviewwolinvis'] == "yes") && $post['lastvisit'] != $post['lastactive'])
{
eval("\$onlinestatus = \"".$templates->get("postbit_online")."\";");
}
else
{
if($post['away'] == "yes" && $settings['allowaway'] != "no")
{
eval("\$onlinestatus = \"".$templates->get("postbit_away")."\";");
}
else
{
eval("\$onlinestatus = \"".$templates->get("postbit_offline")."\";");
}
}
2004-08-05, 09:55 PM
Installaboard Wrote:For Online info, Look below. Its in the functions.php file, but here it is below:
Thanx, but I couldn't find functions.php in ACP. Is it really there? Actually I need code snippet of user's status to show it on user's profile.
2004-08-05, 10:19 PM
to get into functions.php you'll need to access the forum directory though FTP and you'll need to dl your functions.php.
./inc/functions.php/
thats where it is located.
./inc/functions.php/
thats where it is located.
2004-08-16, 07:29 PM
I will prefer to have a copy-&-Paste guide to show user status (online/offline) on user profile page. Any help will be highly welcomed
2004-08-20, 06:12 PM
It doesn't look to be taking someone with knowledge more than 5 mintues to explain the proceedure, but perhaps we wanted to show that we are an unhelpful community! I feel sad today
2004-08-20, 10:21 PM
In member.php, find:
Below it add:
Then add $onlinestatus to the member_profile template.
Chris.
if($customfields)
{
eval("\$profilefields = \"".$templates->get("member_profile_customfields")."\";");
}
Below it add:
$timecut = time() - $settings['wolcutoff'];
if($memprofile['lastactive'] > $timecut && ($memprofile['invisible'] != "yes" || $mybbgroup['canviewwolinvis'] == "yes") && $memprofile['lastvisit'] != $memprofile['lastactive'])
{
eval("\$onlinestatus = \"".$templates->get("postbit_online")."\";");
}
else
{
if($post['away'] == "yes" && $settings['allowaway'] != "no")
{
eval("\$onlinestatus = \"".$templates->get("postbit_away")."\";");
}
else
{
eval("\$onlinestatus = \"".$templates->get("postbit_offline")."\";");
}
}
Then add $onlinestatus to the member_profile template.
Chris.
2004-08-20, 10:29 PM
Thanks for this. Looks like a great mod for MM's site.
2004-08-22, 01:02 PM
Thanx Chris