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 02-03-2006, 02:28 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachments Anywhere

Right now, attachments are attached to posts. I suggest that this be modified to not attach them to anything.

The attachment interface should be an independent thing - accessible from posts, private messages and external scripts.

When you create an attachment, it would be linked - as it is now- in your profile. You could delete and add attachments from your profile if you so choose. Each user would have a quota.

Attachments could be referenced in a post, private message or external script. If the user deletes the entity that has an attachment referenced in it, the user would be prompted asking if they want to delete the attachment.

Attachments could be cross-referenced. Users could reference other people's attachments by id.

If an attachment is deleted but other references remain to it, they would simply show a message or image stating that the attachment has been deleted.

There wouldn't be any need to ensure that all references are gone before an attachment is deleted.

The user who creates this mod will have effectively created file uploads for every script out there that needs user-owned file uploads. And, it will give users a single interface to control their files - gallery pictures, documents, userpage pictures, whatever.
Reply With Quote
  #2  
Old 02-03-2006, 03:17 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isn't that what the [attach] bbcode is for?
Reply With Quote
  #3  
Old 02-03-2006, 05:38 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there an interface to upload attachments aside from in posts? Have you tried using the attach bbcode in other places besides posts?
Amy
Reply With Quote
  #4  
Old 02-04-2006, 12:41 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree with you Amy.

One of the most important things for me was to be able to see attachments when a post was quoted. Imagine you want to compliment a user on a picture and when you quote their post the picture is not shown, this was a problem.

So I modified the template to require my members to use the [attach ] bbcode in order to see any image. In addition I modified the php code to allow displaying [attach ] bbcodes in any post even when the attachment was not originally attached to that particular post.

This has worked very well and has made quoting posts that have pictures very useful.
Reply With Quote
  #5  
Old 02-04-2006, 02:04 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was working on an upload system a week or 2 ago, and I also noticed this. After realizing I couldn't do this without major file edits (and tons of plugin code), I just ditched the idea alltogether and used the filesystem.

So yeah, I second this.
Reply With Quote
  #6  
Old 02-20-2006, 06:22 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been thinking about this some.

What if we had something called a node with an associated nodeid. An attachment could attach to a node instead of a post.

So, pms could be nodes, posts could be nodes, quiz questions could be nodes, journal entries could be nodes, etc.

When we add an object to the database, we would first add a new node and then put the nodeid on the post, pm, whatever.

Then, if we delete the pm, post, whatever, we also go zap the node and any associated attachments.

Amy
Reply With Quote
  #7  
Old 02-20-2006, 06:49 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a blog system which uses vb's attachment system flawlessly.*
The same technique could be used for anything.

The only thing I did was to modify the attachment table (I added a 'blogentryid' field) and 1 plugin. (Ahh, now that I think of it, I believe the plugin was for thumbnail display for all users--not sure--or it could be both--damn, can't remember.)

CLUE: The trick is to fetch the permissions for attachments (from a pre-defined forum).

*no vb files edits necessary
Reply With Quote
  #8  
Old 02-20-2006, 07:22 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, there is hope. It might not be that difficult at all to work out an attachment system we could all hook into.
Reply With Quote
  #9  
Old 02-20-2006, 07:30 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the only difficult part is modifying the attachment table ... and we know how hard that is
Reply With Quote
  #10  
Old 02-20-2006, 07:38 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

horribly difficult. Will take me all of 10 seconds
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 02:01 PM.


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.04513 seconds
  • Memory Usage 2,255KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete