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)

cillianok 02-19-2008 10:34 AM

Quote:

Originally Posted by AndrewD (Post 1445870)
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 need to replace the line
Code:

//        define('LDM_DOCUMENT_ROOT', '/path/to/your/site');
by the correct directory path to your web site, e.g.:

Code:

        define('LDM_DOCUMENT_ROOT', '/data/www-root/mysite');

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.


as in, it lists this there:

PATH_TRANSLATED:
D:\hshome\liamdunne1\jacksiesbnb.com\forums\adminc p\index.php


so...?:

D:\hshome\liamdunne1\jacksiesbnb.com\forums


I hate being a noob at things again......
:D

AndrewD 02-19-2008 10:58 AM

Quote:

Originally Posted by cillianok (Post 1446535)
as in, it lists this there:

PATH_TRANSLATED:
D:\hshome\liamdunne1\jacksiesbnb.com\forums\adminc p\index.php


so...?:

D:\hshome\liamdunne1\jacksiesbnb.com\forums


I hate being a noob at things again......
:D

D:\hshome\liamdunne1\jacksiesbnb.com should do it

cillianok 02-19-2008 11:15 AM

good to go, thanks Andrew

dodjer42 02-19-2008 08:31 PM

Yes tried with IE as well. Same result.

Very bizarre.

local_links_admin.php?set=settings <--- acess works fine

But when I hit update in IE or Opera

local_links_admin.php <--- page not found

::erm:

AndrewD 02-20-2008 02:41 AM

Quote:

Originally Posted by dodjer42 (Post 1446870)
Yes tried with IE as well. Same result.

Very bizarre.

local_links_admin.php?set=settings <--- acess works fine

But when I hit update in IE or Opera

local_links_admin.php <--- page not found

::erm:

Would you like me to take a look at your site? If so, I will need *full* access to your vb admincp. Send me a PM if so.

totoy4 02-20-2008 01:48 PM

Hello everybody,

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):

/home/mysite/mysite_upload/uploadsdir/1/871312035211987207.doc

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.

AndrewD 02-20-2008 04:24 PM

Quote:

Originally Posted by totoy4 (Post 1447343)
Hello everybody,

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):

/home/mysite/mysite_upload/uploadsdir/1/871312035211987207.doc

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'.

totoy4 02-21-2008 07:57 AM

Thank you very much Andrew. That would explain. I'll try your second solution.

mri_mohammad 02-22-2008 04:14 PM

Quote:

Originally Posted by mri_mohammad (Post 1440836)
hi this is great hack but some body do something like that
see screenshot attached
how i can do something like that?

thanks for answer lol

AndrewD 02-22-2008 04:25 PM

Quote:

Originally Posted by mri_mohammad (Post 1448770)
thanks for answer lol

I did see your post, but it was not clear to me what you were asking. Are you wanting someone to design your website?


All times are GMT. The time now is 10:32 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.03928 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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