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

1.12.7 i starsze - Reset User Level

MagicalFire - 16-04-2010, 18:01
Temat postu: Reset User Level
Reset User Level

Modyfikacja pozwala na wyzerowanie user-level z poziomu PA

Kod:
################################################################################
##
##   Hack Title:        Reset User Level
##   Hack Version:        1.0.0
##   Hack Author:        JohnMcK
##
##   Hack Description:    This hack provides an Admin Control Panel option
##                        to reset a user's user-level.
##           
##                        Frequently, when changing a user from mod or above back
##                        to 'user', the user-level is not fully reset. This can
##                        cause the user to show the wrong color in the online
##                        users list, and potentially other problems. This option
##                        allows you to fully reset the user.
##
##   phpBB Version:        2.0.6
##       
##   Difficulty Level:    Very Easy (no edits)
##   Installation Time:    ~1 Minute
##
##   Files To Edit:        (1)              admin\modules_data.php
##
##    Included Files:    (4)
##                        \admin\admin_resetuser.php
##                        \language\lang_english\lang_resetuser.php
##                                              \language\lang_polish\lang_resetuser.php
##                        \templates\subSilver\admin\resetuser_body.tpl
##
##
################################################################################
#


Co modyfikacja potrafi:
:arrow: Modyfikacja pozwala na wyzerowanie user-level z poziomu PA.

lui754 - 29-06-2010, 16:22

Działa to komu¶, testował kto¶?
Silny - 29-06-2010, 16:28

lui754 napisał/a:
Działa to komu¶, testował kto¶?
działa działa
Logan4 - 30-07-2010, 02:07
Temat postu: [poprawka]
Mod działa.

Przy zabieraniu funkcji J@ jest jeszcze jeden bład.
Gdy zapiszemy pusta liste przywilejów dla J@ w PA to w liscie ostanich useró na forum nadal widnieje on po Adminach mimo że nie ma J@.
Dzieje się tak tez po wyczyszczeniu poziomu za pomoc± tego moda.


Zeby nick usera który był J@ wy¶wietlał się alfabetycznie należy wykonać poniższ± instrukcję
Kod:

#
#-----[ OPEN ]------------------------------------------

admin\admin_jr_admin.php
#
#-----[ FIND ]---------------------------------------------------
#
    else
    {
        $sql = "UPDATE " . USERS_TABLE . "
            SET user_jr = 0
            WHERE user_id = $user_id";
#
#-----[ REPLACE WITH ]---------------------------------------------------
#
    else
    {
        $sql = "UPDATE " . USERS_TABLE . "
            SET user_jr =NULL
            WHERE user_id = $user_id";
##
##----------[ SAVE AND CLOSE ALL FILES ]-----------------
##
##     End
##



Powered by phpBB modified by Przemo © 2003 phpBB Group