Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12414
Latest: danilubrin
New This Month: 4
New This Week: 3
New Today: 2
Stats
Total Posts: 39951
Total Topics: 7033
Most Online Today: 27
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 36
Total: 37

Author Topic: Unread items issue  (Read 162 times)

0 Members and 1 Guest are viewing this topic.

Offline Matthias

  • Newbie
  • *
  • Posts: 6
    • View Profile
Unread items issue
« 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'])))
« Last Edit: November 19, 2019, 07:03:55 am by Matthias »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14980
    • View Profile
Re: Unread items issue
« Reply #1 on: November 19, 2019, 10:07:32 am »
Change made for next update.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
Show Unread

Started by Rikę Bugs

0 Replies
6289 Views
Last post November 11, 2006, 03:20:26 am
by Rikę
2 Replies
3506 Views
Last post November 25, 2008, 10:02:59 pm
by Bar Nuthin
2 Replies
3269 Views
Last post March 10, 2010, 02:14:45 pm
by Wegg
2 Replies
3032 Views
Last post July 09, 2011, 08:42:10 am
by garnpet
1 Replies
1006 Views
Last post March 07, 2017, 12:52:53 pm
by SMFHacks

+- Recent Topics

Contact Page Problem by emmebroke
December 11, 2019, 04:19:25 pm

hashTags only used by admins, but visible to everyone? by SMFHacks
December 08, 2019, 05:09:23 pm

Responsive Layout by Matthias
November 30, 2019, 03:05:57 pm

Secure connection failed Pretty Url Pro by Rock Lee
November 26, 2019, 10:44:23 am

Black Friday Sale Week 2019 by SMFHacks
November 23, 2019, 04:47:56 pm

German Translation missing in SMF 2.1R1 by SMFHacks
November 19, 2019, 02:38:42 pm

Unread items issue by SMFHacks
November 19, 2019, 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

Powered by EzPortal