Download Manager+FEU: Files are always visible

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
hihachi

Download Manager+FEU: Files are always visible

Post by hihachi »

Hi there,

i am currently running CMSMS Version 1.9.4.1 "Faanui"
and Using the Modules:

Download Manager 1.5.1
FEU 1.12.13

So i created a Group for the Users and added some Users to this group.

After that i inserted a few files and made them visible only to FEU-Users from One of those Groups.

I created a Page with the following command, to list all Downloads.

{cms_module module="DownloadManager"}

This should list all Downloads..except those who are not visible to me, as i am not logged in.

But this does not work.

it shows _all_ downloads..even those, which are setup only to be visible to a certain group.

I would be able to drop those files in the listing! But instead it shows them and i must log in to download the file..

How should the Listing-Template be prepared to look, if the download should be possible to be seen.

I will be very happy if you could help me.

Thanks in advance..

Greetings


Marcel
otelo
Forum Members
Forum Members
Posts: 28
Joined: Wed Oct 01, 2008 9:05 pm

Re: Download Manager+FEU: Files are always visible

Post by otelo »

Hi hihachi
You should use custom content to display the content only to registered users.
On your page you should place before the call to the DownloadManager module the following code:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('YourUserGroupName') }
And after you should close with {/if}

So your code should look like this:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('YourUserGroupName') }
{cms_module module="DownloadManager"}
{/if}
hihachi

Re: Download Manager+FEU: Files are always visible

Post by hihachi »

Hi Otelo,

thanks for your reply.

This would only check if the user is logged in.
But it would still show (even if checked if logged in) every Download available.

Only after clicking on the File itself it would check if the User is allowed to download the file.

But so the user/visitor would still know how many downloads are available and what they are for (due to the descriptions, which are also visible).

I need the Template for the filelisting to check if the file it would display should be available for the current (logged in) user..

Means..
I got 3 Files.

1 is available for everyone
1 is available for group a
1 is available for group b

User is not logged in - Downloadmanager would only show file 1.
User is logged in and member of Group a, he would be shown file 1 and 2.
User is logged in and member of Group b - he would see File 1 and 3.
User is logged in and member of Group C - he would only see File number 1.

Is there a way to accomplish that with Downloadmanager?

Thanks in advance..

Greetings

Marcel
otelo
Forum Members
Forum Members
Posts: 28
Joined: Wed Oct 01, 2008 9:05 pm

Re: Download Manager+FEU: Files are always visible

Post by otelo »

In the page you could have and if/elseif arrangement to check if the user is logged in and belongs to certain group.

You can call the download manager with the categoryid parameter to serve only the files from a certain category.

So for this situation
hihachi wrote: I got 3 Files.

1 is available for everyone
1 is available for group a
1 is available for group b

User is not logged in - Downloadmanager would only show file 1.
User is logged in and member of Group a, he would be shown file 1 and 2.
User is logged in and member of Group b - he would see File 1 and 3.
User is logged in and member of Group C - he would only see File number 1.

Is there a way to accomplish that with Downloadmanager?
you can set up you code like this

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('GroupA') }
{cms_module module='DownloadManager' categoryid='1,2'}
{elseif $ccuser->loggedin() && $ccuser->memberof('GroupB')}
{cms_module module='DownloadManager' categoryid='1,3'}
{elseif $ccuser->loggedin() && $ccuser->memberof('GroupC')}
{cms_module module='DownloadManager' categoryid='1'}
{else}
{cms_module module='DownloadManager' categoryid='1'}
{/if}
Please check the help of the DownloadManager module as there is a selector parameter which I'm not sure how it works.
Locked

Return to “Modules/Add-Ons”