Thread Rating:
  • 12 Vote(s) - 4.17 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MyProfile - Profile Comments & more (version 1.2)
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


Attached Files Thumbnail(s)
   
Reply
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
I am running the latest version or MariaDB and this is what i get when I try to activate the plugin


Attached Files Thumbnail(s)
   
Reply
^ file : /plugins/myprofile/myprofileutils.class.php
find all occurrences of rows & replace it with something else [eg. myprofrows]

however there can be some other problems with MyProfile plugin. not recommended for use.

Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel to edit the files.
Reply
(2020-03-05, 04:23 AM).m. Wrote: ^ file : /plugins/myprofile/myprofileutils.class.php
find all occurrences of rows & replace it with something else [eg. myprofrows]

however there can be some other problems with MyProfile plugin. not recommended for use.

Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel  to edit the files.

That worked to get it to activate thank you!
Reply
How do I create this feature + Users Avatar + Visit Time in my profile?[url=https://mods.mybb.com/view/last-visitors-in-profile][/url]



Q: How do I code it in Global.css or Global tamplate ?


i want to make a profile visitors panel with 30x30 avatar in members profile that they can view their profile visitors.

like this
   
Want to Support Me? +Rep Me
Reply
Doesn't work well in version 1.8.22
Reply
(2020-03-05, 04:23 AM).m. Wrote: ^ file : /plugins/myprofile/myprofileutils.class.php
find all occurrences of rows & replace it with something else [eg. myprofrows]

however there can be some other problems with MyProfile plugin. not recommended for use.

Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel to edit the files.

Thanks for help! That worked!

Sorry for flood post but I have a problem.

I can't see in settings "MyProfile Comments" and "MyProfile Buddy List" settings.
And Comments Area is not in profile. :/

https://i.hizliresim.com/rqWUNd.png

My website, MYBB 1.8.22
Reply
(2020-03-28, 09:39 PM)blueseverything Wrote: I can't see in settings "MyProfile Comments" and "MyProfile Buddy List" settings.
And Comments Area is not in profile. :/

https://i.hizliresim.com/rqWUNd.png

My website, MYBB 1.8.22


Can someone help me?
Reply
This plugin has plenty of issues. Did you try to deactivate and activate back? If so, uninstall and install back, getting the settings is the minimum you should have.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)