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)

nighthalk 10-12-2006 08:19 PM

Quote:

Originally Posted by nighthalk
Is there a way to turn off the downloads side of this manager?
I only wants the links part.

is this question that hard to answer that noone using it can answer?

fringehead 10-13-2006 12:20 AM

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

EasyTarget 10-13-2006 01:07 AM

Quote:

Originally Posted by nighthalk
is this question that hard to answer that noone using it can answer?

its only been 1 day since your first post has it not?

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.

AndrewD 10-13-2006 04:00 AM

Quote:

Originally Posted by nighthalk
is this question that hard to answer that noone using it can answer?

It's not hard to answer. The problem is that I have other things to do, like a full time job :knockedout:

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

AndrewD 10-13-2006 04:08 AM

Quote:

Originally Posted by fringehead
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

Sean, you will have to edit one or other piece of code to rename function check_url to something else.

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)

AndrewD 10-13-2006 04:14 AM

Quote:

Originally Posted by Ophelia
Stupid question ...

Where/how can I edit the text that appears in the terms of use screen? I tried to search in templates, but it didn't find anything. Would love to fine tune this :)

Also, is there a way to tell it how often to show this term? We have a daily download, and like to remind folks of the rules :)

The text is defined in the phrases, not in the templates. Take a look at the ll_agreement phrase, for example, so do a search/languages for the words of interest.

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;
Just change the line to the frequency with which users must confirm acceptance

AndrewD 10-13-2006 04:17 AM

Quote:

Originally Posted by EasyTarget
I have a bit of an odd issue. I just moved domains but I kept the same exact file structure. I had all my files linked to /forum/files/filefolder/filename.ext but now when I click on a download it says link not available.

It then provides a link to the file and asks me to accept or modify. Clicking on the link here will get you to the file.

Is there a way I can mass update all the files or something to get it to accept the new domain?

Off the top of my head, I can't see why this problem exists. I'd like to understand more before suggesting how to fix. Can you PM me board details plus admin u/name and pwd or find a way of sending me a backup of the LDM database tables.

There are mass edit features in LDM/admin/categories and you can use full regular expression edits on the urls

AndrewD 10-13-2006 04:23 AM

Quote:

Originally Posted by rasun
Great Addon, thank you!

I have two questions.


First the BBCode for Images doesn?t appear if you create a new entry. allow_images is set to "yes". If you write the bbcode https://vborg.vbsupport.ru/ .... Any ideas? I have created my own spoiler bbcode in my forum, can it be the reason?

I'll get back to you on this.


Quote:

If you create or edit an entry the is a option for:

Notification
Email those users who have already accessed this entry?

I want to disable this completely so nobody can choose it. How can I make it?
This is only shown to users who have 'can_moderate_link' LDM permission, so if you don't use moderation, just take away that permission.

Otherwise, edit the links_addnewlink template, and find this sequence:

Code:

<if condition="$links_permissions['can_moderate_links']">
<tr>
        <td class="alt1" width="20%">
        <b>$vbphrase[ll_notify]</b><br />
        <span class="smallfont">
        $vbphrase[ll_notify_text]
        </span>
        </td>
        <td class="alt1">
        <input type="radio" name="notify" value="1" /> $vbphrase[ll_yes]
        <input type="radio" name="notify" value="0"  checked="checked" /> $vbphrase[ll_no]
        </td>
</tr>
<else />
<tr style="display:none;">
        <td class="alt1" colspan="2">
        <input type="hidden" name="notify" value="0" />
        </td>
</tr>
</if>

and change to

Code:

<tr style="display:none;">
        <td class="alt1" colspan="2">
        <input type="hidden" name="notify" value="0" />
        </td>
</tr>


AndrewD 10-13-2006 04:28 AM

Quote:

Originally Posted by Sparky_s
I'm not sure if it my settings, but any uploaded WMA or WMV file goes ahead to load the embedded media player, but does not play.

I have the Mimes set properly to
Content-type: video/x-ms-wmv
Content-type: audio/x-ms-wma

Any ideas?


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.

AndrewD 10-13-2006 02:20 PM

Quote:

Originally Posted by rasun
First the BBCode for Images doesn?t appear if you create a new entry. allow_images is set to "yes". If you write the bbcode [img] manually it works fine, but you can?t see the icon https://vborg.vbsupport.ru/images/ed...nsertimage.gif .... Any ideas? I have created my own spoiler bbcode in my forum, can it be the reason?

Thanks for reporting this - it is a bug in 2.2.5 and 2.2.6 beta. It will be fixed soon.


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
  • Page Generation 0.02435 seconds
  • Memory Usage 1,766KB
  • 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
  • (10)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