Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) User Profile Admin Edit Bug... (Read 2230 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
User Profile Admin Edit Bug...
Dec 10th, 2017 at 3:04pm
Mark & QuoteQuote  
Обнаружена Ошибка! Use of uninitialized value in string eq at ./Sources/Profile.pm line 2595.
  
Back to top
 
IP Logged
 
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
Re: Banned User Profile Edit Bug
Reply #1 - Dec 10th, 2017 at 3:10pm
Mark & QuoteQuote  

bug when trying to edit Admin profile member-pops up the above error-not only for banned and when the Admin tries to edit the profile of the participant-the other tabs work correctly
  
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: User Profile Admin Edit Bug...
Reply #2 - Dec 10th, 2017 at 5:25pm
Mark & QuoteQuote  
In Profile.pm find both instances of
Code (Perl)
Select All
if ( $av_gr eq ${ $uid . $user }{'position'} ) { 

and replace with
Code (Perl)
Select All
if ( ${ $uid . $user }{'position'} && $av_gr eq ${ $uid . $user }{'position'} ) { 

  

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: User Profile Admin Edit Bug...
Reply #3 - Dec 10th, 2017 at 6:05pm
Mark & QuoteQuote  
Обнаружена Ошибка! Use of uninitialized value in split at ./Sources/Profile.pm line 2599
  
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: User Profile Admin Edit Bug...
Reply #4 - Dec 10th, 2017 at 6:13pm
Mark & QuoteQuote  
sub edit_avatar {
    if ( $allowpics && $upload_useravatar && $upload_avatargroup ) {
        $upload_useravatar = 0;
        foreach my $av_gr ( split /,\s/xsm, $upload_avatargroup ) {
            if ( ${ $uid . $user }{'position'} && $av_gr eq ${ $uid . $user }{'position'} ) {
                $upload_useravatar = 1;
                last;
            }
            for ( split /,/xsm, ${ $uid . $user }{'addgroups'} ) {
                if ( $av_gr eq $_ ) { $upload_useravatar = 1; last; }
            }
        }
    }
« Last Edit: Dec 10th, 2017 at 7:25pm by Rucola »  

profile.zip ( 30 KB | 148 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: User Profile Admin Edit Bug...
Reply #5 - Dec 10th, 2017 at 8:08pm
Mark & QuoteQuote  
Code (Perl)
Select All
            for ( split /,/xsm, ${ $uid . $user }{'addgroups'} || q{} ) { 



It's in 2 places
  

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: User Profile Admin Edit Bug...
Reply #6 - Dec 10th, 2017 at 8:28pm
Mark & QuoteQuote  
Обнаружена Ошибка! Use of uninitialized value in string eq at ./Sources/Profile.pm line 3046.

thank you you can go, but after editing does not allow to save now

if ( $av_gr eq ${ $uid . $user }{'position'} ) {
  
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: User Profile Admin Edit Bug...
Reply #7 - Dec 10th, 2017 at 8:35pm
Mark & QuoteQuote  
if ( $av_gr eq ${ $uid . $user }{'position'} || q{}  ) {

correct?
  
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: User Profile Admin Edit Bug...
Reply #8 - Dec 10th, 2017 at 8:43pm
Mark & QuoteQuote  
No.
Code (Perl)
Select All
if ( ${ $uid . $user }{'position'} && $av_gr eq ${ $uid . $user }{'position'} ) {  


and
Code (Perl)
Select All
for ( split /,/xsm, ${ $uid . $user }{'addgroups'} || q{} ) {  



BTW - the list of groups that can upload avatars is for the groups that can HAVE uploaded avatars.
  

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: User Profile Admin Edit Bug...
Reply #9 - Dec 10th, 2017 at 8:59pm
Mark & QuoteQuote  
Обнаружена Ошибка! Use of uninitialized value in split at ./Sources/Profile.pm line 3050
  
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: User Profile Admin Edit Bug...
Reply #10 - Dec 10th, 2017 at 9:06pm
Mark & QuoteQuote  

all worked out-thank you cordially, accidentally found this bug
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
User Profile Admin Edit Bug...

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