I am using SMF 1.1 RC2.
It's impossible to see the sticky topic's status.
what ever the topic had sticky or non-sticky, the manage panel of topic is always looks same.
For example:
Normal:
if the administrator is viewing a topic, he must can see txt[277] (set the topic sticky) at the bottom of the topic, if the topic has been set sticky, the txt[277] will become txt[278] (set the topic non-sticky).
But the truth is:
the
txt[278] never came out. what ever the topic has been set sticky or not. administrator can only see
txt[277] although the topic is already set sticky.
I don't know if I explained clearly. but if any confused, please contact me by MSN:
[email protected], english chatting avaliable.
by the way, here is the possible related code of this problem(bug?):
display.template.php'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_locked']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),language code:
index.english.php$txt['smf277'] = 'Set topic sticky';
$txt['smf278'] = 'Set topic non-sticky';
And i realized another problem is if I locked the topic, the txt[278] comes out.
How could it be?
Yeah, just get haroldouyang's problem from my Chinese support forum, and i have check the code, and found that SMF default theme using ['is_lock'] in sticky.
follow the following step to fix this bug. ;D ;D
Display.themplate.php Line around 580
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_locked']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
$context['is_locked'] should be $context['is_sticky']