XFileSharing Pro - Premium Only Downloads

Message
Author
mubin
Posts: 76
Joined: Dec 19, 2011 10:53 am

Premium Only Downloads

#1 Postby mubin » Mar 15, 2012 1:35 pm

Is there anyway for uploaders to upload files and make it so that only premium members can download them?

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#2 Postby adiga » Mar 15, 2012 8:49 pm


hostlife
Posts: 170
Joined: Aug 13, 2011 12:34 pm

#3 Postby hostlife » Mar 16, 2012 12:18 am

me looking for same thing.

mubin
Posts: 76
Joined: Dec 19, 2011 10:53 am

#4 Postby mubin » Mar 16, 2012 11:31 am




Exactly like that, is that your site?

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#5 Postby adiga » Mar 16, 2012 12:07 pm

mubin wrote:



Exactly like that, is that your site?


yes its my site

this feature of my amendment
i think the support is not do that
there are previous questions and said he did not do so

DimS
Posts: 20
Joined: Feb 11, 2012 8:47 am

#6 Postby DimS » Mar 16, 2012 4:34 pm

Try usage "Max download file size" in Settings / User Limits

admin
Site Admin
Posts: 1805
Joined: Mar 22, 2006 12:32 pm

#7 Postby admin » Mar 16, 2012 6:02 pm

DimS wrote:Try usage "Max download file size" in Settings / User Limits


DimS, please don't post pointless advices here.

bhanuprasad1981
Posts: 129
Joined: Apr 30, 2009 10:31 am

#8 Postby bhanuprasad1981 » Mar 17, 2012 6:22 pm

adiga wrote:
mubin wrote:



Exactly like that, is that your site?


yes its my site

this feature of my amendment
i think the support is not do that
there are previous questions and said he did not do so


how did you achieve this ? can you please help us :)

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#9 Postby nyan » Mar 17, 2012 10:57 pm

add `prem_only` field to Files table
in index cgi at download1 sub add if($file->prem_only) { if(! $premium) { $ses->msg bla bla buy premium }};
in index cgi at myfiles sub add db insert for prem only
in myfiles template add field for prem only

profit.

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#10 Postby adiga » Mar 18, 2012 2:34 am

It's not that easy my friend.
But some of this

glumbo
Posts: 211
Joined: Mar 11, 2011 6:26 am

#11 Postby glumbo » Mar 18, 2012 3:46 am

Actually DimS seems to have an easy method which you could use if you don't want to touch any code. Having only premium members able to download files above 0 mb essentially limits downloads to premium members only.

mubin
Posts: 76
Joined: Dec 19, 2011 10:53 am

#12 Postby mubin » Mar 18, 2012 7:49 am

That's true glumbo, but the thing is that we dont want to restrict all downloads above a certain mb amount to premium only, we want to restrict one particular file to premium users.

So a user has uploaded a very rare file, and he knows that he can sell premium memberships by restricting it to premium only.

Adiga, can you help us out with this?

alexfad
Posts: 61
Joined: Mar 18, 2012 4:21 pm

#13 Postby alexfad » Mar 18, 2012 4:38 pm

Adiga, I also send you the email. Please, can you explain how did you do it. As far as I understand, I need to create a new boolean field in the files table. But I don't know what to write in the index.cgi and exactly where

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#14 Postby adiga » Mar 18, 2012 7:00 pm

deleted
Last edited by adiga on Mar 18, 2012 7:41 pm, edited 2 times in total.

alexfad
Posts: 61
Joined: Mar 18, 2012 4:21 pm

#15 Postby alexfad » Mar 18, 2012 7:24 pm

deleted........


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests