Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) add\delete user AdminPanel (Read 5868 times)
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
Bug Finder
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
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 »  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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)
Select All
    if (
         $iamadmin
         || (   $iamgmod
             && $allow_gmod_profile
             && $gmod_access2{'profileAdmin'} )
       )
     {
         $showadmin = $myprofile_showadmin; 



Add before
Code (Perl)
Select All
    my $showadmin = q{}; 



In Admin/ViewMembers.pm find
Code (Perl)
Select All
    if ( $iamadmin
         || ( $iamgmod && $gmod_access{'deletemultimembers'} eq 'on' ) ) 



and replace with
Code (Perl)
Select All
        || ( $iamgmod && $gmod_access{'deletemultimembers'} && $gmod_access{'deletemultimembers'} eq 'on' ) ) 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
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?
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
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
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
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
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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)
Select All
    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)
Select All
    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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #6 - Nov 20th, 2017 at 3:11pm
Mark & QuoteQuote  
Smiley
thanks, worked
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #7 - Nov 20th, 2017 at 3:15pm
Mark & QuoteQuote  
When the Coordinator tries to edit user rights-An Error has been detected! Use of uninitialized value in string eq at ./Sources/Profile.pm line 171.


Обнаружена Ошибка! Use of uninitialized value in string ne at ./Sources/Profile.pm line 3137.

and such an error when attempting a new approach to the profile in which the previous error occurred by the Coordinator
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #8 - Nov 20th, 2017 at 3:23pm
Mark & QuoteQuote  
Неожиданная ошибка :
Can't use string ("381leskov") as a HASH ref while "strict refs" in use at ./Admin/ViewMembers.pm line 555.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: add\delete user AdminPanel
Reply #9 - Nov 20th, 2017 at 3:30pm
Mark & QuoteQuote  
In Sources/Profile.pm find (around line 171)
Code (Perl)
Select All
        || ( $iamgmod && ${ $uid . $user }{'position'} eq 'Administrator' ) 



and replace with
Code (Perl)
Select All
        || ( $iamgmod && ${ $uid . $user }{'position'} && ${ $uid . $user }{'position'} eq 'Administrator' ) 



find (around line 3137 )
Code (Perl)
Select All
            || (   $iamgmod
                 && $allow_gmod_profile
                 && ${ $uid . $user }{'position'} ne 'Administrator' )
           ) 


replace with
Code (Perl)
Select All
            || (   $iamgmod
                 && $allow_gmod_profile
                 && ( !${ $uid . $user }{'position'} || ${ $uid . $user }{'position'} ne 'Administrator' ) )
           ) 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: add\delete user AdminPanel
Reply #10 - Nov 20th, 2017 at 3:41pm
Mark & QuoteQuote  
In Admin/ViewMembers.pm find
Code (Perl)
Select All
        if (
             $user eq 'admin'
             || (
                 $iamgmod
                 && ( ${ $uid . $user }{'position'} eq 'Administrator'
                     || $gmod_access{'deletemultimembers'} ne 'on' )
             )
           )
         {
             $addel = q~ ~;
         }
         else {
             $addel =
 qq~<input type="checkbox" name="member$numshown" value="$user" class="windowbg" style="border: 0; vertical-align: middle;" />~;
             $actualnum++;
         } 



replace with
Code (Perl)
Select All
        {
         no strict qw(refs);
             if (
                 $user eq 'admin'
                 || (
                     $iamgmod
                     && ( (  ${ $uid . $user }{'position'} && ${ $uid . $user }{'position'} eq 'Administrator' )
                         || $gmod_access{'deletemultimembers'} ne 'on' )
                 )
               )
             {
                 $addel = q~&nbsp;~;
             }
             else {
                 $addel =
 qq~<input type="checkbox" name="member$numshown" value="$user" class="windowbg" style="border: 0; vertical-align: middle;" />~;
                 $actualnum++;
             }
         } 



And please do not edit posts to add more information - I may not see the edits.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #11 - Nov 20th, 2017 at 4:29pm
Mark & QuoteQuote  
Неожиданная ошибка :
Unrecognized character \x{a0}; marked by <-- HERE after <-- HERE near column 2 at ./Admin/ViewMembers.pm line 556. Compilation failed in require at /home/host1609329/ablackhole.ru/htdocs/forum/cgi-bin/yabb2/AdminIndex.pl line 183.
  

viewmembers.zip ( 8 KB | 169 Downloads )
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: add\delete user AdminPanel
Reply #12 - Nov 20th, 2017 at 5:18pm
Mark & QuoteQuote  
That error tells me there is a non-ASCII and/or invalid character in a user ID.

Line 556 in ViewMembers.pm should be
Code (Perl)
Select All
             $user eq 'admin' 


as it's in the section that was just edited.

you can try putting
Code (Perl)
Select All
    $user =~ s/\xA0/ /gxsm; 


above that 'if' block.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #13 - Nov 20th, 2017 at 5:39pm
Mark & QuoteQuote  
attached a file you do not edit-did as told-does not go out
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Rucola
Senior Member
****
Offline



Posts: 286
Location: Country Children Song
Joined: Aug 9th, 2017
Gender: Male
Mood: Adventurous
Zodiac sign: Taurus
Re: add\delete user AdminPanel
Reply #14 - Nov 20th, 2017 at 6:28pm
Mark & QuoteQuote  
video
  

video_2017-11-20_212549.zip ( 1203 KB | 125 Downloads )
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
add\delete user AdminPanel

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry