

![]() |
| | Thread Tools | Display Modes |
| |||
| If itīs too difficult you could also change discard at Admin - News Management to delete since discard is this still available through the admin menu at the article itself (I use that in 99% of all cases).
|
| |||
| No adjustments needed.
|
| |||
|
Would this have an affect on loading time? Also how do I remove everything from 2007 from the database!
|
| ||||
|
works like a charm..thanks
|
| |||
| Quote:
2. I'm assuming you mean delete ALL stories from before 2007 and not just discarded ones since the original mod already does this. Here is an UNTESTED solution: In admin_delete_stories.php, find: $sql_query = "SELECT * FROM " . table_links . " WHERE link_status = 'discard'"; and replace with: Code: $sql_query = "SELECT * FROM " . table_links . " WHERE link_date < '2008-01-01 00:00:00'"; |
| |||
|
Wonderful Hack !!!!
|
| |||
|
Hey thanks fingerprn, I will try that when I get home! But you know what I have been doing but it's a slow process! I have searched for all queued stories and I discarded the last like 125 pages! and then I deleted all discarded stories and it seems to have worked well! This mod is pretty cool! |
| |||
|
Thanks a lot for this!
|
| ||||
|
Excellent! 331 discarded stories deleted and the database was optimized! :-D
|
| |||
| Quote:
First you have to change the database tables: Code: alter table your_table_name_links change link_status link_status enum('discard','queued','published','abuse','duplicated','hidden') NOT NULL default 'discard';
insert into your_table_name_totals (`name`, `total`) values ('hidden', 0); Thatīs it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Url Method 2 works for everything except stories | coreyvf | Questions and Comments | 2 | 10-11-2009 02:07 AM |
| Voting method 2, displaying stories in order of rating | radaro | Questions and Comments | 4 | 02-03-2008 02:44 AM |
| v9.5: Comments to discarded stories | tbones | Questions and Comments | 6 | 01-28-2008 07:49 AM |
| Clicking on a tag reveals stories that have been discarded | kbeeveer46 | Questions and Comments | 0 | 08-07-2006 01:36 AM |
| User vote count shouldn't include discarded stories | gragland | Questions and Comments | 0 | 07-26-2006 09:14 PM |