vb.org Archive

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

AndrewD 12-12-2009 11:13 AM

Quote:

Originally Posted by ctrlbrk (Post 1929207)
Is there a way to restrict download access by minimum post count? I don't want to create a whole usergroup, I just to say "You can't download unless you have 5 posts".

Mike

Yes, take a look in the release/extras directory. There's a set of plugins to limit access according to certain properties. One of these limits by post count. After installation, you get a new set of options on the LDM admin settings page.

ctrlbrk 12-12-2009 11:52 AM

1 Attachment(s)
Quote:

Originally Posted by AndrewD (Post 1929273)
Yes, take a look in the release/extras directory. There's a set of plugins to limit access according to certain properties. One of these limits by post count. After installation, you get a new set of options on the LDM admin settings page.

OMG, holy cow Batman! There is tons of stuff in there I never knew existed.

Unfortunately, I installed this one and it seems to have no effect. A user with 0 post count in 'Registered Users' (and no other groups) is still allowed to download, even though I have it set to 3.

Ideas on what could be the problem? BTW, it says "Over-ride: None" for each, and I even double checked the category I am testing from, it matches.

Screen attached.

Mike

AndrewD 12-12-2009 12:40 PM

Quote:

Originally Posted by ctrlbrk (Post 1929286)
OMG, holy cow Batman! There is tons of stuff in there I never knew existed.

Unfortunately, I installed this one and it seems to have no effect. A user with 0 post count in 'Registered Users' (and no other groups) is still allowed to download, even though I have it set to 3.

Ideas on what could be the problem? BTW, it says "Over-ride: None" for each, and I even double checked the category I am testing from, it matches.

Screen attached.

Mike

Have you tried setting the files_enable and bytes_enable switches to "yes" in that section?

ctrlbrk 12-12-2009 01:29 PM

Quote:

Originally Posted by AndrewD (Post 1929303)
Have you tried setting the files_enable and bytes_enable switches to "yes" in that section?

I only want filter by post count. But I did go to a specific category and change it to "no", then back to "yes" for the post-count filter, just to see, and there is no change. Users can still download with 0 posts.

Mike

AndrewD 12-12-2009 01:54 PM

1 Attachment(s)
Quote:

Originally Posted by ctrlbrk (Post 1929321)
I only want filter by post count. But I did go to a specific category and change it to "no", then back to "yes" for the post-count filter, just to see, and there is no change. Users can still download with 0 posts.

Mike

I just tried the extra with the settings shown in the attached, and it worked. (My figures of 100 posts and all usergroups are arbitrary.) You have to explicitly tell it what to limit and the allowances that apply in the event of failing to have the required number of posts. Also keep in mind that if you've given a usergroup 'can_bypass_bandwidth_limits' permission, these limits are always bypassed.

ctrlbrk 12-13-2009 11:19 AM

1 Attachment(s)
Quote:

Originally Posted by AndrewD (Post 1929332)
I just tried the extra with the settings shown in the attached, and it worked. (My figures of 100 posts and all usergroups are arbitrary.) You have to explicitly tell it what to limit and the allowances that apply in the event of failing to have the required number of posts. Also keep in mind that if you've given a usergroup 'can_bypass_bandwidth_limits' permission, these limits are always bypassed.

Thank you. Even though I did not want to limit based on time period or bandwidth, once I told it I did and set them to 0, it worked. Just my opinion, but if these radio options don't work on "No" then why have them? I mean, I don't want to limit based on bandwidth or time, so I used "No", and it turns out I needed to say "Yes".

One last thing, please, and I will be on my merry way! Where is this phrase (see attachment). I don't want it up there, I want to make it null/delete it, so the user only sees the error message when downloading, not on every page. This is because it's confusing to the user, it makes it seem like there is a # of files limit or bandwidth limit when there is not.

https://vborg.vbsupport.ru/attachmen...1&d=1260710357

Thanks so much for your terrific support, as always!

Mike

AndrewD 12-13-2009 11:31 AM

Quote:

Originally Posted by ctrlbrk (Post 1929831)
Thank you. Even though I did not want to limit based on time period or bandwidth, once I told it I did and set them to 0, it worked. Just my opinion, but if these radio options don't work on "No" then why have them? I mean, I don't want to limit based on bandwidth or time, so I used "No", and it turns out I needed to say "Yes".

I've clearly confused people with this. The files/bandwidth figures that you specify here are used as the bandwidth limits that will apply to people who have not achieved the required number of posts. So, to prevent all downloads to these people, the fields have to be set to zero and the radio buttons turned on. The radio buttons allow you to selectively control which allowance is being restricted. When this extra was coded, the intention was to allow different allowances to people with the required posts. The same logic applies in the other 'limit' extras.

Quote:

Originally Posted by ctrlbrk (Post 1929831)
One last thing, please, and I will be on my merry way! Where is this phrase (see attachment). I don't want it up there, I want to make it null/delete it, so the user only sees the error message when downloading, not on every page. This is because it's confusing to the user, it makes it seem like there is a # of files limit or bandwidth limit when there is not.

The phrase is built up inside the code. To hide it, edit the links_catbit_extras templates and find/remove the following sequence:

PHP Code:

<if condition="$allow['consumption']">
    <
div align="right" class="smallfont">
    
$allow[consumption]
    </
div>
</if> 


ctrlbrk 12-13-2009 12:53 PM

Magnifico!

Andrew, you're the best!

Mike

Alfa1 12-15-2009 11:26 AM

Quote:

Originally Posted by AndrewD (Post 1926804)
This weekend, I decided to start on the vb 4.0 conversion. Much has changed, and it's been an interesting/frustrating (depending on your point of view) exercise working out how to get things to work.

Anyway to show some progress, see the attached screenshot, which is of a base category display.

Only another five million things to change/understand/edit :)
https://vborg.vbsupport.ru/attachmen...7&d=1260204226

This is very nice to see Andrew. Do you plan to use vb4's CMS, comments and search function in a future release?
Does vb4 allow easier implementation of any features on the wish list, like tag and reputation integration?
Are any vb4 widgets planned?
What are your general plans with LDM for vb 4.x?

AndrewD 12-15-2009 02:18 PM

Quote:

Originally Posted by Alfa1 (Post 1931060)
This is very nice to see Andrew. Do you plan to use vb4's CMS, comments and search function in a future release?
Does vb4 allow easier implementation of any features on the wish list, like tag and reputation integration?
Are any vb4 widgets planned?
What are your general plans with LDM for vb 4.x?

I have no formal plans, but I suspect this is the list of priorities:

a) Get LDM working with its current functionality with VB4. So far, this seems mainly a matter of dealing with all the templates and template calls.

b) Tidy things up so that LDM follows (e.g.) the new css practices and stylevars

c) Integrate with the CMS, including widgets to replicate the previous vbadvanced addons

I'm not sure about vbadvanced support yet. Will have to see what is forthcoming.

d) Only then will I start thinking about new features/suggestions


All times are GMT. The time now is 09:14 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.01198 seconds
  • Memory Usage 1,761KB
  • 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
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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