Rucola Senior MemberBug Finder Offline Posts: 286 Location: Country Children Song Joined: Aug 9th, 2017 Gender: Mood: Adventurous Zodiac sign: Re: add\delete user AdminPanel Reply #6 - Nov 20th, 2017 at 3:11pm Mark & QuoteQuote thanks, worked IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2266 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Coordinator Bug Reply #5 - Nov 20th, 2017 at 2:52pm Mark & QuoteQuote Rucola wrote on Nov 20th, 2017 at 2:10pm: my $showadmin = q{}; if ( $iamadmin || ( $iamgmod && $allow_gmod_profile && $gmod_access2{'profileAdmin'} ) ) { $showadmin = $myprofile_showadmin; $showadmin =~ s/Q{yabb menucolor5}E/$menucolors[5]/xsm; $showadmin =~ s/Q{yabb aduser}E/$useraccount{$user}/xsm; $showadmin =~ s/Q{yabb profile_txt820}E/$profile_txt{'820'}/xsm; $showadmin =~ s/Q{yabb sid}E/$INFO{'sid'}/gxsm; } CORRECT? Correct. In Admin/AdminEdit.pm find Code (Perl) if ( $FORM{'allow_gmod_aprofile'} ) { $seepmattach = qq~managepmattachments => '$FORM{'managepmattachments'}',~; $emailbackup = qq~emailbackup => '$FORM{'emailbackup'}',~; } if ( $FORM{'allow_gmod_aprofile'} || ( $FORM{'allow_gmod_profile'} && $self_del_user ) ) { $deletemulti = qq~deletemultimembers => '$FORM{'deletemultimembers'}',~; } and replace with: Code (Perl) if ( $FORM{'allow_gmod_aprofile'} ) { $FORM{'managepmattachments'} ||= q{}; $FORM{'emailbackup'} ||= q{}; $seepmattach = qq~managepmattachments => '$FORM{'managepmattachments'}',~; $emailbackup = qq~emailbackup => '$FORM{'emailbackup'}',~; } if ( $FORM{'allow_gmod_aprofile'} || ( $FORM{'allow_gmod_profile'} && $self_del_user ) ) { $FORM{'deletemultimembers'} ||= q{}; $deletemulti = qq~deletemultimembers => '$FORM{'deletemultimembers'}',~; } I need to double check some things - this section may have to be completely refactored. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Rucola Senior Member Offline Posts: 286 Location: Country Children Song Joined: Aug 9th, 2017 Gender: Mood: Adventurous Zodiac sign: Re: add\delete user AdminPanel Reply #4 - Nov 20th, 2017 at 2:50pm Mark & QuoteQuote basically version 1848 can not correctly update to version 1927 when downloading files to the FTP distorted the forum's forum page and admin panel ftp you provided I ask help with the update, I can not every time put a new version and start building a new forum IP Logged
Rucola Senior Member Offline Posts: 286 Location: Country Children Song Joined: Aug 9th, 2017 Gender: Mood: Adventurous Zodiac sign: Re: Coordinator Bug Reply #3 - Nov 20th, 2017 at 2:36pm Mark & QuoteQuote Обнаружена Ошибка! Use of uninitialized value $FORM{"managepmattachments"} in concatenation (.) or string at ./Admin/AdminEdit.pm line 663. thank you error with the reagent disappeared, I try to give access to the Coordinator to the Special Fields of the profile-jumps out this IP Logged
Rucola Senior Member Offline Posts: 286 Location: Country Children Song Joined: Aug 9th, 2017 Gender: Mood: Adventurous Zodiac sign: Re: Coordinator Bug Reply #2 - Nov 20th, 2017 at 2:10pm Mark & QuoteQuote my $showadmin = q{}; if ( $iamadmin || ( $iamgmod && $allow_gmod_profile && $gmod_access2{'profileAdmin'} ) ) { $showadmin = $myprofile_showadmin; $showadmin =~ s/\Q{yabb menucolor5}\E/$menucolors[5]/xsm; $showadmin =~ s/\Q{yabb aduser}\E/$useraccount{$user}/xsm; $showadmin =~ s/\Q{yabb profile_txt820}\E/$profile_txt{'820'}/xsm; $showadmin =~ s/\Q{yabb sid}\E/$INFO{'sid'}/gxsm; } CORRECT? IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2266 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Coordinator Bug Reply #1 - Nov 20th, 2017 at 1:32pm Mark & QuoteQuote Please post what the Revision number is on these files. The problem in Profile.pm: find Code (Perl) if ( $iamadmin || ( $iamgmod && $allow_gmod_profile && $gmod_access2{'profileAdmin'} ) ) { $showadmin = $myprofile_showadmin; Add before Code (Perl) my $showadmin = q{}; In Admin/ViewMembers.pm find Code (Perl) if ( $iamadmin || ( $iamgmod && $gmod_access{'deletemultimembers'} eq 'on' ) ) and replace with Code (Perl) || ( $iamgmod && $gmod_access{'deletemultimembers'} && $gmod_access{'deletemultimembers'} eq 'on' ) ) Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Rucola Senior Member Offline Posts: 286 Location: Country Children Song Joined: Aug 9th, 2017 Gender: Mood: Adventurous Zodiac sign: add\delete user AdminPanel Nov 20th, 2017 at 11:00am Mark & QuoteQuote Обнаружена Ошибка! Use of uninitialized value $gmod_access{"deletemultimembers"} in string eq at ./Admin/ViewMembers.pm line 895. after fixing the problem with viewing and deleting in the admin panel, the Coordinator jumped out a new error Неожиданная ошибка : Can't use string ("676leskov") as a HASH ref while "strict refs" in use at ./Admin/ViewMembers.pm line 555. « Last Edit: Nov 20th, 2017 at 2:40pm by Rucola » IP Logged