Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Freeze comments on administration-settings  (Read 3753 times)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Freeze comments on administration-settings
« on: January 04, 2009, 01:41:54 AM »

When you choose to freeze comments on administration-settings, you have a dulpicate "No commenting allowed at this time."

Solution:
Find first blue text and add return; (Line 909)
Quote
echo '<p>'.l('frozen_comments').'</p>';
return;
Logged
Need a Job on Europe. Linkdin - Facebook / Group

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: Freeze comments on administration-settings
« Reply #1 on: January 24, 2009, 04:18:02 AM »

alternate...
locate in comments() function
Code: [Select]
if ($numrows == 0) {
if ($freeze_status != 'freezed' && s('freeze_comments') != 'YES') {
echo '<p>'.l('no_comment').'</p>';
} else {
echo '<p>'.l('frozen_comments').'</p>';
}
} else {
replace with
Code: [Select]
if ($numrows > 0) {
locate further down
Code: [Select]
if ($freeze_status != 'freezed' && s('freeze_comments') != 'YES') {and place this on the following line
Code: [Select]
if ($numrows == 0) {echo '<p>'.l('no_comment').'</p>';}
Logged
Of all the things I have lost, it is my mind that I miss the most.