vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Attachments as files (https://vborg.vbsupport.ru/showthread.php?t=35193)

Courage 05-16-2003 08:42 PM

On a new vb 2.3.0 all is working OK, but

If I attach a file, then edit and add a new attachement, on my ftp i can see 2 files. The old file is not deleted !

Courage 05-19-2003 02:44 PM

It seems that suport for 2.3.0 is missing :(

rake 05-19-2003 03:44 PM

Scott missed adding removeattachment() in a few places in editpost.php ;)

Courage 05-19-2003 06:04 PM

@rake

Solutions ? :D

angelo70 05-27-2003 10:48 PM

The user who uses the Advanced Attachmentbox v1.0
HACK:

functions.php
FIND:
$DB_site->query("INSERT INTO attachment (attachmentid,userid,dateline,filename,visible,has h) VALUES (NULL,$bbuserinfo[userid],".time().",'".addslashes($attachment_name)."','$v isible','$attachment_hash')");

and replace it with:
$DB_site->query("INSERT INTO attachment (attachmentid,userid,dateline,filename,filedata,visible,hash) VALUES (NULL,$bbuserinfo[userid],".time().",'".addslashes($attachment_name)."','$filesize','$visible','$attachment_hash')");


Open Showthread.php
Search for this (2 times on a unhacked vB, Line 55 , 410):
attachment.counter

and replace it with:
attachment.counter,attachment.filedata AS attachsize

displays the filesize of the attachments :rolleyes:

Intex 05-29-2003 12:14 PM

Is it possible to get an explanation of what happens during the installation process. Obviously files are going to get saved as attachments, but it doesn't say anything other than that on the thread or instructions. Specifically it would be good to know:
  1. Does this apply to attachments from once this hack is installed
  2. If it does go through the database and store them as files, how do you control where they go?
  3. How are these linked

Thanks for any help.

rake 05-30-2003 03:21 PM

1. Yes. Attachment are ported during the installation process.
2 and 3. Only the [data] is stored in files. Other information related to attachments is still stored in the database.

Intex 06-01-2003 05:18 PM

Thx for the reply rake. However, can you specify what folder these attachment files are stored upon installation / after installation?

minder 06-09-2003 01:17 AM

just installed it on my 230 board with no problems thanks for a great hack

rob

Tim Wheatley 06-13-2003 06:01 PM

Quote:

04-05-03 at 10:42 AM Scott MacVicar said this in Post #302
and there has been 2 users who upgraded to vB3 as well as using this hack, I provided a script to do so and you only need vB 2.2.9 to upgrade to vB3.

Any news on this for the beta 3?


All times are GMT. The time now is 09:19 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.01394 seconds
  • Memory Usage 1,735KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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