vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

AndrewD 11-10-2006 02:19 PM

Quote:

Originally Posted by amnesia623
I understand. So it *could* be used to upload/store dirs that are away from forum dirs, etc.

Just so

amnesia623 11-10-2006 02:21 PM

seems I edited my last post when you were replying.

can files be stored and called that are outside of the web root?

maroceve 11-10-2006 02:23 PM

What about integrating the newly uploaded file into a podcast xml file directly ? that'd be nice.

amnesia623 11-10-2006 02:24 PM

....and how can I protect my files that are uploaded so they can't be downloaded thru a direct request from the browser? I take it I have to mess with the directory permissions?

AndrewD 11-10-2006 02:30 PM

Quote:

Originally Posted by amnesia623
somehow, it works!

So is there anyway to control the trackname that is displayed in the wimpy player (yet?)

Thanks

Am working on that, this weekend...

amnesia623 11-10-2006 02:33 PM

Thank you so much for this add-on andrew, I really appreciate your hard work and efforts on this.

AndrewD 11-10-2006 02:40 PM

Quote:

Originally Posted by amnesia623
....and how can I protect my files that are uploaded so they can't be downloaded thru a direct request from the browser? I take it I have to mess with the directory permissions?

That's part of the point of the local_file_root setting. Once the files are held outside the web tree, a direct browser request cannot get at them. You have to use the various LDM scripts, either local_links?action=jump&id=NN to download item id NN and local_stream.php?action=stream&linkid=NN to stream it.

amnesia623 11-10-2006 02:49 PM

That's what I would like to do. I will go over to your online manual and see what it tells me to do! thanks again!

amnesia623 11-10-2006 03:09 PM

Please excuse my 1000's of questions, but I'm just trying to understand how to do this.

I want to store and stream files from this directory on my server:
home/user/uploadDir
my forums sit here:
home/user/public_html/forum/
In order to get LDM to open home/user/uploadDir (where files are stored) I have to turn on local_file_root and set local_file_root_prefix to home/user/uploadDir and then put this in the LDM wimpy plugin:
Code:

$sltype = strtolower($type);
if ($sltype=='mp3' or $sltype=='swf' or $sltype=='flv') {
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
    $wimpy_url = urlencode($wimpy_url);
    $player = "Wimpy";}

Is this correct? Or instead of using the local_file_root_prefix would I have to use the openbase_dir ?

Thanks again

AndrewD 11-10-2006 04:15 PM

Quote:

Originally Posted by amnesia623
Please excuse my 1000's of questions, but I'm just trying to understand how to do this.

I want to store and stream files from this directory on my server:
home/user/uploadDir
my forums sit here:
home/user/public_html/forum/
In order to get LDM to open home/user/uploadDir (where files are stored) I have to turn on local_file_root and set local_file_root_prefix to home/user/uploadDir and then put this in the LDM wimpy plugin:
Code:

$sltype = strtolower($type);
if ($sltype=='mp3' or $sltype=='swf' or $sltype=='flv') {
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
    $wimpy_url = urlencode($wimpy_url);
    $player = "Wimpy";}

Is this correct? Or instead of using the local_file_root_prefix would I have to use the openbase_dir ?

Thanks again

Almost correct, just one catch. You will need to set upload_dir as well as local_file_root_prefix, so you may find yourself with another subdirectory in there somewhere:

e.g. local_file_root_prefix - /home/user/files
upload_dir - /upload_dir
will put the uploads into subdirectories of /home/user/files/upload_dir


All times are GMT. The time now is 02:21 PM.

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.03415 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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