hello,

I've posted this issue for Event, but my suspicion is that it is RSVP and your Signup modules where the problem seems to be.

I'm trying to get a personalised calendar for each of my users. I installed Date API, Calendar, Event, Event Repeat, RSVP and Signup

I describe this issue is more detail here http://drupal.org/node/179900

Basicaly, what I want to contstruct is an individual calendar for each user - "My Calendar" , so that if she creates an event or accapts an RSVP or Signs-up for an event, it will be listed in her "My Calendar".

I desperately need help here. I tried doing it with Views but I'm lost... It doesn't seem like the Signup module is exposing a criteria like "This user has signed up for this event". Is there a way of achieving something like this in Drupal?

thanks a LOT in advance for your support

PS: I've posted this also in RSVP because they too don't seem to expose anything into the Views (unless I'm doing something wrong).

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Fixed

See the default view I created in the latest patch at http://drupal.org/node/137911 for an idea of how to construct a view for all the events a user signed up for. it certainly works. you can also create a view of all events a user didn't sign up for (see the latest patch at http://drupal.org/node/48267). don't know what to tell you about your "my calendar" view that tries to span signup, RSVP, etc, etc, though. all i know is that the signup views stuff works for this sort of view, so if you're having trouble, you must be doing something else wrong, or it's a bad interaction with the SQL query views is trying to construct given the other modules.

good luck,
-derek

drupalina’s picture

What I'm trying to say is that I'm trying to come up with a classic Calendar (month) view that would display to that particular user an agregate of
A) All events that he/she created (Events module)
plus
B) All events that he/she accepted RSVP for (RSVP module)
plus
C) All events that he/she signed-up for (Signup module)

... and I'm choosing the calendar view in Views (that comes by default with the Calendar module) and I'm trying to set these *filters* and/or *arguments* that would set the above criteria, and there is nothing that Signup module exports to Views. I mean I can see Buddylist options and OG options etc, but nothing from Signup module.

dww’s picture

Then clear your views cache after you enabled the signup.module... that sounds like the root of your problem. Views is very aggressive in what it caches, but often you can get in a situation where it doesn't realize you have new views-related stuff available that it still doesn't know about. There's an admin UI for clearing this cache via the views admin area (admin/build/views/tools).

p.s. in the future, if someone marks a support request "fixed" and you still have questions, please set the status back to "active" when you reply so that everyone knows there's still something that needs to be addressed.

drupalina’s picture

The problem stil persists...

I didn't know about clearing the Views cache. Thank you.
I did that. But the problem still persists.
I found "Node: Author is current user" filter which is cool because it sorts out the point (A) - namely, all events created by this user.
But there are still no visible filters or arguments pertaining to Signup. I mean what is it that I should be looking for??? I'm looking for a filter that would say something along the lines of "Signup: Current user has signed up for this node"
But there is nothing of this kind.

I'm sorry to be a nuiscance, but I really need to sort this out.

thank you

drupalina’s picture

Status: Fixed » Active

sorry , forgot to put it back to active

karens’s picture

Status: Active » Needs review
StatusFileSize
new2.57 KB

Actually, one thing that is missing from your Views implementation is a way to filter for the currently logged in user, which is what you need here. Attached is a patch that will do that.

This would allow you to create personal calendars using the Calendar module to see all the things you are signed up for. Just add this filter to your calendar.

This won't take care of incorporating RSVP. It also won't work quite the way you want if you add an 'Author' filter to the view, since Views 'AND's the filters together and you will only get nodes where your user is the author and signed up, but it will work to give you a calendar of all events you are signed up for.

dww’s picture

Title: How to get "My Calendar" to display for each user » Add filter for if the current user is signed up.
Version: 5.x-2.2 » 5.x-2.x-dev
Category: support » feature
Status: Needs review » Fixed

You can filter by current user with a view argument. See "Signup: User: UID signup for node". But sure, an explicit filter is a fine addition. Tested briefly and committed a slightly modified version to HEAD (renamed the filter to "signup_user_current" instead of just "currentuid"). Thanks!

karens’s picture

Well, it's nice to have a filter as well as an argument because sometimes arguments won't work. For instance, in the calendar we already are using 4 arguments, and if you want another argument you would have to slip it in before the calendar arguments, which gets messy. But it's easy to add a filter that will then affect all the calendar views.

Anyway, thanks!

dww’s picture

Indeed, I'm not opposed to filters. ;) Sorry if it came across that way... I totally appreciate the contribution (especially since you know so much more about working with views than I do). ;) Thanks again!

drupalina’s picture

Status: Fixed » Active

thanks for implementing this patch.
But I can't find out the latest dev version to test this out.

dww’s picture

Status: Active » Fixed

http://drupal.org/project/signup
"View all releases" -- http://drupal.org/node/29351/release
Search for "HEAD" (or "5.x-2.x-dev", the version I set this issue to) -- http://drupal.org/node/95695

cheers,
-derek

drupalina’s picture

Status: Fixed » Postponed (maintainer needs more info)

Thanks a bunch!
I've tested your dev version from http://drupal.org/node/95695. It works! Thank you so much!
Do you know when this dev version will become the new stable version???

Now I have to hope that RSVP module will implement a similar patch.

In addition, I have created a How-to topic in the forum here http://drupal.org/node/181262 ,where I will write updates for the broader Drupal community about how to construct a "My Calendar" view.

Do you have any idea when the next stable version of Signup module with this implemented patch will be released?
Also I'm wondering if this dev version is save evough for a live website?

thank you again!

dww’s picture

Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new1021 bytes

a) No, I don't know when I'm going to make an official 5.x-2.3 release.
b) No, -dev versions aren't ever really a good idea to use for live sites.
c) If you want, you can apply the attached patch to your 5.x-2.2 installation that just adds this filter.

drupalina’s picture

Status: Fixed » Postponed (maintainer needs more info)

Sorry, I still don't know how to apply patches :(

Would you be so kind as to apply that patch to 5x-2.2 and post the new 5x-2.2-dev version here? So that I can put it on my live site for now until the 2.3 comes out.

I greatly appreciate your help

dww’s picture

Status: Postponed (maintainer needs more info) » Fixed

A) http://drupal.org/patch/apply

B) the 5.x-2.x-dev snapshot is rebuilt every 12 hours if anything changes. http://drupal.org/node/95695 already contains this code.

Anonymous’s picture

Status: Fixed » Closed (fixed)