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 10-31-2007 05:14 PM

Quote:

Originally Posted by Willygsm (Post 1372813)
hi andrewD, how to delete whole categories? any code to modify?


Cannot delete a category which still contains entries or subcategories.

Try the following.

Go to your vb admincp, products and plugins.

Add new plugin

product - Links and Downloads manager

hook - ldm_admin_start

code: @ini_set('max_execution_time', 300);

plugin is active: yes

Now you should be able to get at ldm/admin/categories and tidy up.

Remember to turn off/delete the plugin when you've finished.

AndrewD 10-31-2007 05:16 PM

Quote:

Originally Posted by voter (Post 1372774)
Is there a way a SQL query, to generate a copy of entries of LDM as a threads of a forum?

You know that there's an facility to autocreate threads pointing to new entries in LDM, I suppose? (LDM/admin/settings/Controls on New Entry/Comment Announcements)

You want to be able to create threads, each corresponding to one entry in an LDM category?

obmob 10-31-2007 09:23 PM

Quote:

Originally Posted by AndrewD (Post 1372544)
The two entries that are displayed with no link on the text are currently considered to be broken, i.e. LDM can't find the file. Not the best/clearest of signals, I agree.

OMG! I think I deleted those files while moving... :mad:

Thanks Andrew, now I know why it would happen :D

Wilhelm 10-31-2007 10:08 PM

hi, i have a problem with the hack when uploading has finished. It seems the file was submitted but then:
i use the german version and the text says:
"Fehler beim Hochladen - kann die hochgeladene Datei auf dem Server nicht verschieben."

engl. smth like that: Error while uploading - cannot move the uploaded file on the server.

I have an upload, thumb folder both set to 777, no error messages @LDM
using 2.8.8Post1, local_file_root Website local_file_root_prefix not set

whats the error on that?

btw awesome hack :eek:

edit: Tested with full path url, local url, both works, only upload i still get the error msg.

JtChurch925 11-01-2007 12:29 AM

I apologize if I have somehow missed these answers (...and I probably have), but...
  • If I am hosting the actual files to be downloaded on another server can I still use this by linking to those files as though they were hosted locally?
  • Will this plugin automatically update the files listed for the users if more files are dumped onto the remote site? i.e. a remote directory is set for the 'e-book' downloads, and more e-books are added, will I have to go and add each new link individually any time there is an update to the remote site?
  • Is it relatively simple to add adsense code to the basic template of the downloads pages?

I appreciate your answers and time. This plugin looks very promising!

AndrewD 11-01-2007 06:48 AM

Quote:

Originally Posted by JtChurch925 (Post 1373125)
If I am hosting the actual files to be downloaded on another server can I still use this by linking to those files as though they were hosted locally?

Yes, although (depending on exectly how you set things up), this will be more expensive, both in terms of cpu (file reads over an http channel are more expensive than from the local server) and bandwidth (everything goes through your server twice, in then out). It's not a good idea to do this with (e.g.) video files, although it's quite ok with typical pdfs.

Quote:

Originally Posted by JtChurch925 (Post 1373125)
Will this plugin automatically update the files listed for the users if more files are dumped onto the remote site? i.e. a remote directory is set for the 'e-book' downloads, and more e-books are added, will I have to go and add each new link individually any time there is an update to the remote site?

No, LDM will not autosync with a second server, although it will sync with the local file system. I didn't add this for a couple of reasons - security and processing cost. (If you look back a few posts, you'll see that someone is having problems syncing a directory structure containing tens of thousands of files.)

Quote:

Originally Posted by JtChurch925 (Post 1373125)
Is it relatively simple to add adsense code to the basic template of the downloads pages?

I have not done this myself, but I think this is quite a common mod to the mod.

AndrewD 11-01-2007 07:05 AM

Quote:

Originally Posted by Wilhelm (Post 1373065)
hi, i have a problem with the hack when uploading has finished. It seems the file was submitted but then:
i use the german version and the text says:
"Fehler beim Hochladen - kann die hochgeladene Datei auf dem Server nicht verschieben."

