Handling Roles and classes

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Rosamunda's picture

I´ve posted at the Drupal Forum a certain problem that I have, and I would like to know if anyone of you have ever have this kind of issue in the past. And if you have, please give me a clue about how to solve this :-)

I´m running a site (of an NGO) that gives all their users free access to articles and information of a certain area. People do not need to registrate.
In their site they also give access (using an id and pass) to their students, because they have some online courses, and each one of them can access their class, acording to their role (as if First Grade, Second Grade, and so on).

The problem appears when this people (the site´s owners) want to create certain... let´s call them "BarCamp´s" and conferences, where users can submit and attend to.
Each user that registrate to that conference (this NGO plans to organize several conferences each year), can access an online documentation that is available only for them.

So, when some people whant to attend a certain conference, they registrate the guy in their database, with the role "Conference1". If its a new person, they create a user, and add it to that role, and if the guy already is a student of their courses, they just add him to the role "Conference1".

They have started to do this on december 2006, so I´m fine. But this year they plan to so several conferences more.
Should I create a role for each conference? I´m going mad.

Maybe there´s some sort of easy soulution out there, that I missed, and it´s right in front of my nose, but dunno what to do.
Sorry for my unaccurate english, it was pretty hard to explain this :-)

Thanks in advance!!!!!

Rosamunda

Comments

maybe ....?

Rosamunda's picture

Maybe adding checkboxes inside each profile with something like:
"I´ve assisted to the 02/03/2006 conference" (profile_field_02032006)
"I´ve assisted to the 05/04/2006 conference" (profile_field_05042006)

And adding a page with php content with something like:
If profile_field_02032006 then show "............."
If profile_field_02032006 then show "............."
and so on...

I would need a single list with all nodes that a use have access, something like "My Conferences & BarCamps" or something like that...

The only thing is ... I have no idea about how to code that...

Rosamunda

tac_lite

Rosamunda's picture

I´ve been thinking in using tac_lite module, that allows the admin to manually change each user the access to a certain taxonomy term... at least it´s easier (and maybe less heavy for the system) than using roles...

If I understand you correctly...

victorkane's picture

I think I have what you need.
I would basically agree with the Organic Groups solution, I am using it on several sites, it is also being used on big sites, I believe.

But, as an alternative, the solution could be to make say, two CCK nodes, one "courses", one "students" (so to speak), where the student content type has a multiple "course" nodereference type.
That way, when you edit student you can keep adding courses and conferences he has attended.
Then, you can easily make a view to list students filtered by a multiple select courses filter.
And in the student display you can list courses.

Since you have the students as users on your system, then perhaps you can make them nodes with the usernode module http://drupal.org/project/usernode.

Or, as an alternative, you can have the students as users; then have a course and course_attendance content type, where the course_attendance content type contains a userreference field...

Why don't we discuss it at the Buenos Aires Drupal Users Group event this Thursday!

Victor Kane
http://awebfactory.com.ar

Hi Víctor! Sorry for the

Rosamunda's picture

Hi Víctor!
Sorry for the BIG delay in anwsering... I totally forgot to chat about this at the BADUG reunion!!
Thanks for your idea, it didn´t ocurr to me that CCK could do it, creating different relations... It´s far better for me to use a solution like this instead the OG module.
I know the OG module is terrific, I´ve tested it in my testcase installation, but it´s a bit "big" for what I want.
I´ll try to use CCK instead.

Thanks both guys!!!

(Maybe on next badug we can chat a bit about this :-)

Would an organic group for

bonobo's picture

Would an organic group for each conference get the job done?

This could work to achieve two goals:

  1. you could limit conference-specific material to group members, and
  2. the subscriber list of the group would be the list of conference attendees --

Otherwise, maybe some kind of event/signup combination?

Cheers,

Bill

Thanks for your help Bill! I

Rosamunda's picture

Thanks for your help Bill!
I didn´t thought of that (comining with events)... the thing is that I don´t whant to use OG, it´s so heavy for what I need.
BUT, I didn´t thought about how to handle events and attendees. Maybe I could combine CCK as Victor say.
The OG module is very complete, but it´s very complex too: I just need a couple of features only...
But then, maybe it´s better to use one big module, instead of multiple little less-heavy ones.
:-)
Thanks for your help!
I´ll check wich module uses less resources, and how it can be handled by my server (I´ve got several users to get into).

Rosamunda

Initial complexity balanced against long term scalability

bonobo's picture

Hello, Rosamunda,

All of the options discussed in this thread will get you there -- the thing I would think about is how many conferences the site will support, and for how long -- if the site will be in use for a few months, and with a few conferences, then CCK/taxonomy will definitely be easiest --

If the site will be live for longer than that, then OG will give you more flexibility down the road, and the time you spend now learning it will be time you don't need to spend later in figuring out how to adjust your site to meet additional needs.

Cheers,

Bill