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)

Alfa1 02-11-2008 04:26 PM

That indeed looks very nice. Especially the way to display part one and two.

versionist7 02-12-2008 12:36 AM

Hi. Could use a little help here-
In Links and Downloads in Admin panel-

for: can_edit_link
Usergroups that can edit existing links. (Users can always edit their own links.)

Well, that's not true for my forum- Users cannot seem to delete their music tracks.

And if I go to:

can_edit_link
Usergroups that can edit links.

And, I enable Users- well, that's global, so anyone can delete anyone else's tracks. What do you think is wrong here?

Thanks,
Steve

dodjer42 02-18-2008 08:37 AM

I've been using LDM for ages and love it. I just moved my forum from one site to another and some of the links come up with this error:

"Sorry - link is not currently available"

Any ideas?

AndrewD 02-18-2008 09:55 AM

Quote:

Originally Posted by dodjer42 (Post 1445787)
I've been using LDM for ages and love it. I just moved my forum from one site to another and some of the links come up with this error:

"Sorry - link is not currently available"

Any ideas?

Are the broken links pointing to documents on your own server or somewhere else? Check if the local documents use urls that are relative to the local server or full urls. Also check the admin settings local_file_root and local_file_root_prefix. If you are using a reasonably recent version, the easiest way to check these is with admin/categories/mass edit.

cillianok 02-18-2008 12:04 PM

<i>
2. If your web site runs on Microsoft's IIS web server in cgi mode (you can find this out by looking at the main VB admincp page), a key php environment variable DOCUMENT_ROOT is not defined by default. This causes serious problems with the placement of files on your server. LDM detects this problem and issues a fatal error if necessary. If this occurs, edit includes/local_links_init.php and define the constant LDM_DOCUMENT_ROOT. The code highlights where to make the edit. Alternatively, you can patch your web server to define DOCUMENT_ROOT correctly.
</i>

I'm getting this error:

=======================================
Unexpected critical failure
Critical Error: Document Root not set, Edit local_links_init.php
=======================================

I'm assuming this is the error you mentioned?

How/where do I "define the constant LDM_DOCUMENT_ROOT"

or How do I patch the server?

thanks..

AndrewD 02-18-2008 12:30 PM

Quote:

Originally Posted by cillianok (Post 1445855)

2. If your web site runs on Microsoft's IIS web server in cgi mode (you can find this out by looking at the main VB admincp page), a key php environment variable DOCUMENT_ROOT is not defined by default. This causes serious problems with the placement of files on your server. LDM detects this problem and issues a fatal error if necessary. If this occurs, edit includes/local_links_init.php and define the constant LDM_DOCUMENT_ROOT. The code highlights where to make the edit. Alternatively, you can patch your web server to define DOCUMENT_ROOT correctly.


I'm getting this error:

=======================================
Unexpected critical failure
Critical Error: Document Root not set, Edit local_links_init.php
=======================================

I'm assuming this is the error you mentioned?

How/where do I "define the constant LDM_DOCUMENT_ROOT"

or How do I patch the server?

thanks..

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.

dodjer42 02-18-2008 09:05 PM

Quote:

Originally Posted by AndrewD (Post 1445803)
Check if the local documents use urls that are relative to the local server or full urls. Also check the admin settings local_file_root and local_file_root_prefix.

Yes local_file_root_prefix was incorrect. However whenever I try to change it to the correct page, I hit the update button and I get an error message that:

<path>/local_links_admin.php

Is unavailable.

Thanks for the quick support btw :P

Should I try editing the init file manually?

AndrewD 02-19-2008 02:59 AM

Quote:

Originally Posted by dodjer42 (Post 1446219)
Yes local_file_root_prefix was incorrect. However whenever I try to change it to the correct page, I hit the update button and I get an error message that:

<path>/local_links_admin.php

Is unavailable.

Thanks for the quick support btw :P

Should I try editing the init file manually?

I don't really understand this, as you are already on the admin page? You haven't renamed the scripts, have you? The define statements at the start of the local_links_init.php file should point to the various mail ldm script files, in particule ADMIN_SCRIPT.

dodjer42 02-19-2008 06:52 AM

Quote:

Originally Posted by AndrewD (Post 1446360)
I don't really understand this, as you are already on the admin page?

Under admin/categories/LDM settings I go to the local_file_root_prefix setting and input the full path on the new server. I then click the update button and I get page not found. So the change never gets made. Yes I am already on that page - so it does exist.

I havent renamed anything.

AndrewD 02-19-2008 07:20 AM

Quote:

Originally Posted by dodjer42 (Post 1446427)
Under admin/categories/LDM settings I go to the local_file_root_prefix setting and input the full path on the new server. I then click the update button and I get page not found. So the change never gets made. Yes I am already on that page - so it does exist.

I havent renamed anything.

Just to rule out the obvious, have you a) tried clearing the browser cache and b) tried a different browser?


All times are GMT. The time now is 11:34 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.02916 seconds
  • Memory Usage 1,756KB
  • 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