Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2007, 10:30 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
v9.5: Comments to discarded stories

Is it intentional that comments to discarded stories wonŽt get discarded themselves?

If yes, IŽd like to get them discarded because they make discarded stories visible again
- through the profile view (minor risk) OR (if quite new)
- through the lastest comments sidebar (major risk).
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 03:31 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
For #2, in sidebar_comments.php

SourceForge.net Repository - [pligg] View of /branches/9.x/sidebar_comments.php

Find line 26 and change it to
PHP Code:
$res "select comment_content,comment_id,link_id from ".table_comments.",".table_links." WHERE comment_link_id = link_id AND link_status != 'discarded' ORDER BY comment_date DESC limit ".comments_size_sidebar.""
I haven't tested it but I think it may work
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 07-18-2007, 03:44 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Does not work, thank you anyway.

Would this link_id work for this problem (http://forums.pligg.com/suggestions/...nt-link.html)?
Reply With Quote
  #4 (permalink)  
Old 07-19-2007, 04:01 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Another option would honour the performance of the commenters:
Leave the comments where they are and display instead of the story text a message "This story has been discarded".

Edit: Only if there are any comments so far!
Reply With Quote
  #5 (permalink)  
Old 07-19-2007, 02:15 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by tbones View Post
Another option would honour the performance of the commenters:
Leave the comments where they are and display instead of the story text a message "This story has been discarded".

Edit: Only if there are any comments so far!
I thought about different realizations and discovered that this is the easiest one:
Modify the edit link for admins that there is a button "Change to discard message". This button changes (the title to "Administrator message" and) the description to "This story has been discarded".

What do you think about it?

Last edited by tbones; 08-10-2007 at 03:42 AM.. Reason: title change is not that necessary
Reply With Quote
  #6 (permalink)  
Old 07-29-2007, 10:17 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Since there is no solution for my last post I would like to have an admin link delete comments next to edit. If I discard a story the related comments can be some days old. It really hard to find them at the comment management panel then.
Reply With Quote
  #7 (permalink)  
Old 01-28-2008, 06:49 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Here is a radical solution to get rid of discarded stories: Method for deleting discarded stories
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Method for deleting discarded stories fingerprn Modification Tutorials 85 10-19-2008 12:02 AM
v9.5: Deletion of comments tbones Bug Report 3 07-07-2007 01:50 PM
Pligg beta 9.5 [updated] kbeeveer46 Current Version 0 04-29-2007 09:58 PM
Clicking on a tag reveals stories that have been discarded kbeeveer46 Bug Report 0 08-07-2006 12:36 AM
User vote count shouldn't include discarded stories gragland Bug Report 0 07-26-2006 08:14 PM


Search Engine Friendly URLs by vBSEO 3.2.0