Using a similar method to the one I mentioned above, you can accomplish this.
Step 1
Edit: /includes/functions.php
Find (Near Line 4389)Add BelowCode: Select all
$notification_mark_hash = generate_link_hash('mark_all_notifications_read');
* Credit for code goes solely to RMcGirr83.Code: Select all
if ( !function_exists('group_memberships') ) { include($phpbb_root_path . 'includes/functions_user.'.$phpEx); } $groups = group_memberships(false,$user->data['user_id']); foreach ($groups as $grouprec) { $template->assign_vars(array( 'S_GROUP_' . $grouprec['group_id'] => true )); }
Step 2
To find the group number you'll use in the next step:
- Navigate to your ACP and then to the Users & Groups tab » Manage Groups » and go to the Settings link for the group(s) you're wanting to use.
- The last number of the URL of the settings page for that group is your group number. (Ex: my.website/adm/index.php?i=acp_groups&sid=1234567890123456789012345678901&icat=1&mode=manage&action=edit&g=5)
- This tells me the group ID I need to use is 5, which would mean I would use S_GROUP_5 in the code & example below.
Now the below conditional logic statements can be added to your templated files:Step 3
Edit: /ext/Picaron/AntiAdblock/styles/all/template/event/overall_header_content_before.html
Find (Near Line 1)Replace With*Code: Select all
<!-- IF ANTIADBLOCK_ACTIVE and ANTIADBLOCK_COOKIE and ANTIADBLOCK_MODO > 2 -->
* Please note that you will need to change the X in S_GROUP_X to a group number. For example: S_GROUP_5Code: Select all
<!-- IF ANTIADBLOCK_ACTIVE and ANTIADBLOCK_COOKIE and ANTIADBLOCK_MODO > 2 and S_GROUP_X -->
- Show Only To Group X
<!-- IF S_GROUP_X --> Code To Show <!-- ENDIF -->
- Show To Group X Or Y
<!-- IF S_GROUP_X or S_GROUP_Y --> Code To Show <!-- ENDIF -->
- Hide From Group X
<!-- IF not S_GROUP_X --> Code To Hide <!-- ENDIF -->
- Hide From Group X And Y
<!-- IF not S_GROUP_X and S_GROUP_Y --> Code To Hide <!-- ENDIF -->
- Show Only To Group X But Not If They Are A Moderator
<!-- IF S_GROUP_X and S_USER_IS_NOT_M -->
- Show Only To Group X Or Group Y But Not If They Are Not An Administrator
<!-- IF S_GROUP_X or S_GROUP_Y and S_USER_IS_NOT_A -->