Thread: Major Additions - Links and Downloads Manager
View Single Post
  #375  
Old 09-24-2006, 09:26 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dholt
Noob Question but do I have to create folders for all uploads and if so do I enter the fulll path to it or just the URL. were does it store the files.

How should I set it up

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/file_icons_dir
root/forums/images/thumbs_dir

chkmd to 777

Also I am not sure of this sitting/ local_file_root_prefix

I'm not sure what to put in this box even after reading.

Thanks and sorry for being such a noob with this.
I realise that I have not given you an answer. Sorry.

You'll find each of these parameters explained in the on-line wiki - see first post - but you may have to dig around a bit.

You suggest this set up..

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/thumbs_dir

This is fine, except:

- you do not need a directory root/forums/images/file_icons_dir. Assuming you have placed the contents of the /icons directory in /root/forums/images/ldm_icons, you should point the LDM setting file_icons_dir at images/ldm_icons (i.e. omit forums/ from the setting).

- I would be inclined to put the thumbs_dir outside your forums directory.

Uploads are automatically stored in subfolders underneath (in your example) your LDM_uploads directory. You need to create the LDM_Uploads and chmod it to 777; LDM will do the rest.

local_file_root_prefix and local_file_root

These are optional settings, used to increase security. They modify where LDM looks to find entries stored on the web server. It thinks an entry is on the server if the entry you provide in the Add Entry form has no url (i.e. you specify it as /dir/file.typ rather than as http:// site/dir/file.typ)

If local_file_root is off (by default), then LDM assumes that the entry can be found in the web directory, i.e. in the example given, in subdirectory dir immediately underneath the web root.

If local_file_root is on, then LDM assumes that the entry is found in directory /dir in the local file system of the web site. This is usually not the same place as the web site's root.

local_file_root_prefix is used to 'include' a standard prefix in front of all local file names, regardless of the setting of local_file_root. By default, it is blank. If you set it to /dir1/dir2, then (for the example I gave), LDM would look for the entry in directory /dir1/dir2/dir.

By adjusting these two parameters, you can place files on your local server out of reach of prying eyes and you can also limit the parts of the file system that LDM can get at. This is useful for security reasons.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01145 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete