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)

nyunyu 12-16-2007 05:40 PM

Quote:

Originally Posted by AndrewD (Post 1402046)
I don't think it is a good idea to implement this within LDM, but I will put it on the 'to think about list'. Most of the responsibility for transferring a file is actually handled by the web server. LDM passes the content to the server. To change this, I would end up rewriting a substantial part of the server code or makeing some big assumptions about the server modules installed on the site.



Have you tried LDM/admin/allowances?
I tried to use this but it only allowed me to cap the size of download, not bandwidth. im looking for a function where I can limit like 100kbps for certain usergroup.



I don't understand your question - what downloads are not working? Have you got all the mimetypes set up correctly (see LDM wiki)
I mean, when a user download something off my site, they cannot use their download manager. I wonder if this hack prevent that.


So, below are my suggestion for you to add in your next release.
1- have the ability to set bandwidth for certain usergroup.
2- have the ability to set how many connection/slot for certain usergroup
3- have a ticket system where user need to have a ticket for download.

Why I need a download ticket system.
Because, my forum serves download. So, instead to have user posting to get 30 posts to download and stay idle thereafter, I need of a system that require people to post to download.
The ticket will based on how many post they have, let's say 1 ticket for 5 posts.
The ticket system should allow admin to set how many files is worth 1 ticket.
The ticket will reset its counter after awarding ticket. I mean, user who has been awarded a ticket will post 5 more to get another one.
The ticket system can exclude some of the forum id.

Is all this possible? I have seen a similar system being used but can't get the admin to response.

AndrewD 12-16-2007 06:11 PM

Thanks

Quote:

Originally Posted by nyunyu (Post 1402270)
I tried to use this but it only allowed me to cap the size of download, not bandwidth. im looking for a function where I can limit like 100kbps for certain usergroup.

As I said, I think this requires tight coupling with the web server, and I don't imagine I will have the time to do this

Quote:

Originally Posted by nyunyu (Post 1402270)
I mean, when a user download something off my site, they cannot use their download manager. I wonder if this hack prevent that.

I have tested LDM with two download managers and it works fine with them. Basically, you have to select a download manager that transfers cookies to vbulletin, otherwise LDM doesn't know who is trying to make the download.

Quote:

Originally Posted by nyunyu (Post 1402270)
So, below are my suggestion for you to add in your next release.
1- have the ability to set bandwidth for certain usergroup.
2- have the ability to set how many connection/slot for certain usergroup

thanks for the suggestion, but not in the next release.

Quote:

Originally Posted by nyunyu (Post 1402270)
3- have a ticket system where user need to have a ticket for download.

Why I need a download ticket system.
Because, my forum serves download. So, instead to have user posting to get 30 posts to download and stay idle thereafter, I need of a system that require people to post to download.
The ticket will based on how many post they have, let's say 1 ticket for 5 posts.
The ticket system should allow admin to set how many files is worth 1 ticket.
The ticket will reset its counter after awarding ticket. I mean, user who has been awarded a ticket will post 5 more to get another one.
The ticket system can exclude some of the forum id.

Is all this possible? I have seen a similar system being used but can't get the admin to response.

Something close to this is already available in the extras directory. It doesn't handle the counter reset though.

dawn100 12-16-2007 08:46 PM

Hi Andrew!

Hate to ask another question, but this one is driving me crazy. I want the unregistered users to see LDM on the navbar, but not be able to access the files. I have tried setting "can_access_link" as no, but visitors can still get in. Is my problem that I am trying to restirct access to a download? (I know I can take the link off the navbar, but I really want guests to be able to see it, since it is a major selling point for joining my site).

thanks!

obmob 12-17-2007 03:04 AM

Quote:

Originally Posted by katie hunter (Post 1402055)
Hi AndrewD , nice hack but I am wondering is this hack like a link manger i mean some software can host upload on the server while other can be like a hack that holds a list of links of rapidshare , megaupload etc..

Ex:

Let say a member uploaded something on rapidshare.com, and he wants to submit that rapidshare link " url " to that hack. is this hack like that ?

It does, it does!!! :D

AndrewD 12-17-2007 03:29 AM

Quote:

Originally Posted by dawn100 (Post 1402366)
Hi Andrew!

Hate to ask another question, but this one is driving me crazy. I want the unregistered users to see LDM on the navbar, but not be able to access the files. I have tried setting "can_access_link" as no, but visitors can still get in. Is my problem that I am trying to restirct access to a download? (I know I can take the link off the navbar, but I really want guests to be able to see it, since it is a major selling point for joining my site).

thanks!

Yes, this really should be available directly within LDM. It requires a small plugin.

Go to vbulletin/admincp/products and plugins/add plugin

Create a new plugin called (e.g.) Block Unregistered Users, select the Links and Downloads Manager product, and the ldm_start hook
Enter the following code:
Code:

if ($vbulletin->userinfo['usergroupid'] <= 1) {
    print_no_permission();
    exit;
}

Make sure you tick the 'is active' box.

See also http://www.eirma.org/wikis/index.php/LDM_Permissions

dawn100 12-17-2007 02:33 PM

Perfect! That's *exactly* what I wanted! Thanks so much (again)! :)

nyunyu 12-17-2007 03:44 PM

Quote:

Originally Posted by AdrewD
Something close to this is already available in the extras directory. It doesn't handle the counter reset though.

Andrew, by this you mean block_by_post in extra folder?
i dont know how to make the ticket system works..xcan you explain?
Thanks.

AndrewD 12-17-2007 04:09 PM

Quote:

Originally Posted by nyunyu (Post 1402875)
Andrew, by this you mean block_by_post in extra folder?
i dont know how to make the ticket system works..xcan you explain?
Thanks.

yes, the blockhit-bypost-plugin allows you to place download restrictions on certain usergroups according to the number of posts they have made, optionally within a given number of hours.

the only difference with your requirement is that it does not reset when somebody downloads an entry.

go to vbulletin/admincp/products and plugins/download and upload plugins

in the import plugin definitions box (bottom of page), browse to extras/block-user-access subdirectory, then select the blockhit-bypost-plugin.xml file

either
go to ldm/admin/settings (to apply the controls to your entire ldm database)

or
go to category/edit category/control settings (to apply the controls to only part of the the database, i.e. this category and any subcategories)

scroll down to the bottom of the page and choose the parameters of interest

Shanj 12-17-2007 04:18 PM

Thank you for the quick and careful answer. I understood!

I missed it in the flurry of 3.7beta notifications I was getting!
I am testing the beta on a new site so will tell you if the mod fits or not.

AndrewD 12-17-2007 05:40 PM

If you want to test LDM 2.2.8 with vb3.7, you will need the attached includes/local_links_init.php

Grateful for reports - first impression is that the main functions still work.

LDM's options for adding information to the member profile no longer works - the vb 3.7 code has been largely rewritten - so this will need to be redone.


All times are GMT. The time now is 11:32 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.11335 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
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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