engl. smth like that: Error while uploading - cannot move the uploaded file on the server.

I have an upload, thumb folder both set to 777, no error messages @LDM
using 2.8.8Post1, local_file_root Website local_file_root_prefix not set

whats the error on that?

btw awesome hack :eek:

edit: Tested with full path url, local url, both works, only upload i still get the error msg.

Check if the php security setting open_basedir and safe_mode are set (vb/admin/maintenance/phpinfo), and whether your upload directory is within the space allowed by open_basedir - LDM is supposed to be aware of open_basedir, but perhaps there's a problem in the code that I've missed.

If that doesn't point you in the right direction, here's a quick debugging check. Go to vb/admincp/products and plugins and add a new plugin, called, e.g. debug, attached to the hook ldm_upload_filesave, and make sure it's active, with the following code:

Code:

echo 'open_basedir '.ini_get('open_basedir').'<br />';
echo 'safe_mode '.ini_get('safe_mode').'<br />';
echo $fullfile.'<br />';
if (file_exists($fullfile)) {
echo 'file exists<br />';
exit;
}
if (move_uploaded_file($GPC['tmp_name'], $fullfile)) {
echo 'move ok<br />';
}
exit;

then try uploading a file, take a look at the error messages and post them back here. Remember to disable the debug plugin after you've run it.

Wilhelm 11-01-2007 02:49 PM

Hi AndrewD, thanks alot for your time and help. I figured out the phpinfo(), safemode is local and global set, open_basedir is only local set.

the error msg is recieve with your debug code:
PHP Code:

open_basedir /home/httpd/vhosts/***myURLNAME***/httpdocs:/tmp
safe_mode 1
/home/httpd/vhosts/***myURL***/httpdocs/forums/upload/1/290811939309968307.zip

Warnung
move_uploaded_file(): SAFE MODE Restriction in effectThe script whose uid is 10001 is not allowed to access /home/httpd/vhosts/***myURL***/httpdocs/forums/upload/1 owned by uid 30 in /local_links_actions.php(343) : eval()'d code (Zeile 8) 

I have no clue what settings to change to get the upload working. I dont have access to php.ini, only .htaccess i could work with. Would the problem be solved by disabling SAFE_MODE AND open_basedir? Or just one of them?
Maybe i can do something in Plesk file manager editing some file in the root directory? Im not that strong with server settings.

AndrewD 11-01-2007 04:10 PM

Quote:

Originally Posted by Wilhelm (Post 1373485)
Hi AndrewD, thanks alot for your time and help. I figured out the phpinfo(), safemode is local and global set, open_basedir is only local set.

the error msg is recieve with your debug code:
PHP Code:

open_basedir /home/httpd/vhosts/***myURLNAME***/httpdocs:/tmp
safe_mode 1
/home/httpd/vhosts/***myURL***/httpdocs/forums/upload/1/290811939309968307.zip

Warnung
move_uploaded_file(): SAFE MODE Restriction in effectThe script whose uid is 10001 is not allowed to access /home/httpd/vhosts/***myURL***/httpdocs/forums/upload/1 owned by uid 30 in /local_links_actions.php(343) : eval()'d code (Zeile 8) 

I have no clue what settings to change to get the upload working. I dont have access to php.ini, only .htaccess i could work with. Would the problem be solved by disabling SAFE_MODE AND open_basedir? Or just one of them?
Maybe i can do something in Plesk file manager editing some file in the root directory? Im not that strong with server settings.

I think the problem will be solved by turning off safe_mode, but I've not experienced this before. Your open_basedir setting is ok.

VBulletin itself gets round this problem with some slightly contorted file movements, which I have not implemented in LDM.

*Edit*

I've run a quick test with safe_mode on and open_basedir set, and can reproduce your problem. Turning off safe_mode corrects the problem. So (at least for me) does turning on safe_mode_gid

PitchouneN64ngc 11-01-2007 06:21 PM

Hey AndrewD, there is the French translation with this post ;)


All times are GMT. The time now is 09:59 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.02890 seconds
  • Memory Usage 1,775KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)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