Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12350
Latest: psychology-clinic-in-yazd
New This Month: 2
New This Week: 2
New Today: 2
Stats
Total Posts: 40048
Total Topics: 7051
Most Online Today: 71
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 53
Total: 54

Author Topic: Unread items issue  (Read 260 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: 15029
    • 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
6364 Views
Last post November 11, 2006, 03:20:26 am
by Rikę
2 Replies
3522 Views
Last post November 25, 2008, 10:02:59 pm
by Bar Nuthin
2 Replies
3280 Views
Last post March 10, 2010, 02:14:45 pm
by Wegg
2 Replies
3051 Views
Last post July 09, 2011, 08:42:10 am
by garnpet
1 Replies
1019 Views
Last post March 07, 2017, 12:52:53 pm
by SMFHacks

+- Recent Topics

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Powered by EzPortal