SMFHacks.com

SMF Gallery Pro => Support => Topic started by: Matthias on November 19, 2019, 07:00:25 am

Title: Unread items issue
Post by: Matthias on November 19, 2019, 07:00:25 am
Version:
SMF 2.0.15
Gallery 8.0.6

If guests access the gallery (if guest access is allowed), the unread button will be displayed at every item.
After viewing the item, the unread button remains anyway, because the user is not logged in.

Open Sources/Subs-Gallery2.php
Search for:
Code: [Select]
            // Unread
 
            if (isset($setupRow['showunreadicon']))

Replace:
Code: [Select]
            // Unread
 
            if (($context['user']['is_logged']) && (isset($setupRow['showunreadicon'])))
Title: Re: Unread items issue
Post by: SMFHacks on November 19, 2019, 10:07:32 am
Change made for next update.