Version: 2.2.8, by AndrewD
Developer Last Online: Apr 2010
Category: Major Additions -
Version: 3.6.x
Rating:
Released: 06-18-2006
Last Update: 02-03-2008
Installs: 661
DB Changes Uses Plugins
Additional Files Translations
No support by the author.
Version 2.3.0 of LDM is now the official release. This works with both VB3.7 and VB3.8. You can obtain it here
Version 2.2.8 remains available here, with limited support.
04.02.08: patch-cat.xml 'extra' uploaded - see first post for information
27.10.07: Version 2.2.8-post1 uploaded
French translation of product installer uploaded (other language translations are in the main release zip)
Remember to back up your current database tables before upgrading.
What this is and does
LDM is a general-purpose link and file manager, which handles user uploads and downloads in a flexible way. A range of media players is integrated into LDM and others are included as plugin extras. LDM is described below in the first post of this thread, which also contains a brief list of the currently-known bugs.
This release of LDM works correctly with all VB versions 3.6.x and recent versions of vbadvanced.
The file local_links_init.php is contained in the includes/ subdirectory of the release zipfile and uploaded into the forums/includes/ subdirectory.
Open the file using a text editor and find these lines:
Code:
if ($_SERVER["DOCUMENT_ROOT"]) {
define('LDM_DOCUMENT_ROOT', $_SERVER["DOCUMENT_ROOT"]);
}
else {
// If you are running the IIS web server in CGI mode on Windows or if otherwise warned, uncomment and edit this line
// define('LDM_DOCUMENT_ROOT', '/path/to/your/site');
}
You can generally figure out what is your '/data/www-root/mysite' by going to your vbulletin/admincp/maintenance/php info page, and taking a look at the listing. I can't easily tell you what line to look for, as I do not have a windows-based IIS server available.
If you have problems with this, send me a PM with site details and a username/password for an account with admin privs on your board, and I'll take a look myself.
I've installed this great hack but I have a problem with downloading files.
I have set local_file_root to yes and local_file_root_prefix to a folder outside the location of my website Let's say for example: /home/mysite/mysite_upload
I have set recursively chmod 777 to this folder.
Then I have set upload_dir=/uploadsdir
So in theory, when I upload a file, for example story.doc in the site, I should have a new file on the server here (I have set force_redirect=1):
And it's basically what happens. Everything is working fine for the upload. But when I try to download this file from the site, I get this error:
Not Found
The requested URL /uploadsdir/1/871312035211987207.doc was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have read this thread, I can't find the explanation for this problem. I have checked that seo_friendly is set to no. I have checked the read rights on uploadsdir, everything is looking fine.
Does someone have an idea on this ?
Cheers.
I've installed this great hack but I have a problem with downloading files.
I have set local_file_root to yes and local_file_root_prefix to a folder outside the location of my website Let's say for example: /home/mysite/mysite_upload
I have set recursively chmod 777 to this folder.
Then I have set upload_dir=/uploadsdir
So in theory, when I upload a file, for example story.doc in the site, I should have a new file on the server here (I have set force_redirect=1):
And it's basically what happens. Everything is working fine for the upload. But when I try to download this file from the site, I get this error:
Not Found
The requested URL /uploadsdir/1/871312035211987207.doc was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have read this thread, I can't find the explanation for this problem. I have checked that seo_friendly is set to no. I have checked the read rights on uploadsdir, everything is looking fine.
Does someone have an idea on this ?
Cheers.
The problem is (I think) that you have set force_redirect to 1, which is telling LDM to do a browser redirect to access the file. However, because you are storing the files *outside* the web server directory tree, this is impossible. You either need to set force_redirect to 0 or store the files within the web server tree by having local_file_root set to 'no'.