2006-03-15, 01:32 PM
2006-03-15, 01:42 PM
Heloo there
if you mean the last visit which appears in the user's profile, then pls in the member templates > member_profile
find and remove
if you mean the last visit which appears in the user's profile, then pls in the member templates > member_profile
find and remove
<tr>
<td class="trow2"><strong>$lang->lastvisit</strong></td>
<td class="trow2">$memlastvisitdate $memlastvisittime</td>
</tr>
2006-03-15, 02:15 PM
Thanks!
But is it also possible to hide this only for admins, and show it for other people?
But is it also possible to hide this only for admins, and show it for other people?
2006-03-15, 02:26 PM
Revert the template modification zaher suggested and open the file member.php.
Search for:
Replace with:
Search for:
PHP Code:
if($memprofile['lastvisit'])
{
$memlastvisitdate = mydate($mybb->settings['dateformat'], $memprofile['lastvisit']);
$memlastvisitsep = ', ';
$memlastvisittime = mydate($mybb->settings['timeformat'], $memprofile['lastvisit']);
}
PHP Code:
if($memprofile['lastvisit'])
{
����if($mybb->user['usergroup'] == "4")
����{
����$memlastvisitdate = "N/A";
$memlastvisitsep = ', ';
$memlastvisittime = "N/A";
��������}
��������else
��������{
$memlastvisitdate = mydate($mybb->settings['dateformat'], $memprofile['lastvisit']);
$memlastvisitsep = ', ';
$memlastvisittime = mydate($mybb->settings['timeformat'], $memprofile['lastvisit']);
}
}
2006-03-15, 03:09 PM
Thanks to both of you guys.
2006-03-15, 03:40 PM
Micheal suggestion will leave the row of last visit, and will show N/A instead of the date. use this one as it removes the whole row when the user is an admin, and display it as it is when a user isn't an admin. find
then in the template i have mentioned before , replace the code i asked to delete with $lastvisit
regards
if($memprofile['lastvisit'])
{
$memlastvisitdate = mydate($mybb->settings['dateformat'], $memprofile['lastvisit']);
$memlastvisitsep = ', ';
$memlastvisittime = mydate($mybb->settings['timeformat'], $memprofile['lastvisit']);
}
Replace with:if($memprofile['lastvisit'])
{
if($mybb -> user [ 'usergroup' ] != 4)
{
$memlastvisitdate = mydate($mybb->settings['dateformat'], $memprofile['lastvisit']);
$memlastvisitsep = ', ';
$memlastvisittime = mydate($mybb->settings['timeformat'], $memprofile['lastvisit']);
$lastvisit = "<tr><td class=\"trow2\"><strong>$lang->lastvisit</strong></td><td class=\"trow2\">$memlastvisitdate $memlastvisittime</td></tr>";
} else {
$lastvisit = '';
}
}
then in the template i have mentioned before , replace the code i asked to delete with $lastvisit
regards