PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sting
Involved
Involved


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

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

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: 15062
Location: Kansas

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

nuke_config table - column name articlecomm - Change default to 0 (ZERO)
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sting
Involved
Involved


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

PostPosted: Tue Jan 31, 2006 11:07 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sting
Involved
Involved


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

PostPosted: Tue Jan 31, 2006 11:18 am Reply with quote Back to top

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
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: 15062
Location: Kansas

PostPosted: Tue Jan 31, 2006 11:23 am Reply with quote Back to top

You are correct - sorry. You want the nuke_stories table, column acomm
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2796

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

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
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 Back to top

sting:

did any of these solve your problem?
View user's profile Send private message
sting
Involved
Involved


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

PostPosted: Sun Jun 25, 2006 7:10 am Reply with quote Back to top

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


Joined: Aug 29, 2004
Posts: 7339
Location: Arizona

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

It appears to be working in the 2.10.00 RN release and I believe Evaders made the fix there.
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 9:36 am Reply with quote Back to top

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?
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7339
Location: Arizona

PostPosted: Mon Jun 26, 2006 8:26 am Reply with quote Back to top

Absolutely there is. Wink

truncate table nuke_comments;

or even

delete from nuke_comments;
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum