vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Attachemnts outside DB (https://vborg.vbsupport.ru/showthread.php?t=203191)

Xtrato 01-26-2009 07:57 PM

Attachemnts outside DB
 
Is there a hack that allows this? an attachment outside the actual database, im helping a customer and his old wm didnt installed something , so his database is 700MB!!! , its crazy.. hard time porting it over..

So is there a hack that does this, saving attachments outside database.

Thanks you for your time.

--------------- Added [DATE]1233007200[/DATE] at [TIME]1233007200[/TIME] ---------------

i think i found where..
However , now how do i move the attachments FROM database to like some other place , yet still retaining the post and images.

Thanks

cellarius 01-26-2009 08:05 PM

That's basic vB functionality, no need for a mod. Go to AdminCP, Attachments, the last menu entry there (dont know exact english phrasing, mine is German). Something like Save mode. There you can move the attachments from the database to the file system and vice versa.

Nothing will break if you use this. After you moved the attachments to file system, you there can move them to another folder, too.

Lynne 01-26-2009 08:15 PM

You need to create a folder first to move them to. Make sure to chmod it to 777 and it should be above your forum root. Then just go to Attachments > Attachment Storage Type > Move to Filesystem (or something like that) and it will ask for where and you put in the full path (/home/yoursite/attachments) and then Continue

Xtrato 01-26-2009 09:15 PM

ok thank you both

another quick question, will the "Current" attachments be moved from the database into the newly created folder or no?

thanks

Lynne 01-26-2009 10:57 PM

Yes they will be moved.

Xtrato 01-26-2009 11:06 PM

Great stuff, thanks for the info! , hopefuly wont take years.

Dismounted 01-27-2009 04:03 AM

Also, you should place the attachments directory behind the web root (i.e. /home/user/attachments, not /home/user/public_html/attachments).

Xtrato 02-04-2009 05:29 PM

oh ,

i already moved them to pubilc_html/etc/ , if i change directories , will it also move the files once again?

thanks

lasto 02-04-2009 05:42 PM

Quote:

Originally Posted by Dismounted (Post 1725864)
Also, you should place the attachments directory behind the web root (i.e. /home/user/attachments, not /home/user/public_html/attachments).

Can u explain why - and will members still be able to access that Dir - reason asking is because i have my attachment folder inside the VB folder.

Cheers

Lynne 02-04-2009 08:18 PM

From the manual:

Quote:

The attachment file path is the location on your server that you wish to store attachments in. We suggest you create a path that is above your web root, which means a directory that is not below public_html. If you wish to create the directory in your web root, we then suggest you place a .htaccess file to block people from accessing it directly. If you do not do this, then anyone will be able to open your attachments directly by navigating this directory in their browser.


All times are GMT. The time now is 03:30 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.01016 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete