Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-09-2004, 05:46 PM
CarCdr CarCdr is offline
 
Join Date: Apr 2004
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Document Management -- Idea Feedback

Looking for feedback/critique of the following idea before I begin...

We have to implement some simple form of document management. The current state of affairs with attachments does not lend itself at all to document management. We could adapt a document manager for vB use, but what we would like is something minimal that fits the existing paradigm of forums/threads/posts.

Here's an idea I came up with at a meeting we had this morning. It is minimal as hell, but it should do the job.

Highlights

* A thread can be tagged as a "Document Thread" in the "Manage Attachments" popup window.

* A Document Thread offers/maintains a document or a set of related documents -- known as the "document set".

* The most recent post in a thread with attachments contains the document set. Previous posts with attachments are the document history.

* threadbit template (forumdisplay) displays the document set name(s) so you can distinguish a document thread and see more quickly what the doc's are. These are displayed as a link that takes you to the post containing the attachments.

* SHOWTHREAD template displays the document set name(s) at the top of every page as per the threadbit change above.

* A post (new thread or new post) can only have its documents changed as long as it is the last post in the thread. This prevents the history from getting out of whack.

Just to review the point about the most recent "post with attachments" containing the document set:

The only place one needs to look to find the current document set, is the most recent post in the thread that has attachment(s). The SQL code to find them is like this (in pseudo-code):
Code:
  DOC_POSTID = SELECT postid from post
             WHERE (post.threadid=XXX AND post.attach>1)
             ORDER by dateline DESC LIMIT 1
  SELECT ... from attachment
             WHERE postid=DOC_POSTID
There is no check that the document set is the same as what it started out to be. If the document set goes form 1 file to 2 files, so be it.

Files and Templates Affected

1. newattachment.php
Support for "Thread is a document thread" option.

2. newattachment template
Support for "Thread is a document thread" option.

3. thread table
New column to support for "Thread is a document thread" option.

4. construct_edit_toolbar function
Called by newthread.php, newreply,php, and editpost.php

Sets flag saying whether attachment popup is allowed. Remember, a post can only have attachments added/edited if it is the last post in the thread. Obviously, this would apply to the first post in a new thread.

5. SHOWTHREAD template, threadbit template
Display document names.

6. showthread.php and forumdisplay.php
Generate document names.

7. newpost_attachment template
Show "Manage Attachments" button only if allowed.

Comments?
Reply With Quote
 


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 08:00 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.03541 seconds
  • Memory Usage 2,252KB
  • 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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • 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_threaded
  • showthread_threaded_construct_link
  • 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