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)

Regenerate 02-13-2007 09:57 PM

Hi,

I have a (imho bizarre) problem with the downloads:

On http://forum.dutchjoomla.org/local_links.php?catid=3 you can see 5 different downloads. Administrators can download all files, but registered users can only download 'Taalbestanden backend' but are restricted to the download of all other files (while the should be able to download them all).
When I try to download the files directly (putting the adress of the files in the browser instead of trying it through the above page), there's no problem en the download goes as usual. I checked the permissions on the files and tried to find any difference between the file that c?n be downloaded by users and the others, but I cannot find any difference. The "can_access_link" option is enabled for all registered users, for all files (I use the same permission settings for the whole download section).

All files on the server are CHMOD 0644

I tried deleting te files and adding the same ones again, but that has failed as well...

I then searched the database table 'local_linkslink' and in the column 'linkforum' I found that all files have the number -999, except for the 4 files that cannot be downloaded bij normal users. To me, this seems to be causing the problem. Can anyone explain to me how to fix this (exept for just changing it in the database which is just a fix, no solution).

Thanks in advance!

AndrewD 02-14-2007 10:54 AM

Quote:

Originally Posted by Regenerate (Post 1181870)
Hi,

I have a (imho bizarre) problem with the downloads:

On http://forum.dutchjoomla.org/local_links.php?catid=3 you can see 5 different downloads. Administrators can download all files, but registered users can only download 'Taalbestanden backend' but are restricted to the download of all other files (while the should be able to download them all).
When I try to download the files directly (putting the adress of the files in the browser instead of trying it through the above page), there's no problem en the download goes as usual. I checked the permissions on the files and tried to find any difference between the file that c?n be downloaded by users and the others, but I cannot find any difference. The "can_access_link" option is enabled for all registered users, for all files (I use the same permission settings for the whole download section).

All files on the server are CHMOD 0644

I tried deleting te files and adding the same ones again, but that has failed as well...

I then searched the database table 'local_linkslink' and in the column 'linkforum' I found that all files have the number -999, except for the 4 files that cannot be downloaded bij normal users. To me, this seems to be causing the problem. Can anyone explain to me how to fix this (exept for just changing it in the database which is just a fix, no solution).

Thanks in advance!

LDM has a VB forum-based permissions system built into it, and your problem is related to this.

Every entry and category has an 'associated forum' held in linkforum column (and catforum columns in the linkscat table). Users are only allowed access to an LDM entry/category when they have *both* can view forum and can view other's threads permission to the corresponding forum.

Values of -999 tell LDM that these entries are 'open', i.e. only LDM's own permissions are used, not the forum-based method.

When there is another value, LDM checks the access permissions for your corresponding VB forum.

The forum association is set explicitly on the 'add/edit entry/category' form by users who have LDM's *can_set_permissions* permission. These users see a drop-down list of your VB forums, and can accept the default associated forum, select another forum of choice, or assign the 'open access' value. New entries from other users always take the default value. The default value for categories is set on the main LDM admin settings page (default_forumid); the default value for entries is the value for the category in which they are being placed.

So, I think you have created four entries which are associated with a forum that has restricted user access. You can correct it by editing these entries and changing the associated forum to 'Open Access'.

Let me know if this does not solve the problem.

AndrewD 02-14-2007 10:55 AM

Quote:

Originally Posted by Alfa1 (Post 1181137)
I want my entire LDM as a module in vbadvanced. So that even as you click on a category, there will still be vba blocks around LDM. Is there a module for this?

I have tried to apply vba to LDM, but that does only work for the main page of LDM. (Unless I apply it to every possible page of LDM, which is not feasable) And on top of that, this gets lost with LDM upgrades, so I gather it needs to be done the other way around: a vbadvanced module for the entire LDM.

This is not a small task...

mauro1947 02-14-2007 10:56 AM

Hi!
@AndrewD: Any news about release 2.2.7?
Thanks
PD: Did you read my PM? Thanks!

AndrewD 02-14-2007 11:03 AM

Quote:

Originally Posted by Gwendolin (Post 1177849)
Hi, very good modification, I like it very much :)

But I miss one or I just don't see it.

At the setting of a download limit under local_links_admin.php?set=bandwidth I can just add a limit by usergroup.

It is possible to set a limit on categories, I don't want add a limit for usergroups, just a download limit for 2 categories, all other categories should be unlimited.

Is that anywhere possible or could add?

Thanks for the suggestion - this was not possible before, but it is easy to add, and will be available in the next upload of version 2.2.7 (the release candidate).

Basically, there will be a new per-usergroup, per-category permission, called *can_bypass_bandwidth_limits*. So you will be able to set overall limits on bandwidth use, and then turn it off for all but your two categories of interest.

Note that the calculation will be based on the *total* consumption from those two categories. It is not straightforward to change the code to allow different bandwidth usage per category.

AndrewD 02-14-2007 11:10 AM

Quote:

Originally Posted by amnesia623 (Post 1176635)
Just curious - is there a way to get an upload status indicator? like bytes or percentage uploaded?

Thanks

I've looked into this several times.

It is not possible to provide an upload status indicator with php versions earlier than 5.2.0. You can do this with a mixed php/perl approach, but I'm not sure I want to start learning all the consequences.

Php 5.2.0, released late in 2006, has hooks built in to enable monitoring of uploads. I've tested this using a stand-alone program, and it works. However, the hooks are only accessible if you also install and use the APC (advanced cache) system for php on your server. I've found that this works fine on production boards but creates problems if any code is unstable.

So my advice for the time being is 'lets not rush this'. When the basic php software becomes more robust, I'll be happy to add an upload meter.

AndrewD 02-14-2007 11:13 AM

Quote:

Originally Posted by mauro1947 (Post 1182257)
Hi!
@AndrewD: Any news about release 2.2.7?
Thanks
PD: Did you read my PM? Thanks!

The 2.2.7 RC will be uploaded in a day or so - I've just got back home. New in that code will be a 'suggest other entries I might like', which uses the downloads/favourites/keywords tables - it will need testing, but I hope it might work like Amazon's 'other users bought this' recommendation system.

Just read your PM and will reply soon.

Regenerate 02-14-2007 02:05 PM

Quote:

Originally Posted by AndrewD (Post 1182255)
...
Let me know if this does not solve the problem.

Thanks, that clears up some things, I do think that was the problem, thx!

AndrewD 02-14-2007 02:27 PM

Quote:

Originally Posted by josiespencer (Post 1176461)
Can you not create a csv file with this format:

link,"Netweaver.bmp","http://www.abc.com/Files/Wallpapers/Netweaver.bmp","Netweaver.bmp",156

and use it as an import file for the initial load of my LDM entries? All the categories already exist, so why won't this work?

That looks ok to me. Are you sure that you've got the correct category ids (the 156)?

obmob 02-14-2007 07:55 PM

Welcome back Andrew! :)

Did u have a nice vacation? :D


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