![]() |
Quote:
|
I have vbdrupal installed on my forum and I recently upgraded my LDM. Now I am getting this error when I try to run the program:
Fatal error: Cannot redeclare check_url() (previously declared in /var/www/html/blogs/includes/common.inc:693) in /var/www/html/forums/includes/local_links_include.php on line 1171 What can I do about this? Thanks, Sean |
Quote:
anyways, maybe set: can_upload_files Usergroups [with *can_add_link* permission] that can upload files for storage on the server to no for all groups. I use this for both links and downloads though so I'm probably not the best person to answer. |
Quote:
Answer depends partly on what we both mean by "turn off downloads". Basic behaviour of LDM: - If an entry has a filetype that appears in your VB/attachments/filetypes table, it is considered a "download". Otherwise it is considered a "link". By default, LDM accesses links by triggering a browser "redirect", and manages downloads by internally reading the contents of the entry and then transmitting the contents to the user, together with the correct control information so that the user's browser does something sensible. - The entries that LDM manages can be created either by specifying URLs or as uploads. Uploads always turn into downloads. URLs may be links or downloads depending on the filetype. e.g. xxx.html is probably a link, and xxx.pdf is probably a download So: - If you do not want your users uploading onto your server, the answer is to turn off uploads. But, by default, these are turned off anyway. Take a look at the LDM/admin/settings/Controls on File Uploads - If you mean you do not want LDM to internally manage the transfer of 'download' files, then set LDM/admin/settings/force_redirect to 1. - If you want to 'fine tune' which users can create entries, use the combination of LDM/admin/permissions/can_add_link, can_link_files, can_upload_files - If you want to limit which file types are treated as 'downloads', take a look at your VB/admincp/attachments/filetypes |
Quote:
The difficulty is one has no control over the ways users combine pieces of software, and it is not straightorward in php to keep function definitions localised. I've started working on this problem for 2.2.7 by introducing a new naming scheme, but it will be sometime before I am confident that nothing has been broken in the process. If you are running v 2.2.5, this is where check_url is defined/used: check_url (local_links_include.php) local_links_include.php(1171) local_links_actions.php(412) local_links_actions.php(445) local_links_actions.php(702) local_links_actions.php(837) local_links_actions.php(875) local_links_admin.php(849) If you are running 2.2.6 beta, these are the locations: check_url (local_links_include.php) local_links_include.php(1185) local_links_actions.php(412) local_links_actions.php(445) local_links_actions.php(702) local_links_actions.php(837) local_links_actions.php(875) local_links_admin.php(849) |
Quote:
If the code is working correctly (!!), then acceptance is stored in a cookie and has a lifetime of 1 day plus 1 hour. If you want to change this, I'm afraid it's hard coded at present. Take a look at local_links.php. Early in the code (about line 220), there is this line: Code:
$expires = TIMENOW+86400+3600; |
Quote:
There are mass edit features in LDM/admin/categories and you can use full regular expression edits on the urls |
Quote:
Quote:
Otherwise, edit the links_addnewlink template, and find this sequence: Code:
<if condition="$links_permissions['can_moderate_links']"> Code:
<tr style="display:none;"> |
Quote:
I played around with this and could not make things go wrong with wmas or wmvs. However, I could get WMP to behave the way you say for mp3s (fires the jukebox and then just stalls), but it seemed to be a problem inside the WMP browser control - basically, if I clicked the WMP video window, clicked on 'stop' a few times, then closed all browser windows and restarted, then things would work ok again. Not a very good answer, I know. |
Quote:
|
All times are GMT. The time now is 07:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|