vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=166094)

delibakis 06-13-2008 08:39 PM

Thx! *installed*

animehawk 06-14-2008 12:59 AM

Hi Andrew,

I'm having the following problem with 2.2.9.

Quote:

Entry is not available because site parameters force_redirect and local_file_root are inconsistent - please contact administrator
Force_redirect=1
Local_file_root=no

I can use 0 for force_redirect, but it eats up a ton of memory, equal to the size of the file.

I don't have a local file prefix set either, and all of the files are located in the web dir.

Any thoughts?

AndrewD 06-14-2008 05:43 AM

Quote:

Originally Posted by animehawk (Post 1548848)
Hi Andrew,

I'm having the following problem with 2.2.9.



Force_redirect=1
Local_file_root=no

I can use 0 for force_redirect, but it eats up a ton of memory, equal to the size of the file.

I don't have a local file prefix set either, and all of the files are located in the web dir.

Any thoughts?

I think this is my fault. I put in a check to stop use of force direct when files are outside the web dir, and the check is too rigid. Will provide a fix today.

AndrewD 06-14-2008 08:06 AM

Quote:

Originally Posted by josiespencer (Post 1548454)
My ultimate goal is that all file downloads are done via hard coded URL links posted in posts that look like this "http://uber-goober.com/forums/local_links.php?action=jump&linkid=931". This makes a popup box appear and the user can download just that one file.

OK, understood

Quote:

Originally Posted by josiespencer (Post 1548454)
(1) When I new user signs on for the first time he finds a file he wants to download:

(2) So he clicks the hyperlink and gets the prompt for accepting the download terms:

(3) He clicks Continue and gets:

(4) He clicks Go and sees:

I understand.

Quote:

Originally Posted by josiespencer (Post 1548454)
(5) OK, first of all he isn't supposed to see this screen ever, he is just supposed to get a popup box asking him where he wants to save the file. Regardless, now he can do/see things he shouldn't be able to see. So he clicks on Categories to get a list of those:
(6) And then clicks on the LDM hyperlink and gets a list of all files in the LDM category:
(7) And now he can search for any file he wants including hidden files:

I understand that you don't want people to go via the main LDM pages but I am surprised that they can see entries that you don't want them to see, particularly hidden entries.

If you don't want people to see hidden entries, then you should take away *can_view_hidden* permission from their usergroups.

Quote:

Originally Posted by josiespencer (Post 1548454)
If I switch "off" the can_view_category for that users usergroup, he never gets the download acceptance terms in (3), instead he gets this:

This is true, and correct behaviour.

The basic problem is that the "accept rule" forms were not designed with your route through LDM in mind. I think it's easy enough to change. I will see what I can do.

animehawk 06-14-2008 12:24 PM

Quote:

Originally Posted by AndrewD (Post 1548938)
I think this is my fault. I put in a check to stop use of force direct when files are outside the web dir, and the check is too rigid. Will provide a fix today.

Thanks!

josiespencer 06-14-2008 05:18 PM

Quote:

Originally Posted by AndrewD (Post 1549001)
OK, understood



I understand.



I understand that you don't want people to go via the main LDM pages but I am surprised that they can see entries that you don't want them to see, particularly hidden entries.

If you don't want people to see hidden entries, then you should take away *can_view_hidden* permission from their usergroups.



This is true, and correct behaviour.

The basic problem is that the "accept rule" forms were not designed with your route through LDM in mind. I think it's easy enough to change. I will see what I can do.

They do not have can_view_hidden.

OK, looking at it another way, is there a way to allow one group of people to see only things in directory PUBLIC and another group of people to see things in both PUBLIC and PRIVATE? Is there a loophole around that maybe? Or maybe with two different forums? Because the hook to permissions for forums for a file doesn't seem to restrict this either. Once you get in that post-acceptance screen, it is like you are an admin or something.

I want to work within in the rules to do what I need to get done, without you having to code anything.

obmob 06-14-2008 05:20 PM

OK... i think it is finally done. :D

Spanish phrases were added to 2.2.9 :up:

AndrewD 06-14-2008 06:06 PM

Quote:

Originally Posted by josiespencer (Post 1549317)
They do not have can_view_hidden.

OK, looking at it another way, is there a way to allow one group of people to see only things in directory PUBLIC and another group of people to see things in both PUBLIC and PRIVATE? Is there a loophole around that maybe? Or maybe with two different forums? Because the hook to permissions for forums for a file doesn't seem to restrict this either. Once you get in that post-acceptance screen, it is like you are an admin or something.

I want to work within in the rules to do what I need to get done, without you having to code anything.

It's quite possible there's a bug, but without further information, I can't help you. There's nothing special about being 'post-acceptance'.

There are two ways to let one usergroup see PUBLIC and another see PUBLIC + PRIVATE.

a) you go to PRIVATE, edit category/user permissions, and take away can_view_category from the first usergroup *in that category*

b) you go to PRIVATE, edit category and associate the category and all its entries with a forum to which only the second usergroup has vbulletin *can_view_forum* permissions.

Do you want me to take a look at your site? Send me a PM if so.

AndrewD 06-14-2008 06:07 PM

Quote:

Originally Posted by obmob (Post 1549320)
OK... i think it is finally done. :D

Spanish phrases were added to 2.2.9 :up:

Thanks very much!!

AndrewD 06-14-2008 06:38 PM

post deleted - code updated and moved to starter post of thread


All times are GMT. The time now is 06:32 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.01980 seconds
  • Memory Usage 1,755KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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