Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2004, 02:25 AM
Sal Collaziano Sal Collaziano is offline
 
Join Date: Dec 2001
Location: Royal Palm Beach, Florida
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Prune threads to flat files...

In an effort to keep a large database from growing far too large - I'd like to have a system in place that moves old discussions that haven't been replied to in XXX amount of days - into a flat HTML file.

I never prune messages. At my forums, people cringe at the thought of deleting our "history". Is there any possibility of this becoming a reality?
Reply With Quote
  #2  
Old 08-28-2004, 02:43 PM
SandsUSA SandsUSA is offline
 
Join Date: Oct 2002
Location: DELETETHISACCOUNT
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sal Collaziano
In an effort to keep a large database from growing far too large - I'd like to have a system in place that moves old discussions that haven't been replied to in XXX amount of days - into a flat HTML file.

I never prune messages. At my forums, people cringe at the thought of deleting our "history". Is there any possibility of this becoming a reality?
Yes, I've been looking for something like that - especially if it can run as a CRON job...
Reply With Quote
  #3  
Old 08-28-2004, 08:35 PM
Sal Collaziano Sal Collaziano is offline
 
Join Date: Dec 2001
Location: Royal Palm Beach, Florida
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SandsUSA
Yes, I've been looking for something like that - especially if it can run as a CRON job...
I'm glad I'm not the only one who thinks this is a good idea.. Hopefully others will chime in, positively, as well..

Anybody else out there?
Reply With Quote
  #4  
Old 08-28-2004, 08:51 PM
SandsUSA SandsUSA is offline
 
Join Date: Oct 2002
Location: DELETETHISACCOUNT
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sal Collaziano
I'm glad I'm not the only one who thinks this is a good idea.. Hopefully others will chime in, positively, as well..

Anybody else out there?
I'm sure there are issues like rights to see messages (it doesn't matter to me), each thread in a file or threads appended to a single file or single file per forum etc. The main thing for me is to make my database smaller since all the static "historical" threads are gone but not ir-retrieavable.

The "Show Printable Version" is almost perfect if it could be done based on a query and handle multiple threads...
Reply With Quote
  #5  
Old 08-29-2004, 12:48 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It might be simpler and better to have 'old' threads moved to a different database. I think it would add queries but it would at least keep the primary db smaller and faster and keep the archive dynamic and searchable. Since not many people search old threads anyway, the cost of the extra queries may not be too bad considering.
Reply With Quote
  #6  
Old 08-29-2004, 11:16 AM
Sal Collaziano Sal Collaziano is offline
 
Join Date: Dec 2001
Location: Royal Palm Beach, Florida
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That might not be a bad idea, Reeve of Shinra..

And regarding the 'rights' issue, maybe the flat html files could be located within the forum they were archived from - somehow. I'm not too sure how PHP and MySQL work so I don't know the limitations. But if they could be stored in the same area as the forum with the permissions they have to see them - it would be okay...
Reply With Quote
  #7  
Old 08-29-2004, 01:35 PM
SandsUSA SandsUSA is offline
 
Join Date: Oct 2002
Location: DELETETHISACCOUNT
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sal Collaziano
That might not be a bad idea, Reeve of Shinra..

And regarding the 'rights' issue, maybe the flat html files could be located within the forum they were archived from - somehow. I'm not too sure how PHP and MySQL work so I don't know the limitations. But if they could be stored in the same area as the forum with the permissions they have to see them - it would be okay...
That's fine if you want to have them searchable through "normal" searches... But personally, I'd like it completely exported to external files. That way, I could ZIP them up and allow them for download (maybe the download link in the forum home page for each formum). If a user wants to search, let 'em download the zip and use text searches.

I know this topic comes up now and again, and nobody wants to do it , but my database can't grow forever! Right now, I'm selectively pruning and that's a pain - not to mention NO archived threads is FAR worse than download/text-searching.
Reply With Quote
  #8  
Old 08-29-2004, 01:44 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician already wrote a hack to download threads as plain text.

Ok it doesn't look good if it's plain text, but the important things are there...
Reply With Quote
  #9  
Old 08-29-2004, 02:03 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

People have been begging for this hack for years because it will allow people with smaller budgets to store archived threads on a free web host. I'm surprised Jelsoft hasn't built it in yet given that so many of their customers are small-budget hobbyists.

Amy
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04147 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete