PDA

View Full Version : modlog.php?do=view - IP Address column removing


ka81
11-05-2013, 08:15 AM
modlog.php?do=view - IP Address column removing

Statistics & Logs -> Moderator Log (admin/modlog.php?do=choose) -> choose any moderator -> View -> you get to Moderator Log Viewer (admin/modlog.php?do=view)
There we can see a column "IP Address" at right side.

My goal - to remove from viewing from anyone (even Administrators) that column.
How to do it?

Thank you very much anyway!!

--------------- Added 1383644125 at 1383644125 ---------------

In modlog.php
cell[] = $celldata;

$cell[] = '<span class="smallfont">' . iif($log['ipaddress'], "<a href=\"usertools.php?" . $vbulletin->session->vars['sessionurl'] . "do=gethost&ip=$log[ipaddress]\">$log[ipaddress]</a>", '&nbsp;') . '</span>';

print_cells_row($cell, 0, 0, -4);
}

print_table_footer(6, "$firstpage $prevpage &nbsp; $nextpage $lastpage");
}
else
{
print_stop_message('no_results_matched_your_query' );
}
}

what should I edit to meet my goal?

mokujin
11-05-2013, 09:27 AM
under $cell[] = $celldata;
Change:
$cell[] = '<span class="smallfont">' . iif($log['ipaddress'], "<a href=\"usertools.php?" . $vbulletin->session->vars['sessionurl'] . "do=gethost&ip=$log[ipaddress]\">$log[ipaddress]</a>", '&nbsp;') . '</span>';

To this:
$cell[] = '<span class="smallfont"></span>';

Then noone can see IP Address.

ka81
11-05-2013, 09:35 AM
but the column "IP address" still shown, at least its head-line..

mokujin
11-05-2013, 09:38 AM
Remove these:
$headings[] = str_replace(' ', '&nbsp;', $vbphrase['ip_address']);
$cell[] = '<span class="smallfont">' . iif($log['ipaddress'], "<a href=\"usertools.php?" . $vbulletin->session->vars['sessionurl'] . "do=gethost&ip=$log[ipaddress]\">$log[ipaddress]</a>", '&nbsp;') . '</span>';




And change:
print_description_row(construct_link_code($vbphras e['restart'], "modlog.php?" . $vbulletin->session->vars['sessionurl'] . ""), 0, 6, 'thead', vB_Template_Runtime::fetchStyleVar('right'));
print_table_header(construct_phrase($vbphrase['moderator_log_viewer_page_x_y_there_are_z_total_l og_entries'], vb_number_format($vbulletin->GPC['pagenumber']), vb_number_format($totalpages), vb_number_format($counter['total'])), 6);
print_table_footer(6, "$firstpage $prevpage &nbsp; $nextpage $lastpage");

number 6 to number 5