Thread Rating:
  • 12 Vote(s) - 4.17 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MyProfile - Profile Comments & more (version 1.2)
Big Grin 
(2019-11-03, 11:07 PM)TronixAT Wrote: Hey,
I have got a small problem with the plugin.
If you want to change at "User and Groups" and "Groups" the permissions for MyProfile it doesnt work. MySQL spits out an error and doesnt safe the changes. 

See the attachment

I just encountered this problem and solved it changing a few lines in: /inc/plugins/myprofile/myprofilecomments.class.php

In line 2047 to 2050 aprox. change this:
$updated_group['canmanagecomments'] = $mybb->input['canmanagecomments'];
$updated_group['cansendcomments'] = $mybb->input['cansendcomments'];
$updated_group['caneditowncomments'] = $mybb->input['caneditowncomments'];
$updated_group['candeleteowncomments'] = $mybb->input['candeleteowncomments'];

 to this:
$updated_group['canmanagecomments'] = (int) $mybb->input['canmanagecomments'] ?: '0';
$updated_group['cansendcomments'] = (int) $mybb->input['cansendcomments'] ?: '0';
$updated_group['caneditowncomments'] = (int) $mybb->input['caneditowncomments'] ?: '0';
$updated_group['candeleteowncomments'] = (int) $mybb->input['candeleteowncomments'] ?: '0';

So instead of an empty string the db recieves 0.
Hope someone find this useful  Toungue
Reply


Messages In This Thread
RE: MyProfile - Profile Comments & more (version 1.2) - by soliddanii - 2020-01-14, 08:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)