vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

tommykjensen 12-02-2005 06:17 PM

I am testing this and I found an issue with the permissions.

I have one category. The category is set to use permissions from a forum. I have added one download to the category.

The permissions on the forum that is used allow no access to anybody accept admins.

On the front page local_links.php clicking on the link under "most popular..." results in a permission denied page. Thats good.

However clicking on the links what's new or what's hot displays the attachment and download is possible even for anonymous users.

...

Ok, just found out that I can prevent that by also setting a forum to control permission on the attachment itself.

So my question is this instead: Shouldn't the attachment permission as default follow the category in which it is posted? And setting a different forum on the attachment should then overide the category permission?

AndrewD 12-02-2005 06:31 PM

Quote:

Originally Posted by tommykjensen
I am testing this and I found an issue with the permissions.

I have one category. The category is set to use permissions from a forum. I have added one download to the category.

The permissions on the forum that is used allow no access to anybody accept admins.

On the front page local_links.php clicking on the link under "most popular..." results in a permission denied page. Thats good.

However clicking on the links what's new or what's hot displays the attachment and download is possible even for anonymous users.

...

Ok, just found out that I can prevent that by also setting a forum to control permission on the attachment itself.

So my question is this instead: Shouldn't the attachment permission as default follow the category in which it is posted? And setting a different forum on the attachment should then overide the category permission?


I've wondered about that myself. At the moment, the *default* permission for links and categories is set on the admin page. Perhaps you are right that the default link permissions should be the category's permissions and the default for the category should be as set on the admin page. There are arguments both ways. One complicating factor, for example, is that a link can be a member of more than one category.

AndrewD 12-02-2005 06:35 PM

Quote:

Originally Posted by Nam
Real quick question, how do I change the embeded media window size to 320x240 for wmv files? I tried using admin mime setting and it doesn't work.

Take a look at the links_play template. You need to make several changes - in the javascript width=800,height=500, in the width parameter on the table tag and in the width= and height= tags in the embed and object tags.

Nam 12-03-2005 06:24 AM

Thanks Adrew, not all files have the same size, how to make it autodetect please?

AndrewD 12-03-2005 06:47 AM

Quote:

Originally Posted by Nam
Thanks Adrew, not all files have the same size, how to make it autodetect please?

That is possibly a big task - it will have to be put on the list of things to think about.

Nam 12-03-2005 06:59 AM

I thought it was simple, if it's a big task then forget about it, not too many people need it anyway, thanks Andrew.

Btw, another question is that how difficult to make access to link based on category? Say Registered member can access to A and not B category, but Premium members can access to both. Just a thought.

AndrewD 12-03-2005 08:13 AM

Quote:

Originally Posted by Nam
Btw, another question is that how difficult to make access to link based on category? Say Registered member can access to A and not B category, but Premium members can access to both. Just a thought.

You do this with the forum-based permissions system.

Chose (or create) two forums which have the usergroup permissions you want, let's say Forum 1 (Registered and Premium access) and Forum 2 (Premium only)

'Associate' all the links that you want to be available to your premium users only with Forum 2. You set this on the link edit form, or you can 'mass edit' all the links in a category using the Admin/Category page

Ditto 'associate' all the links you want to be available to registered and premium users with Forum 1.

You can set LDM up so that protected links are visible (or not) to other users witht he Admin/Permissions/Can see protected links on portal permissions

GrendelKhan{TSU 12-03-2005 10:57 AM

ok... I was one of the early ones to install this and it continues to be one the best most important hack out there...great job!!

and AWESOME NEW UPDATES!!! uploads WHOOHOO!!!

question:
is it possible to have it retain the original file name of an upload?

I spend a lot of time naming files properly (as do many) and really wish it would retain the file name when downloaded. :)

AndrewD 12-03-2005 11:35 AM

Quote:

Originally Posted by GrendelKhan{TSU
ok... I was one of the early ones to install this and it continues to be one the best most important hack out there...great job!!

and AWESOME NEW UPDATES!!! uploads WHOOHOO!!!

question:
is it possible to have it retain the original file name of an upload?

I spend a lot of time naming files properly (as do many) and really wish it would retain the file name when downloaded. :)

This will be included in 2.1.1 - I coded the change this morning.

AndrewD 12-03-2005 11:37 AM

Quote:

Originally Posted by Darat
It says:
allow_url_fopen Yes
cURL Yes
GD2 Yes


David, let's have another go at debugging this problem. Can you upload the attached and let me know when it is available


All times are GMT. The time now is 01:05 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.03278 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)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