Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Pin Post
#21
Try:
$result = array_intersect(explode(',', $mybb->settings['pinpost_groups']), explode(',', $mybb->user['usergroup'] . ',' . $mybb->user['additionalgroups']));
if(!empty($result)) return true;
return false;
Reply
#22
(2021-01-20, 12:19 PM)effone Wrote: Try:
[...]
Thanks.
Updated this and all other errors.
Plugin seems to work as expected.
On the way translated your plugin to Russian.

P.S.
Added as a pull request.


Attached Files
.gz   inc.tar.gz (Size: 4.96 KB / Downloads: 17)
Reply
#23
Thank you, @effone will review and merge.
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#24
New version 1.0.3 is released, please update to this version. It contains a fix for SQL error which breaks AJAX requests.
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)