1
mario
We have group level security i need user level security
  • 2007/1/19 15:00

  • mario

  • Just popping in

  • Posts: 48

  • Since: 2002/12/29


What i mean is i need to display private download links to certain people that belong to the same groups.

is there any way to accomplish this? i have looked and looked (been using XOOPS since 2002 :)

and cant seem to find anything. any help would greatly be appreciated!

cheers!
mario

2
JMorris
Re: We have group level security i need user level security
  • 2007/1/19 15:13

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Create a special group for those users
Add the users to that group
Install a download module or static HTML/PHP module
Add your download links to the module
Only allow permissions to that module for the special group.

10 Minutes tops.

HTH

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
mario
Re: We have group level security i need user level security
  • 2007/1/19 15:23

  • mario

  • Just popping in

  • Posts: 48

  • Since: 2002/12/29


hey james.

thanks for the response.i thought of that
but what happens when i have hundreds of users?
do i need hundreds of groups?

4
JMorris
Re: We have group level security i need user level security
  • 2007/1/19 15:42

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


That all depends on the model you're using. If all 100 just need access to 1 file or a group of files, then just dump them all into that group. You can do this quickly using SQL and an UPDATE statement.

If each user has to have access to a seperate file, then it gets a little more complicated. The easiest approach I can think of in that case is to use SMARTY and a static HTML/PHP module and display the link based on user ID, for example...

<{if $xoops_userid == '1'}><a href="link1.zip">Link for user 1</a><{/if}>
<{if 
$xoops_userid == '2'}><a href="link2.zip">Link for user 2</a><{/if}>
<{if 
$xoops_userid == '3'}><a href="link3.zip">Link for user 3</a><{/if}>
<{if 
$xoops_userid == '4'}><a href="link4.zip">Link for user 4</a><{/if}>


If you use a blank module like MyPage, this can be done pretty easily. It's just time consuming setting it up.

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
mario
Re: We have group level security i need user level security
  • 2007/1/19 19:52

  • mario

  • Just popping in

  • Posts: 48

  • Since: 2002/12/29


thats not a bad ideas

im going to play around with the groups idea
i i am using downloads plus, and although i can select what group has access to what files, is there a way i can hide the file from groups that don't have authorization?

that would solve everything!

thanks again for all your help

Login

Username:
Password:

Lost Password? Register now!

Who's Online

60 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits