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)

AndrewD 08-12-2006 10:19 AM

Quote:

Originally Posted by Alfa1
I do not understand what you are saying, because I have no clue about how either the 'extra' limit-useraccess' or the vbulletin->userinfo['posts'] work.
Either a detailed step by step explanation or a plug in/xml would work for me.

The limit-useraccess extra in the new LDM zip file includes a plugin, limitaccess-byreputation-plugin.xml, which modifies the download access according to the user's reputation. If you simply install it unchanged, it will behave as follows:

Users with reputation 0-9 get no bytes and no files
Users with reputation 10-49 get whatever you have set up in the bandwidth tables
Users with reputation 50-499 get double whatever you have set up in the bandwidth tables
Users with reputation of 500 or higher get ten times whatever you have set up in the bandwidth tables

These changes do not apply to administrators

You can change that behaviour by editing the plugin. It should be straightforward.

Alfa1 08-12-2006 12:58 PM

Now I am confused. I want members to add to the reputation of the member posting the file. So that a member rating the file will have effect upon the reputation of the member who posted the file. I think that this will greatly increase the amount of files posted, as it will reward doing so.
This can be done by either adding a reputation rating scale to the icons right from the file (next to add to my favorites) or by connecting comments and ratings to the reputation system.

AndrewD 08-12-2006 01:27 PM

Quote:

Originally Posted by Alfa1
Now I am confused. I want members to add to the reputation of the member posting the file. So that a member rating the file will have effect upon the reputation of the member who posted the file. I think that this will greatly increase the amount of files posted, as it will reward doing so.
This can be done by either adding a reputation rating scale to the icons right from the file (next to add to my favorites) or by connecting comments and ratings to the reputation system.

Actually, I'm also confused. I'd understood that you wanted to control access according to reputation.

OK, this goes back on the wish list.

Marsupilami 08-12-2006 03:06 PM

Regarding LDM 2.2.1:
Quote:

Originally Posted by AndrewD
Just to be clear on this:

a) In this situation, the LDM code uses an internal VB function construct_full_url() to produce a full url. That uses the value of $_SERVER['HTTP_HOST'] or similar, depending on server, to build the url.

.

Quote:

Originally Posted by AndrewD
b) The ../dir syntax is not valid for the thumbs_dir directory. (In fact, it is only valid in LDM for local_file_root_prefix and upload_dir and only when local_file_root is set to 1)

Maybe to put some validation in the settings dialog to get rid of this problem?

Quote:

Originally Posted by AndrewD
c) The strange problem - thumbnail displaying with Opera and not with IE - was probably not a browser issue. LDM creates different urls for the thumbnail, depending on whether it thinks it has cached the file or not. Before it has cached it, the url points to the thumbnail generator script.

Spooky that the IE/Opera problem remains 100% reproducable in 2.2.1 even with setting:
Thumbs space = "/thumbs"
The thumbnails will not load in IE 6.0.

Tried flushing caches and all.

Can this have something to do with file name, (URL base name), generation for the thumbs?

Quote:

Originally Posted by AndrewD
d) You can always make this work (at least when I've uploaded a fix to someone else's problem...) by turning off thumbs_dir

Setting:
Thumbs space = ""
..and thereafter doing "Rebuild thumbs", (http://www.teflon.net/forum/local_links_admin.php?action=doadmin&dothumbs=1), will make the problems go away.


If not rebuilding thumbs, the problem remains randomly for some of the pictures.

And even after clearing Thumbs space and rebuilding thumbs, there will still be remnant files in the thumbs directory.

Can this have something to do with file name generation for the thumbs and validating of cached thumbs?

AndrewD 08-12-2006 03:56 PM

Quote:

Originally Posted by Marsupilami
Maybe to put some validation in the settings dialog to get rid of this problem?

Validation of the thumbs_dir setting was written into the code after 2.2.1, because there were a number of different reported problems. Basically, the code tries to crate a test file in the specified directory.

Interestingly, I've just rechecked the validation with the example you have reported. It works properly on a Linux box where /dir1/dir2/../dir3 is not a valid file name amd where file permissions work properly. However, Windows, bless its heart, unexpectedly (for me at least) decides that /dir1/dir2/../dir3 = /dir1/dir3 and - because its file permissions are less robust - can create the test reports and so reports that everything is ok.

Quote:

Originally Posted by Marsupilami
And even after clearing Thumbs space and rebuilding thumbs, there will still be remnant files in the thumbs directory.

Yes, I'm sorry about that. There were circumstances where the old files were not being tidied up properly. I hope there are now fewer in 2.2.5.

Marsupilami 08-12-2006 04:20 PM

Quote:

Originally Posted by AndrewD
Interestingly, I've just rechecked the validation with the example you have reported. It works properly on a Linux box where /dir1/dir2/../dir3 is not a valid file name amd where file permissions work properly. However, Windows, bless its heart, unexpectedly (for me at least) decides that /dir1/dir2/../dir3 = /dir1/dir3 and - because its file permissions are less robust - can create the test reports and so reports that everything is ok.

I've tested on these two server platforms:
  • Slackware 10.2.0, Linux version 2.4.31
  • Linux www2 2.6.17.7-grsec #4 SMP

It is fully reproducable on the above platforms.


Windows? Don't mention the war! :confused: :knockedout:
No offence ment for those who love those limited platforms, but there is billions of issues with webservers running Windows.
I know this i s flame bait, but please make another thread or send med some PMs if ya want to bite my head off. ;)

AndrewD 08-12-2006 04:26 PM

Quote:

Originally Posted by Marsupilami
I've tested on these two server platforms:
  • Slackware 10.2.0, Linux version 2.4.31
  • Linux www2 2.6.17.7-grsec #4 SMP

It is fully reproducable on the above platforms.

yes, it would be, with 2.2.1 - as I said, the error checking was written in afterwards.

Raul7 08-17-2006 02:05 AM

Hi Andrew,
Thanks for the hack, its perfect, but i have a small problem, i want to make a categories that only some user groups can see, my understanding is now, i need to link to a forum, so it picks a permission from that forum, the problem is , i dont have a forum which only those user groups can see. all my forums are open to everyone, but i want SOME categories in the download manager be exclusive to some usergroups, is this possible? thank you very much again.

MissKalunji 08-17-2006 02:28 AM

Quote:

Originally Posted by Raul7
Hi Andrew,
Thanks for the hack, its perfect, but i have a small problem, i want to make a categories that only some user groups can see, my understanding is now, i need to link to a forum, so it picks a permission from that forum, the problem is , i dont have a forum which only those user groups can see. all my forums are open to everyone, but i want SOME categories in the download manager be exclusive to some usergroups, is this possible? thank you very much again.

create one with ur permissions and make it invisible so no one sees it

Raul7 08-19-2006 01:54 AM

EDITED ... i fixed it, thanks


All times are GMT. The time now is 08:51 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.04069 seconds
  • Memory Usage 1,757KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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