Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [MOD] Site Wide Disable Comments  (Read 2882 times)

Jonbouy

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
[MOD] Site Wide Disable Comments
« on: June 30, 2007, 06:02:36 am »

I couldn't find this mod for 1.6 so I followed the instructions for Mika's 1.5 mod here;

http://www.solucija.com/forum/viewtopic.php?id=3105

which works fine up until step 7.  Which should now read for 1.6;

7. Inside function processing()
Quote
/*
find this line inside case 'save_settings' and add the blue line above */
...
case 'save_settings':
...
$disable_comments = $_POST['disable_comments'];
$approve_comments = $_POST['approve_comments'];
...
/*
a couple of lines below you should see the declaration for the $ufield array add the blue text below before the closing bracket in the array declaration
*/
'disable_comments' => $disable_comments,
Hope that helps someone.

p.s I haven't gotten around to disabling the 'RSS Comments' link yet.
Logged

Joost

  • Guest
[MOD] Site Wide Disable Comments
« Reply #1 on: June 30, 2007, 06:57:24 am »

Welcome Jonbouy :)
Starting your first post with a mod! That's the spirit!
Logged

Jonbouy

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
[MOD] Site Wide Disable Comments
« Reply #2 on: June 30, 2007, 10:29:45 am »

Thank you Joost.

Just for clarity the original references in Step 5 should be 'echoed' as below.

5. Find this line inside function settings() and add the blue line just above it
Quote

echo html_input('checkbox', 'disable_comments', 'dc', '', l('a_disable_comments'), '', '', '', '', (s('disable_comments') == 'on' ? 'ok' : ''), '', '', '', '', '');

echo html_input('checkbox', 'approve_comments', 'ac', '', l('a_approve_comments'), '', '', '', '', (s('approve_comments') == 'on' ? 'ok' : ''), '', '', '', '', '');
I take it that the html_input() function in the previous version didn't need the 'echo'.
Logged