Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12424
Latest: serbenfiquista
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40038
Total Topics: 7046
Most Online Today: 44
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 28
Total: 28

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

+- Recent Topics

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

Multiple adds where one used to be? by SMFHacks
January 07, 2020, 08:20:38 am

Ribbon Theme Logo Position by slizzie1986
January 06, 2020, 08:52:31 pm

System enhancement? by SMFHacks
January 03, 2020, 09:22:45 am

Pretty Url Pro Is it compatible with 7.2? by Rock Lee
January 01, 2020, 08:53:50 pm

Order of photos by SMFHacks
December 29, 2019, 02:02:28 pm

SMF Cookie Change Compatibly by HDB
December 28, 2019, 03:33:49 pm

Powered by EzPortal