SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: Eliana Tamerin on August 19, 2008, 01:22:14 AM

Title: Article Locked Bug
Post by: Eliana Tamerin on August 19, 2008, 01:22:14 AM
If an article is locked (topic is locked), the block still shows the vertical (|) separator.

Code: (Unlocked) [Select]
0 comments | Write Comment

Code: (Locked) [Select]
0 comments |
Title: Re: Article Locked Bug
Post by: ccbtimewiz on August 21, 2008, 09:05:41 PM
Alright, I fixed it.Open ./Themes/[your_theme_or_default]/SPortal.template.phpFind:
Code: [Select]
<div style="float: right; padding: 5px;" >', $article['article']['link'], ' | ',  $article['article']['new_comment'], '</div>Replace with:
Code: [Select]
<div style="float: right; padding: 5px;" >', $article['article']['link'], ' ',  $article['article']['new_comment'], '</div>Open ./Sources/SPortal.phpFind:
Code: [Select]
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',Replace with:
Code: [Select]
'comment_link' => !empty($row['locked']) ? '' : ' | <a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',
Title: Re: Article Locked Bug
Post by: Manu on October 19, 2008, 10:50:14 AM
Could it be the bug is still there?
When I take a look at the locked article in my Portal it shows me still

Code: (Locked) [Select]
0 comments |
SimplePortal 2.3.8 © 2008-2024, SimplePortal