1 (edited by teva 2008-11-17 12:50)

Topic: All topics show locked in "show recent" view. Bug?

Don't know if this is a bug or what, but today i noticed that most of the topics in "active topics view" show locked. The icon is still blue (not grey as it should be) and users can still reply to it. I don't even se locked topics anyware but "active topics view". Any idea what this could be?

Update: When locking any topic, all topics in "active topic" show Locked. When someone replies to this "locked" topic, they get unlocked. Also, i can only see "locked" sign if i'm loged in as admin  or moderator. If i'm browsing as normal user or unregistered, i dont see this.


1.3 final

2

Re: All topics show locked in "show recent" view. Bug?

please move to PunBB Bug reports 1.3

Re: All topics show locked in "show recent" view. Bug?

I think I found where the bug possibly is: around lines 338 and 367.

First, the "Closed" and "Sticky" part of the title are being placed AFTER the actual title, making it look like this:

Test Topic Closed : by Garciat

Second, I think

            if (empty($forum_page['item_status']))
                $forum_page['item_status']['normal'] = 'normal';

should be:

            if (empty($forum_page['item_status']))
            {
                unset($forum_page['item_subject_status']);
                $forum_page['item_status']['normal'] = 'normal';
            }

and be placed after:

            if ($cur_set['sticky'] == '1')
            {
                $forum_page['item_subject_status']['sticky'] = $lang_forum['Sticky'];
                $forum_page['item_status']['sticky'] = 'sticky';
            }

            if ($cur_set['closed'] != '0')
            {
                $forum_page['item_subject_status']['closed'] = $lang_forum['Closed'];
                $forum_page['item_status']['closed'] = 'closed';
            }

I'm not sure if this will work since I'm not on my home's PC (no access to web server).

Re: All topics show locked in "show recent" view. Bug?

Fixed.