Chrome
Safari
Edge
Firefox
Chrome (Android)
Tap the lock icon next to the address bar. Tap Permissions → Notifications . Adjust your preference.
Chrome (Desktop)
Click the padlock icon in the address bar. Select Site settings . Find Notifications and adjust your preference.
Safari (iOS 16.4+)
Ensure the site is installed via Add to Home Screen . Open Settings App → Notifications . Find your app name and adjust your preference.
Safari (macOS)
Go to Safari → Preferences . Click the Websites tab. Select Notifications in the sidebar. Find this website and adjust your preference.
Edge (Android)
Tap the lock icon next to the address bar. Tap Permissions .
Find Notifications and adjust your preference.
Edge (Desktop)
Click the padlock icon in the address bar. Click Permissions for this site . Find Notifications and adjust your preference.
Firefox (Android)
Go to Settings → Site permissions . Tap Notifications . Find this site in the list and adjust your preference.
Firefox (Desktop)
Open Firefox Settings. Search for Notifications . Find this site in the list and adjust your preference.
Захотел я сделать блок последних посетителей профиля видимым только для определенных групп.
Сам код этого блока нашел
<if test="latest_visitors:|:$member['pp_setting_count_visitors']"> <div class='general_box clearfix'> <h3>{$this->lang->words['latest_visitors']}</h3> <if test="has_visitors:|:is_array( $visitors ) && count( $visitors )"> <ul class='ipsList_withminiphoto ipsPad'> <foreach loop="latest_visitors_loop:$visitors as $visitor"> <li class='clearfix'> <if test="visitorismember:|:$visitor['member_id']"> <a href='{parse url="showuser={$visitor['member_id']}" seotitle="{$visitor['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$visitor['pp_mini_photo']}' alt='{$this->lang->words['photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /></a> <else /> <img src='{$visitor['pp_mini_photo']}' alt='{$this->lang->words['photo']}' class='ipsUserPhoto ipsUserPhoto_mini left' /> </if> <div class='list_content'> {parse template="userHoverCard" group="global" params="$visitor"} <br /> <span class='desc lighter'>{$visitor['_visited_date']}</span> </div> </li> </foreach> </ul> <else /> <p class='ipsPad desc'>{$this->lang->words['no_latest_visitors']}</p> </if>Нужна помощь - какой код дописать перед этим абзацом и после соответственно, чтобы просмотр этого блока был доступен только определенным id групп.
Подозреваю, что что-то вроде логического цикла <IF>, но не умею его составлять. Помогите :)