To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

Archiwum działu Ogólne (posty do 12.2007) - [Problem] Brak ikony zgloszonych postow w naglowku

szafa81 - 18-03-2007, 13:12
Temat postu: [Problem] Brak ikony zgloszonych postow w naglowku
Witam, w zrodlach widze ze odpowiedni kod wpisany jest w naglowku, modul zgloszen w PA zostal wlaczony, lecz ikonka nie wyswietla sie mimo iz sa zglaszane posty, wyskakuje jedynie popup.

Kod:
               <!-- BEGIN switch_report_list -->
                           &nbsp;<a href="{switch_report_list.U_REPORT_LIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_report_list.gif" width="12" height="13" border="0" alt="{switch_report_list.L_REPORT_LIST}" hspace="3" />{switch_report_list.L_REPORT_LIST}</a></span>&nbsp;
                           <!-- END switch_report_list -->

geman - 14-05-2007, 01:20

Dzisiaj przypadkowo sam się na to natknąłem, jest to ewidentny błąd skryptu
Udało mi się jednak znaleźć na to wyjście :]

includes/page_header.php

usuń:
Kod:
    if (!$board_config['report_disable'])
    {
        if ( ( $board_config['report_only_admin'] ? $userdata['user_level'] == ADMIN : $userdata['user_level'] > USER ) )
        {
            $template->assign_block_vars('switch_report_list', array(
                'U_REPORT_LIST' => append_sid('report.'.$phpEx),
                'L_REPORT_LIST' => $lang['Report_list'])
            );

            if ( !isset($no_report_popup) && !$userdata['no_report_popup'] && $userdata['refresh_report_popup'] )
            {
                if ( $userdata['refresh_report_popup'] != 2 && !isset($rp) )
                {
                    include($phpbb_root_path . 'includes/reportpost.'.$phpEx);
                }
                if ( $userdata['refresh_report_popup'] == 2 || $rp->check_report_popup($userdata) )
                {
                    $template->assign_block_vars("switch_report_popup", array(
                        'U_REPORT_POPUP' => append_sid('report.'.$phpEx.'?mode=popup'),
                        'S_WIDTH' => $board_config['report_popup_width'],
                        'S_HEIGHT' => $board_config['report_popup_height'])
                    );
                }
            }
        }
    }


znajdź:

Kod:
if ($board_config['cstat']) $template->assign_block_vars($header_block . $logged_in_out_block . '.statistics', array());



przed tym wklej:

Kod:
if (!$board_config['report_disable'])
    {
        if ( ( $board_config['report_only_admin'] ? $userdata['user_level'] == ADMIN : $userdata['user_level'] > USER ) )
        {
            $template->assign_block_vars($header_block.'switch_report_list', array(
                'U_REPORT_LIST' => append_sid('report.'.$phpEx),
                'L_REPORT_LIST' => $lang['Report_list'])
            );

            if ( !isset($no_report_popup) && !$userdata['no_report_popup'] && $userdata['refresh_report_popup'] )
            {
                if ( $userdata['refresh_report_popup'] != 2 && !isset($rp) )
                {
                    include($phpbb_root_path . 'includes/reportpost.'.$phpEx);
                }
                if ( $userdata['refresh_report_popup'] == 2 || $rp->check_report_popup($userdata) )
                {
                    $template->assign_block_vars($header_block.'switch_report_popup', array(
                        'U_REPORT_POPUP' => append_sid('report.'.$phpEx.'?mode=popup'),
                        'S_WIDTH' => $board_config['report_popup_width'],
                        'S_HEIGHT' => $board_config['report_popup_height'])
                    );
                }
            }
        }
    }



Powered by phpBB modified by Przemo © 2003 phpBB Group