vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Attachments Anywhere (https://vborg.vbsupport.ru/showthread.php?t=107066)

amykhar 02-03-2006 02:28 PM

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.

harmor19 02-03-2006 03:17 PM

isn't that what the [attach] bbcode is for?

amykhar 02-03-2006 05:38 PM

Is there an interface to upload attachments aside from in posts? Have you tried using the attach bbcode in other places besides posts?
Amy

Andy 02-04-2006 12:41 AM

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.

Adrian Schneider 02-04-2006 02:04 AM

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.

amykhar 02-20-2006 06:22 PM

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

Princeton 02-20-2006 06:49 PM

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

amykhar 02-20-2006 07:22 PM

So, there is hope. It might not be that difficult at all to work out an attachment system we could all hook into.

Princeton 02-20-2006 07:30 PM

the only difficult part is modifying the attachment table ... and we know how hard that is ;)

amykhar 02-20-2006 07:38 PM

horribly difficult. Will take me all of 10 seconds :D


All times are GMT. The time now is 12:55 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.01197 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete