Okay so I made it so that the report option will not be available for founder images, and also not able to search whois on founder, as well as not see the info button to perform a whois on founder comments in the gallery.
If you are interested in adding my changes yourself, here are the edits.
Open: /gallery/image_page.php
Find:
Code: Select all
'U_REPORT' => (phpbb_gallery::$auth->acl_check('i_report', $album_id, $album_data['album_user_id']) && ($image_data['image_user_id'] != $user->data['user_id'])) ? phpbb_gallery_url::append_sid('posting', "mode=report&album_id=$album_id&image_id=$image_id") : '',
Note: This edit makes it so the report option is not available on Founder uploaded images.
Code: Select all
'U_REPORT' => (phpbb_gallery::$auth->acl_check('i_report', $album_id, $album_data['album_user_id']) && ($image_data['image_user_id'] != $user->data['user_id'] && $image_data['image_user_id'] != 2)) ? phpbb_gallery_url::append_sid('posting', "mode=report&album_id=$album_id&image_id=$image_id") : '',
Code: Select all
'U_INFO' => ($auth->acl_get('a_')) ? phpbb_gallery_url::append_sid('mcp', 'mode=whois&ip=' . $row['comment_user_ip']) : '',
Note: This edit makes it so the comment info option is not available on Founder comments.
Code: Select all
'U_INFO' => ($auth->acl_get('a_') && $row['comment_user_id'] != 2) ? phpbb_gallery_url::append_sid('mcp', 'mode=whois&ip=' . $row['comment_user_ip']) : '',
Open: /gallery/search.php
Find:
Code: Select all
'U_INFO' => ($auth->acl_get('a_')) ? phpbb_gallery_url::append_sid('mcp', 'mode=whois&ip=' . $commentrow['comment_user_ip']) : '',
Replace with:
Note: This edit makes it so the comment info option is not available on Founder comments from within the comments search when you click recent comments.
Code: Select all
'U_INFO' => ($auth->acl_get('a_') && $commentrow['comment_user_id'] != 2) ? phpbb_gallery_url::append_sid('mcp', 'mode=whois&ip=' . $commentrow['comment_user_ip']) : '',
Open: /includes/gallery/image/image.php
Find:
Code: Select all
'S_IP' => (($display & phpbb_gallery_block::DISPLAY_IP) && $auth->acl_get('a_')) ? $image_data['image_user_ip'] : '',
Note: This edit makes it so the Founder IP and whois option is not available on Founder uploaded images and albums.
Code: Select all
'S_IP' => (($display & phpbb_gallery_block::DISPLAY_IP) && $auth->acl_get('a_') && $image_data['image_user_id'] != 2) ? $image_data['image_user_ip'] : '',
Note:If your board founder id is not 2, then change the number 2 in all of the edits to the number of which your founder is, as this mod's files does not recognize the "FOUNDER" term in these particular files.
Clear your cache, Done!
__________________________________
Disclaimer: I decided to share my edits, fixes, addons, companion mods, e.t.c. for "wiki" type purposes and for those out there like me who are on older versions of phpbb3 still. Also for those who still have or wanted this mod to have a new feature or a fix this is for you!