ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

membership survey? -- is this possible?

February 07, 2012 4:20pm

Subscribe [4]
  • #1 / Feb 07, 2012 4:20pm

    jsks16

    31 posts

    Hello
    I was wondering if you can help me.  First of all I am a designer not a developer, and that is why I love using EE whenever possible, because it is easy to use and it solves most design problems you throw at it.  My latest client is a community based charity sports team and I am trying to sell them Expression Engine over Wordpress to run their site. 

    Now the problem I am facing has to do the team’s backdoor site.  They run an internal backdoor site for team members only.  With their current system, whenever they post an a charity event, all the team members are informed and they need to select “yes, no, maybe” on whether or not they are able to attend the event.  This helps the team prepare for each of their performing events, and they would like to keep this as a feature of their new web site.

    So the question is, how should I go about delivering this function?  Again I am a graphic geek, and I am not ata all a developer.  But somehow I need to figure out how to get a “membership survey” function onto their site.  Any suggestions on how I can go about doing this or any 3rd party plugins which will make this easier for me and my client will really help me sell EE as the CMS of choice for them.

    thanks!

  • #2 / Feb 07, 2012 9:54pm

    Bhashkar Yadav

    727 posts

    jsks16, it can be done by developing a custom ad-one/module if you need to managed this separately and would like to have a control into CP where admin can view all the survey.
    1) managing front end for survey by making relating event with member’s choice and saving it into database.
    2) showing these survey into control panel separately. so that admin can track for for any particular events.

  • #3 / Feb 07, 2012 11:39pm

    jsks16

    31 posts

    jsks16, it can be done by developing a custom ad-one/module if you need to managed this separately and would like to have a control into CP where admin can view all the survey.
    1) managing front end for survey by making relating event with member’s choice and saving it into database.
    2) showing these survey into control panel separately. so that admin can track for for any particular events.

    Thanks… I have no clue on how to even begin to make a custom module.  I’m a designer not developer.  I wonder how I could get this done for me

  • #4 / Feb 09, 2012 12:15am

    the3mus1can

    426 posts

    You might be able to get close with these:

    http://www.eec.ms/add-ons/mx_notify_control#toc-download (to send notification when new entry posted)

    http://www.solspace.com/software/detail/rating/ (to vote on the entry)

  • #5 / Feb 09, 2012 3:18am

    Andrew Fairlie

    126 posts

    I would start by having an “Event” channel. Whenever an entry is posted here, send it out to that member group (the first plugin posted above should help).

    You could then have a second channel called “Event Signup”. The idea behind this channel is basically a link between a user and an event. With this you could have three status options: “Yes”, “Maybe”, “No”. These would be RSVP effectively.

    From your website frontend you could write a little bit of SAFE Cracker (you mention you’re a designer primarily but the documentation should walk you through it: http://ellislab.com/expressionengine/user-guide/modules/safecracker/index.html.

    The basic logic here would be (and please note the below is largely pseudo code:-

    Main Template:

    {exp:channel:entries channel="ch_event" dynamic="yes" limit="1"}
        {preload_replace:pre_event-id="{entry_id}"} {!-- Set a preload variable for this entry ID so we can match it up in an RSVP snippet later on --}
        <h1>{title}</h1>
        {fi_event_description}
        {sn_rsvp}
      {/exp:channel:entries}

    RSVP Snippet:

    IF Member has already posted a ch_event_signup entry with a relationship to ch_event entry {pre_event-id}
          THEN show the SAFE form
      ELSE
        You have already RSVP'd to this event.
      ENDIF

    Taking this further, you could build a survey results page which has a reverse related entry loop for ch_event_signup so that you could quite easily build charts, graphs and tables of your results. A simple list below is here:-

    {exp:channel:entries channel="ch_event" dynamic="yes" limit="1"}
        <h1>RSVPs for {title}</h1>
        {fi_event_description}
    
        <h3>People Attending</h3>
    <p>    {embed="survey/.rsvp-line" id="{entry_id}" result="yes"}</p>
    
    <p>    </p><h3>People Maybe Attenting</h3>
    <p>    {embed="survey/.rsvp-line" id="{entry_id}" result="maybe"}</p>
    
    <p>    </p><h3>People Not Attenting</h3>
    <p>    {embed="survey/.rsvp-line" id="{entry_id}" result="no"}<br />
      {/exp:channel:entries}

    .rsvp-line template:-

    {exp:channel:entries channel="ch_event" entry_id="{embed:entry_id}" dynamic="yes" limit="1"}
      <ul>
        {reverse_related_entries channel="ch_event_signup" status="{embed:result}"}
          <li>{username}</li>
        {/reverse_related_entries}
      </ul>
    {/exp:channel:entries}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases