vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Pre-Sales Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=26)
-   -   Image uploader (https://vborg.vbsupport.ru/showthread.php?t=74937)

ZEJUX 01-23-2005 04:56 PM

Image uploader
 
Is there a mod here that would make it so that when a user signs up he can use an image uploader to put images onto the site and all images will be saved in folders seperated by the username he signed up on the vBulletin forums with? (I hope that made sense, if it didn't I'll try to explain it better)

Thanks,
ZEJUX

jokaroo 02-09-2005 08:23 AM

Very cool idea...

Marco van Herwaarden 02-09-2005 08:44 AM

If you set attachments to be stored in the file system instead of in the database, this is already done.

Files are not stored on username, but on userid.

For example if your attachment base-dir is set to 'forum/files', and a member with userid 123 uploads an attachment (picture, zip file or whatever), this file would be stored on the server in the directory:
'forum/files/1/2/3/'

Files are placed in subdirectory names made up from splitting all the number from the userid.

So member with userid = 98, would use directory:
'forum/files/9/8/'


All times are GMT. The time now is 08:15 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.01509 seconds
  • Memory Usage 1,708KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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