vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Store Avatars and ProfilePics use fetch_attachment_path to location (https://vborg.vbsupport.ru/showthread.php?t=95471)

nexialys 09-01-2005 11:30 PM

Store Avatars and ProfilePics use fetch_attachment_path to location
 
strange request, it may be a little challenge for myself, but also a great deal for people that hates to have a lot of directories... example for user #1340:
Quote:

attach_path/1/3/4/0/1.attach
attach_path/1/3/4/0/1.thumb
attach_path/1/3/4/0/avatar1340_1.gif
attach_path/1/3/4/0/picture1340_1.gif
this is my interest... having the avatars and profile pictures stored in the same place we store the attachments... i'm going to do it for myself if i have nobody to help, but it would benefit everybody around, i think.. ;)

someone to help ?

also, it would be a plus if we can use the same technique to call the attachment thumbnails, to stop the hotlinking of images, so instead of shooting the url of the avatars, we display it's content from a file call: like image.php?u=1340&type=avatar

Andreas 09-01-2005 11:39 PM

Every layer adds overhead, therefore I prefer having directly accesable Images.
Hotlinking can be "stopped" with mod_rewrite


All times are GMT. The time now is 10:38 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.01067 seconds
  • Memory Usage 1,709KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (2)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