Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Change default level of comments moderation.
Hhawk
Posted on 15 Mar 2010, 09:02:16

Access: Member
Total Posts: 94
Joined: 2010-03-01

I have a quick question.

Is it possible to change the default setting on comments?

Currently it's set to: Allow comments.

However I want it to default to "allow them but require them to be approved first before they get shown"

How do I do this? Changing it everytime manually for each news post is a bit of extra work. Would be nice to change the default, so I don't need to look back.
#2100
Chris
Posted on 15 Mar 2010, 12:04:09

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Functions.php, around line 486~, change

Code:
$allowcomments = 1;


to

Code:
$allowcomments = 2;
#2101
Hhawk
Posted on 15 Mar 2010, 12:27:01

Access: Member
Total Posts: 94
Joined: 2010-03-01

Thnx! :)
#2102
Hhawk
Posted on 07 Apr 2010, 15:32:47

Access: Member
Total Posts: 94
Joined: 2010-03-01

I have updated to the latest version (3.5), however the above doesn't work anymore?

How can I change the default settings for:

1. Comments (comments always need to be approved)
2. Toggle date (so it's always showing the date)
3. Toggle short story (so it always displays both short and long story by default)?


On a sidenote;

The date (in Dutch) is working great! Many thanks for this, however the rating is still not working properly for me. I tried with 4 different browsers (IE, FF, Chrome, etc.) but it's still not working like it should imho.

You can vote without problems, but the casted vote isn't shown anywhere. The only thing you can do is hover on the stars (like you are rating it for the first time, but says you have already voted when clicking).

Any idea?
#2230
Chris
Posted on 07 Apr 2010, 15:38:47

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

If you have a look at config.php, you'll see a bunch of new options you can change to control how the news form looks

Code:
// Default options for the add news form
$newsform_options['toggle_archive'] = 0; // 0 = Hide archive options, 1 = Show the archive options
$newsform_options['never_archive'] = 1; // 0 = Never archive is not selected, 1 = Never archive is selected
$newsform_options['toggle_date'] = 0; // 0 = Hide date options, 1 = Date options are shown
$newsform_options['short_story'] = 0; // 0 = Hide short story, 1 = Short story section is shown by default
$newsform_options['allow_comments'] = 1; // Default comment options. 0 = No, 1 = Yes, 2 = Needs approval


As for the ratings form, I'll still need to have a look at it to be able to try figure out the problem.

If it says you've already rated when clicking on it then your rating has already submitted.
#2231
Last edited by Chris at 2010-04-07 15:39:43 Reason:
Network-13.com © 2013