vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   modlog.php?do=view - IP Address column removing (https://vborg.vbsupport.ru/showthread.php?t=304183)

ka81 11-05-2013 08:15 AM

modlog.php?do=view - IP Address column removing
 
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 [DATE]1383644125[/DATE] at [TIME]1383644125[/TIME] ---------------

In modlog.php
Code:

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:
Code:

$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:
PHP Code:

$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:
Code:

                $headings[] = str_replace(' ', '&nbsp;', $vbphrase['ip_address']);
Code:

                $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:
Code:

                print_description_row(construct_link_code($vbphrase['restart'], "modlog.php?" . $vbulletin->session->vars['sessionurl'] . ""), 0, 6, 'thead', vB_Template_Runtime::fetchStyleVar('right'));
Code:

                print_table_header(construct_phrase($vbphrase['moderator_log_viewer_page_x_y_there_are_z_total_log_entries'], vb_number_format($vbulletin->GPC['pagenumber']), vb_number_format($totalpages), vb_number_format($counter['total'])), 6);
Code:

                print_table_footer(6, "$firstpage $prevpage &nbsp; $nextpage $lastpage");
number 6 to number 5


All times are GMT. The time now is 07:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01125 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete