sNews 1.7 (current stable version) > Patches/fixes

Freeze comments on administration-settings

(1/1)

Rui Mendes:
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;

--- End quote ---

philmoz:
alternate...
locate in comments() function

--- Code: ---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 {
--- End code ---
replace with

--- Code: ---if ($numrows > 0) {
--- End code ---

locate further down

--- Code: ---if ($freeze_status != 'freezed' && s('freeze_comments') != 'YES') {
--- End code ---
and place this on the following line

--- Code: ---if ($numrows == 0) {echo '<p>'.l('no_comment').'</p>';}
--- End code ---

Navigation

[0] Message Index

Go to full version