Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 1 Month, 4 Weeks ago Permit display of uploaded images for selected users
#13
Solved: 9 Years, 1 Month, 4 Weeks ago
Right, I think that the idea was that you allow guests to "download attachments" - images are attachments - but nothing else.

This code edit from OMar would do that

if(!$forumpermissions['canview'] || !$forumpermissions['canviewthreads'] || (!$forumpermissions['candlattachments'] && !$mybb->input['thumbnail'] && !in_array($attachment['filetype'], array('image/gif', 'image/bmp', 'image/png', 'image/jpeg', 'image/unknown'))))
{
    error_no_permission();
} 

What that does is it allows all guest users to download IMAGE attachments. No others. You have to edit the core file like Frank says in his first post.

http://community.mybb.com/thread-128763-...#pid933116
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved




Messages In This Thread
RE: Permit display of uploaded images for selected users - by Leefish - 2012-11-24, 01:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)