Changing the RSVP Form, Other Customizations

Note: RSVPMaker 2.5 makes more advanced customization of the RSVP form available from within the administration console, which may eliminate the need for some code-level customization.

RSVPMaker includes a mechanism for allowing you to add custom functions or override the some of the default functions included with the plugin. Specifically, you can override any of the functions defined in rsvpmaker-plugabble.php. You do this by adding your own rsvpmaker-custom.php file to the plugins directory (the directory above the rsvpmaker folder). My distribution includes a sample rsvpmaker-custom.php file but it will not be activated until you move it to the new location.

Essentially, this lets you plug in your own functions within my plugin. The idea is to provide some freedom to customize, without losing the benefit of upgrades to the core rsvpmaker code.

Modifying the event_content function

More extensive customizations are possible by overriding the event_content function, although this is a longer, more complex function. If you open the rsvpmaker-plugabble.php file, you will see the functions are wrapped with if(!function_exists(‘function_name’) ).

If you copy the function definition for event_content into your custom.php file, you will be able to modify the function as necessary for your purposes.

This entry was posted in Announcement. Bookmark the permalink.
  • Pingback: Improvements to RSVP Report | RSVPMaker.com

  • Pingback: RSVPMaker 1.0 Released | RSVPMaker WordPress Plugin

  • Pingback: RSVPMaker as an alternative to #newmeetup | RSVPMaker WordPress Plugin

  • http://pulse.yahoo.com/_G6AECKJ2I4KPWXS2IZ4BN36J4Q akash

    Is it possible to show RSVP Option to just registered users. Users who are not logged in will see something like Login or Register to RSVP.

    thanks for the plugin

    • Anonymous

      I’m sorry to be running behind on answers to questions. This is definitely possible, and I’ve thought about setting up some of my own sites that way, but I haven’t implemented it yet so I can’t tell you exactly how to go about it. However, you could write your own shortcode implementation and event display code as an extension to RSVPMaker (and maybe share that code with me if you think it should be part of the base plugin).

      • Emily

        Can you provide the code to allow only registered users to RSVP. I was trying to use the WP-Member method as above, but I can’t get it to work. Thanks.

        • http://www.carrcommunications.com David F. Carr

          Sorry, still an item on my backlog of requests

          • http://www.carrcommunications.com David F. Carr

            RSVPMaker 2.7, which was just released, includes a checkbox to specify that people must login before they can RSVP. When a logged in user RSVPs, the system will then prepopulate the form with first name, last name, and email address. It’s possible to read in other profile data by customizing the rsvpmaker_profile_lookup function (see the documentation on RSVPMaker customization)

          • Brandon

            Is there anyway to password protect the entire RSVP post? I’d like to give guests a password instead of having them register.

    • Peter Mitchell

      I wanted to do a similar thing, so only logged on users could see the RSVP sectrtion of the Post. I finally did it using a plugin called WP-Members, whish enable you to set up page/post security for all or individual post/pages.

      In a nutshell

      Make all pages viewable
      In RSVPMaker, add a ‘more’ section, then add a custom field id of block, value of true.

      All non logged on users will see is all above the RSVP Section. and A logon section to enable them to login and see it all.

      Example
      http://www.farehamheathens.co.uk/rsvpmaker/havant-3rd-xv-vs-fareham-heathens-xv-saturday-10th-2011/

  • Alyssa

    This looks like a very promising plugin! Is it possible to limit the number of RSVPs per time slot?

    • David F. Carr

      You can limit the overall # of RSVPs, but I don’t have a way of doing it per timeslot. Should be possible for you to write your own customization if it’s important to you (and you’re feeling ambitious). Otherwise, I can add it to the list of requested features.

    • Anonymous

      Should be possible as a customization, but not something I’ve built in.

      • mamaduckie

        I, too, think this plugin looks very promising but the ability to limit RSVPs per time slot is crucial.  I’m no expert but I’ve been known to make simple changes to code without breaking things.  Can you point me in the right direction for this customization?

    • bzdug

      I’m only planning on using this for one event, so this hack would apply to ALL events, but if it helps anyone…

      I edited the Jquery in rsvpmaker-display.php to only allow one additional guest field to be added, thereby limiting the max additional guests to two.

      Change guestMax to increase the amount of guests allowed per RSVP.

      jQuery(document).ready(function($) {

      var guestCount = 1;

      var guestMax = 2;

      $(‘#add_guests’).click(function(){

      guestCount++;

      if(guestCount<=guestMax){

      var guestline = 'First Name: Last Name: ‘;

      $(‘.add_one’).append(guestline);

      }

      if(guestCount==guestMax){

      $(this).css(‘visibility’,’hidden’); // HIDE ADD MORE Button

      }

      });

  • Anonymous

    How can I remove the phone number question from the form?

    I think I understand from this how to add fields, but not how to remove them. Should I put an empty rsvp_profile function in rsvpmaker-custom.php? How would that function look?

    • Anonymous

      The latest release will let you make some basic changes to the form fields from the settings screen, under Profile Table. This is the the HTML markup for that section of the form that asks for more details. So you don’t necessarily have to get into custom PHP coding if all you want to do is drop or change the phone # field. 

  • Shelly D

    Fantastic plugin! thank you! 

    I’d love to be able to “display attendees” in the sidebar as a widget, just as a feature request. :-) 

    but in the shorter term, I’d like to move the “show attendees” button to appear right after “x signed up so far”. I grabbed what seemed to be the relevant code, and pasted it higher up, but that ended up truncating the post – it would show attendees, but then did not display the RSVP form. Doh! Is there a quick fix for that? I

    • Marty

       Has this been replied to? Have you been successful in getting this working? if so, can you post the fix…..

  • Shelly D

    DOh! never mind. I figured it out! 

  • Im_the_joe

    Hi,
    Great plugin! but i have a few questions:

    How can i remove “# signed up so far.”?
    What is “Your answer: Yes No” function for and how can it be removed?
    How can i remove the “Bookmark the premalink”?
    How can i remove “Posted by admin on …”?

    Thanks!

    • Aspstables

      I don’t know if this is a really GOOD answer to your second question – but I used CSS to create a display:none; to hide that, because removing it from the code stopped it from recording the RSVP.   Your 4th question, I removed that by putting the single-rsvpmaker.php file into my theme folder, finding the DIV that holds it and removing the code for it (I removed it, so I can’t tell you exactly what it is).   Do the same thing for your 3rd question (find the div that is holding the permalink and remove it).

  • Keltexas

    Love this plugin! Is there a way that we can have a field that would allow “Number of additional guests” without them having to give us names for the guests?

    • Anonymous

      You would override the basic_form function defined in rsvpmaker-plugabble.php. Eliminate the blanks and related form fields for the guests. Add your own field with a name parameter something like profile[number_of_guests]. Your new field should be saved when someone submits the form and available in reports.

  • http://www.facebook.com/SEOZones Mike Waller

    great plugin!  Is there a way to remove the guests (sorry Keltexas!) altogether?  I also would like to remove the phone, phone type and Note form fields.  How would I do that?

    • Anonymous

      Look at the basic_form and rsvp_profile functions defined in rsvpmaker-plugabble.php. As described in this post, you can create a customization file that lets you override these with your own customized versions with an edited list of fields.

  • Havok

    Hi,
    I want to change the form so that once someone has confirmed, they *cannot* see/edit any fields – the page should just print what they have already confirmed.  Every user of the form is already a registered user of our site, so I’ve already hidden the first name / last name / email etc. and removed the “add extra guests” functionality as they’ll only have one.  The problem is, after rsvp’ing, they get presented with a screen where they can add extra guests and re-submit/change their mind.  I’ve been editing pluggable.php so far.  Any ideas?

    • Anonymous

      Instead of editing pluggable.php, you should be creating your own functions that override the default ones and putting them in a rsvpmaker-custom.php file as described above.

      You should be able to override the whole default routine for displaying the form with your own form and logic. That’s the idea, anyway.

      • Havok

        Thanks for the quick reply!
        Yeah, I got that, but this is for one specific form on a one-off site, so we don’t need to re-use anything for any other events etc. As such, it felt quicker…

        So, is there any way to switch off the editable state of the fields for anyone who has confirmed already and/or returns to the RSVP form?

        Cheers!

        • Havok

          Any ideas, anyone?  :-)

  • Roger8918

    Love the plugin…Kudos. 
    Is there a way to edit the responses, say from the RSVP Report? 
    Also, is there a way to remove the Notes from being displayed when the Show Attendee button is clicked? 

    • Anonymous

      Currently, you would have to muck around in the code, following the directions here for overriding functions.

  • Kevin Walter

    How can I change the default length of the first and last name fields?  They are too long and bleed into the right nav bar of my template.

  • Teammocha

    Is there a way to add an image in calendar view.. Like an event flyer on the day the event is posted.. and image on the event listing in sidebar widget…Im will to pay for enhancement.. email me at teammocha@gmail.com.. ty

  • Jeremy Plack

    How can I modify the confirmation email sent to RSVPs?

  • Anonymous

    I’m sorry, I’ve been running behind on responding to requests for enhancements and possible modifications. Will try to bunch up some of these and address soon.

  • Michael

    Is there a way to change the event url page so it doesn’t have /rsvpmaker/ in it, but instead is a sub-page of the page I put [rsvpmaker_upcoming] on?

    • http://www.carrcommunications.com David F. Carr

      No easy way. RSVPMaker uses WordPress custom post types, and the name of the post type is used in the url as a way of distinguishing between rsvpmaker events and regular posts.

      • Michael

        In that case, is there a way to change it to just “rsvp”? Thanks for the great plugin!

        • Hazel

          Hi Michael. This is possible but you will have to edit the plugin’s core files to do this and you won’t be able to simply update it when David releases a new version because the changes you made will be overwritten. 

          David, is it possible to implement this on the next version of the plugin? Change rsvpmaker to rsvp? Unfortunately, it will affect all the current users of the plugin because URLs will have to change. So I guess not.

        • Jerome Leroy

          David I share Michael’s idea here.

  • Joe

    How can you make certain fields “required”?

    • http://www.carrcommunications.com David F. Carr

      You could do it through custom programming, either in JavaScript code or with server side validation. I don’t have a ready-made script to show you, although I can add that to my todo list.

      • Joe

        I don’t know much coding, so when/if you get a chance, please provide us with instructions.

  • http://www.mediasme.com/ Hazel

    Hi David! Thank you for this great plugin. I need to exclude events post with dates later than today. Is this supported? I found a great tutorial here: 
    http://www.problogdesign.com/wordpress/how-to-make-a-wordpress-events-list/ … which may work but in order for me to apply this, I need to know the meta key you used for the event dates. I appreciate your response. Thanks!

    • http://www.carrcommunications.com David F. Carr

      The tutorial you’re pointing to is not using RSVPMaker. It outlines a different technique for handling dates.

      So you want to have a listing of only today’s events, nothing in the future? I’m sorry, that’s not a requirement I ever anticipated so it would not be an easy one to address.

  • Hazel

    Hi David! May I know the correct format of the date in the custom field ”
    _rsvp_deadline”. I am trying to use meta_compare with today’s date so I can exclude event posts whose deadline date has passed. My date format is m/d/Y H:i:s but it is not comparing properly with 
    _rsvp_deadline which may have a different format. Appreciate your help. Thanks!

  • Joe

    Hi,
    I used the rsvpmaker-custom.php and it loaded up when i view my website, so i know that i placed the file in the right directory. My main goal is to be able to down it from admin panel as an excel file and that part is not working. Under RSVP Events > RSVP Report it shows that i have X number of RSVP for an event. When i click on it, it shows me who they are and shows a link at top for “Format for printing” and “Download to Excel” and a link at the bottom to Delete record. When i click on “Download to Excel”, nothing happens but other 2 links (print and delete) works. Can you please look into it? I tried the default customer file and my edited file and neither of the time i was able to download the excel file. 
    Also, i don’t need “first name” and “last name” i want to rename them and i want to make sure that each of those field show up with proper “Cell” name in excel and not as “first name” “last name”.
    Thanks!

    • Joe

      Also, the “Download to Excel” box at the bottom of the page does not show. only the link “Download to Excel” shows at the top of the page and im using WP 3.3.2

      • http://www.carrcommunications.com David F. Carr

        You should see a form at the bottom of the page with checkboxes for the available data fields and a button that says Get Spreadsheet. The Download to Excel link on the page is an internal link that takes you to that part of the page. When you click on the button, an Excel file should be downloaded in the background and pushed to your browser. If your browser handles downloads in the background, you may not see anything visually displayed on screen, but when you check the browser’s downloads records you should see it there.

        You say you’re not seeing the download form with that button at all? Have you already made modifications to the rsvp_report function using the customization file?

        • Joe

          Hi,
          If I use the custom file (without any modifications- just the way you provide it), I don’t see the download box. But if I use the default RSVP file, I see the download box in the admin. Right now, I’m using the default file with modifications and I was able to rename all the fields in the form and in excel but I know that once you releace an update, I will lose all that if I forget to backup. So, I’m still looking for a solution.
          Thanks!

  • christian isberg

    hi, this is brilliant, i’ve been trying to provide a function which lets you chose what the rsvp sholud contain. Some might only contain e-mail and some only name. I want to create checkboxes for each; (similar to the captcha option) i managed to create the boxes but not the rest. can someone guide me?

    • http://www.carrcommunications.com David F. Carr

      The latest release includes a method for tweaking the RSVP form on a per-event basis, not with checkboxes but by defining an event template

  • Anne Ward

    Thank you for this plugin. It’s working well for us!
    My board members want me to remove “# signed up so far.”
    I see the question in the comments below, but don’t see the answer.
    Could you tell me how to remove that?
    Thanks much!

    • http://www.carrcommunications.com David F. Carr

      I just got around to adding a checkbox option for this.

  • Dustin Kraus

    How do I get a sidebar to show up in a single event view?

    • http://www.carrcommunications.com David F. Carr

      That’s controlled by your theme, either single.php (same as for single blog posts) or single-rsvpmaker.php if you want to create a variation specifically for events (recommended if you want to eliminate distractions like the comment form and the event posted date vs. date of the event).

  • Heidi

    How do I remove the “Go to Events Page” from the widget?

  • Mark Charb.

    How can I change the form to use a radio button instead of the checkboxes to select a time choice? Can this be coded as an option in a future upgrade? Thanks

  • Jerome Leroy

    Hi

    It looks like a wonderful plugin. Thanks for providing this to the community. I was wondering if you have any plan to let registered users add event via the front end.

    Thanks again.

  • Ken D.

    I don’t want to allow someone to register for an event and only allow members to RSVP to an event. How can I remove the new registration part?

    • http://www.carrcommunications.com David F. Carr

      There’s a checkbox on the event setup form that will let you make an event require that the individual log in first. You need to make your members at least subscriber-level WordPress users. I’ve done things like that with some of my sites.