vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

AndrewD 10-26-2006 05:20 AM

Quote:

Originally Posted by zooki
I still have a problem from a few weeks back,

I moved to a new server and since then LDM does not work.

My files are in the right place, i have even upgraded my ldm, i get the following error:

Sorry - link is not currently available

Im really puzzled as to why i get this message. I hope you can help me. thanks

Did you by any chance move from a server that was running Apache to one that is running Windows IIS with php in cgi mode? (You can find out on your VB/admincp home page.)

By default, IIS in cgi mode does not provide one of the location variables (DOCUMENT_ROOT) that LDM uses to find files on your local server.

If this is the problem, there are three possible solutions:
- get DOCUMENT_ROOT defined (I'm not an expert on configuring web servers, so get some advice or search on Gogle)
- upgrade to version 2.2.6 which fixes this problem - you have to make a small code change
- use the LDM admin settings local_file_root and local_file_root_ settings to get LDM pointed at the right place in your server file system.

If this is not the problem, send me a PM and I'm happy to take a look at your site.

zooki 10-26-2006 07:14 PM

Quote:

Originally Posted by AndrewD
Did you by any chance move from a server that was running Apache to one that is running Windows IIS with php in cgi mode? (You can find out on your VB/admincp home page.)

By default, IIS in cgi mode does not provide one of the location variables (DOCUMENT_ROOT) that LDM uses to find files on your local server.

If this is the problem, there are three possible solutions:
- get DOCUMENT_ROOT defined (I'm not an expert on configuring web servers, so get some advice or search on Gogle)
- upgrade to version 2.2.6 which fixes this problem - you have to make a small code change
- use the LDM admin settings local_file_root and local_file_root_ settings to get LDM pointed at the right place in your server file system.

If this is not the problem, send me a PM and I'm happy to take a look at your site.

HI, no im not on Windows server, it is a linux server. Although it is clustered.

i am not sure about local_file_root and local_file_root_settings

my files are in a folder off the root, so they are in a folder called files/

I get the following error:

The following setting(s) are invalid
upload_dir : /files
Directory /files (/mnt/Target01/var/www/files) doesn't exist and I can't create it

Its got the wrong address to my root... I know what the correct path should be, LDM is missing part of the address

how would i configer it? I have no clue either. :(

EDIT:
OK, i got it to work, what i did was edit the local_links_init.php ....... should i be editing the local_links_init.php ? what else can i use apart from the document_root? I tried adding a line underneath in the part you meant to define your own document root. It works now.

AndrewD 10-27-2006 04:51 AM

Quote:

Originally Posted by zooki
HI, no im not on Windows server, it is a linux server. Although it is clustered.

i am not sure about local_file_root and local_file_root_settings

my files are in a folder off the root, so they are in a folder called files/

I get the following error:

The following setting(s) are invalid
upload_dir : /files
Directory /files (/mnt/Target01/var/www/files) doesn't exist and I can't create it

Its got the wrong address to my root... I know what the correct path should be, LDM is missing part of the address

how would i configer it? I have no clue either. :(

EDIT:
OK, i got it to work, what i did was edit the local_links_init.php ....... should i be editing the local_links_init.php ? what else can i use apart from the document_root? I tried adding a line underneath in the part you meant to define your own document root. It works now.

I think you've probably taken the best approach. If the environment variable DOCUMENT_ROOT is not pointing at the right base directory for your site, then you'll et the problem you reported. Editing local_links_init.php is fine - just remember what you did in case you ever upgrade to a new version of LDM.

efil 10-29-2006 06:08 PM

Hi,
I get this message when i try to add a new link:

Quote:

Sorry - links to offsite downloads have been disabled. http://img140.imageshack.us/img140/9...nglish2zd3.jpg

AndrewD 10-29-2006 06:15 PM

Quote:

Originally Posted by efil
Hi,
I get this message when i try to add a new link:

Go to LDM/admin/settings/security and access controls

Check that allow_remote_downloads is on

efil 10-29-2006 07:19 PM

Thank you!

It's working.

mathias 01-07-2007 03:04 AM

I want to put the last 10 links on a non vb page how would I go about that?

AndrewD 01-07-2007 04:03 AM

Quote:

Originally Posted by mathias (Post 1152358)
I want to put the last 10 links on a non vb page how would I go about that?

So you need to grab them from the database? This sql grabs the last 10, most recent first.

Code:

SELECT
link.linkid AS linkid,
link.linkname AS linkname,
link.linkuserid AS linkuserid,
link.linkusername AS linkusername,
link.linkurl AS linkurl,
link.linkdesc AS linkdesc,
link.numrate AS numrate,
link.totrate AS totrate,
link.linkhits AS linkhits,
link.linksize AS linksize,
link.linkstatus AS linkstatus,
link.linkdate AS linkdate,
link.linkmoderate AS linkmoderate,
ltoc.catid AS linkcatid

FROM local_linkslink AS link
LEFT JOIN local_linksltoc AS ltoc
ON link.linkid = ltoc.linkid

WHERE link.linkstatus>0

ORDER BY
linkdate DESC,
linkname ASC,
linkcatid ASC

LIMIT 10


mathias 01-13-2007 08:07 PM

Quote:

Originally Posted by AndrewD (Post 1152386)
So you need to grab them from the database? This sql grabs the last 10, most recent first.

Code:

SELECT
link.linkid AS linkid,
link.linkname AS linkname,
link.linkuserid AS linkuserid,
link.linkusername AS linkusername,
link.linkurl AS linkurl,
link.linkdesc AS linkdesc,
link.numrate AS numrate,
link.totrate AS totrate,
link.linkhits AS linkhits,
link.linksize AS linksize,
link.linkstatus AS linkstatus,
link.linkdate AS linkdate,
link.linkmoderate AS linkmoderate,
ltoc.catid AS linkcatid

FROM local_linkslink AS link
LEFT JOIN local_linksltoc AS ltoc
ON link.linkid = ltoc.linkid

WHERE link.linkstatus>0

ORDER BY
linkdate DESC,
linkname ASC,
linkcatid ASC

LIMIT 10





kind of wanted to use html on a non vb page lol thats to complicated for me :)

mathias 01-21-2007 01:26 AM

is there also a way for me to set permissions on who can delete links like make mods?


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