Author |
Message |
sting
Involved


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...
|
Posted:
Mon Jan 30, 2006 9:20 pm |
|
I have searched for this for almost an hour now.. this is really weird.
Ok - in Admin preferences, there is the Activate Comments in Articles radio button. So its set to No, but when you go to post a new story, there is also a radio button that states Activate Comments for this Story? - which DEFAULTS to yes.
The Comments section is one of the most exploited sections I have seen - with sites whose admins are not as active over run with comments that contain nothing but gambling links, etc.
So I wanted to default this to NO in the Submit stories area - as some people may WANT comments, but not on the majority of stories. After digging through the code, I found modules/News/admin/index.php to have the format, but am just missing this section for some reason - anybody have any ideas?
I see the part at the top with 'put in home' and it may just be the fact that I am falling asleep lol, but I just don't see it yet.
Input?
Thanks
-sting |
|
|
 |
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Jan 30, 2006 11:35 pm |
|
nuke_config table - column name articlecomm - Change default to 0 (ZERO) |
|
|
|
 |
sting

|
Posted:
Tue Jan 31, 2006 11:07 am |
|
Have changed the default value but it still doesn't apply to the New Story. Interesting. . . .
GRRRR that it was in the tables and not in the code. GRRRR that I didn't see that.
Need more sleep, less caffeine.
-sting
says "GRRRRR" like a pirate says "ARGGHHHH"
or something |
|
|
|
 |
sting

|
Posted:
Tue Jan 31, 2006 11:18 am |
|
Are you sure that this isn't the field that links up with the ADMIN/PREFS Activate Comments in Articles?
That isn't the one I am looking for. . .
-sting |
|
|
|
 |
Raven

|
Posted:
Tue Jan 31, 2006 11:23 am |
|
You are correct - sorry. You want the nuke_stories table, column acomm |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Jan 31, 2006 11:30 am |
|
I think what he wants is in modules/News/admin/index.php
Under function adminStory()
You should have a line
Code:
puthome($ihome, $acomm);
|
Change $acomm to 1 - that should do it
...
To be really correct, we shouldn't use those undefined variables at all. Since puthome does check for empty strings, we could just do that
Another notice error plugged |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
midulsterracing
New Member


Joined: Dec 01, 2005
Posts: 2
|
Posted:
Sun Jun 25, 2006 6:35 am |
|
sting:
did any of these solve your problem? |
|
|
|
 |
sting

|
Posted:
Sun Jun 25, 2006 7:10 am |
|
I did not get to evaders' suggestion - but the previous suggestions did not work - for now I simply make sure I check 'No' each time. Will revisit it one day. . .
-sting |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Jun 25, 2006 8:06 am |
|
It appears to be working in the 2.10.00 RN release and I believe Evaders made the fix there. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
midulsterracing

|
Posted:
Sun Jun 25, 2006 9:36 am |
|
yes. evaders fix stops the comments from showing with the article on the front page and the "read more".
i wonder if there is a way to delete all comments from all articles in one go through the database? |
|
|
|
 |
montego

|
Posted:
Mon Jun 26, 2006 8:26 am |
|
Absolutely there is.
truncate table nuke_comments;
or even
delete from nuke_comments; |
|
|
|
 |
|