Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Raven's RavenNuke(tm) v2.x Distro
Author Message
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Mon Jan 30, 2006 9:20 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Mon Jan 30, 2006 11:35 pm Reply with quote

nuke_config table - column name articlecomm - Change default to 0 (ZERO)
 
View user's profile Send private message
sting
PostPosted: Tue Jan 31, 2006 11:07 am Reply with quote

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
PostPosted: Tue Jan 31, 2006 11:18 am Reply with quote

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
PostPosted: Tue Jan 31, 2006 11:23 am Reply with quote

You are correct - sorry. You want the nuke_stories table, column acomm
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Jan 31, 2006 11:30 am Reply with quote

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
Code:


puthome("", "");

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! 
View user's profile Send private message Visit poster's website
midulsterracing
New Member
New Member


Joined: Dec 01, 2005
Posts: 2

PostPosted: Sun Jun 25, 2006 6:35 am Reply with quote

sting:

did any of these solve your problem?
 
View user's profile Send private message
sting
PostPosted: Sun Jun 25, 2006 7:10 am Reply with quote

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: 9449
Location: Arizona

PostPosted: Sun Jun 25, 2006 8:06 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
midulsterracing
PostPosted: Sun Jun 25, 2006 9:36 am Reply with quote

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
PostPosted: Mon Jun 26, 2006 8:26 am Reply with quote

Absolutely there is. Wink

truncate table nuke_comments;

or even

delete from nuke_comments;
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Raven's RavenNuke(tm) v2.x Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©