Event Registration Mod

Started by pftq, August 15, 2009, 01:57:42 PM

Previous topic - Next topic

pftq

Link to Mod

Demo and example usage by an actual community can be found here: Canasta Club

Latest Updates (.19):
- Rewrote signups sorting mechanism to address some users seeing reversed sorting.
- Date/Time of signup/confirmation on the list.
- Disabled HTML from being input in signup names/comments.
- Fixed error/notices coming from enabling sorting of registrations.
- Fixed sorting of confirmed registrations going in the wrong order (early confirmations should be first, not last).
- Added "Waitlisted" header to waitlist to be more clear.
- Fixed broken html and some general notice/errors from SMF1 to SMF2 port.
- Changed default event options to no attendees (disabled event registration), allowing guests, and allowing comments.
- Reworded some options (Days Before Event, Batch Signups) to be more easily understood.

The mod is now also available on SMF2! Special thanks to floomp for basically porting the whole thing. :D

Original Mod by Tyrsson and kripz
-  Creating a calendar event will allow you to register for this event.
-  A max number of attendants can be specified when creating the event, each person registered after the max number has a +n to note that they are on the waiting list.
-  7 Days (customizable) before the event date you will be allowed to confirm for the event.
-  4 Days (customizable) before the event the list is sorted with confirmed attendants appearing first.
-  On the day of the event (customizable), registrations are closed.
-  You can unregister at any time.

Added features by pftq:
- Allow multiple registrations from the same member, to allow them to sign additional people up.  Optional per event.
- Allow registrations from guests.  Optional per event.
- Allow comments to accompany signups (for additional information such as event needs, etc).
- Admin Register button added, allows you to register or delete other members from the event.
- Admin buttons always visible now, even if Admin isn't registered for the event.
- Allow members with moderating permissions to administrate event sign ups.
- Event administrator can also confirm or cancel any signups on the topic view.
- $timeleft fixed, was originally not ever getting the option to confirm. (Display Source and Template)
- Show number of days remaining before you can confirm. (Display Template and Language files)
- Setting days before confirmation to 0 disables confirmation for the event (hides confirm buttons).
- Setting max attendants to 0 will disable registration for that event (not every event needs signups).
- Post Event page (the one with just event title, no post) does not show event data; sometimes too much clutter when you might not want to link the event to a topic. (Calendar template)
- Event registration options on post event page combined on same lines to save space. (Post template)
- Terms and Conditions don't show if they are blank. (registerEvent.php)


Changelog...

20150818: .18, pftq
- Simple update to include date/time of signup or confirmation on the signup list.

20120125: .175BETA, pftq
- Disabled HTML from being input in signup names/comments.
- floomp: Ported to SMF 2.0.1

20110405: .174BETA, pftq
- Fixed errors showing up in Admin Log for signups to events without comments.  Thanks oridyne

20110326: .174BETA, pftq
- Added comments to accompany signups (for additional information such as event needs, etc).
- Fixed Admin Register page allowing members to get signed up twice unintentionally.

20110110: .173BETA, pftq
- Modifying other people's events will let you edit the post and event registration as well.  This is actually an SMF bug but it doesn't hurt to patch it up while it hasn't been fixed yet (SMF later fixing this won't break it).
- Setting max attendants to 0 will disable registration for that event (not every event needs signups).

20110108: .172BETA, pftq
- Updated admin register page to use member realName (display names) like the rest of SMF.

20110106: .172BETA, pftq
- Fixed terms and conditions, forgot to update after implementing guest/multiple registrations.

20110105: .172BETA, pftq
- Allow multiple registrations from the same member, to allow them to sign additional people up.  Optional per event.
- Allow registrations from guests.  Optional per event.
- Allow signups to be confirmed or cancelled from administrative view.
- Allow members with moderating permissions to administrate event sign ups.
- Added permissions check within the Registration script incase of security hole.
- Setting days before confirmation to 0 disables confirmation for the event (hides confirm buttons).
- Event registration options on post event page combined on same lines to save space.

20110104: .171BETA, pftq
- Uploaded correct version of mod; previously the mod did not work because of wrong version uploaded.
- Renamed version to .171BETA to avoid confusing myself.

20100710: .17BETA, pftq
- Post Event page (the one with just event title, no post) does not show event data; sometimes too much clutter when you might not want to link the event to a topic.

20091229: .17BETA, pftq
- Admin Register button added that allows the admin to register or delete other members from the event.  Feature borrows code from the SMF Notify Group mod.
- Admin buttons always visible now, even if Admin isn't registered for the event.

20091228: .17BETA, pftq
- Terms and Conditions don't show if they are blank. (registerEvent.php)
- $timeleft fixed, was originally not ever getting the option to confirm. (Display Source and Template)
- Show number of days remaining before you can confirm. (Display Template and Language files)

Older changes from the original mod...
0.17 BETA:
- Added a customizable per event Terms and Conditions page (bbcode-able).
0.161 BETA:
- Quick fix, sorting doesnt work.
0.16 BETA: Added login/register text for guest view.
- Added option to customize the number of days before closing event registrations, event sorting and event confirmations.
- Added administrative options to each event allowing admins to PM registrants, confirmed attendants or unconfirmed attendants.
0.15 BETA:
- Fixed some minor xhtml and php errors.
0.14 BETA:
- Fixed bug registrations and wrong ID's.
0.13 BETA:
- Fixed URL for viewing members in event list.
- Added sessions checks.
- Added Max Attendants field to calendar edit page.
0.12 BETA:
- Fixed typo which affected case sensitive servers.
0.11 BETA:
- Hides buttons and displays "Registrations closed" if the current time is after the event date.
0.1 BETA:
- Re worked registrants list to display large events better: tinyurl.com/evntlst

gameballa

can you make this work for polls and normal topics?? not just events..
Online Videogame Competitions = Play 4 Free or 4 Cash @ GamerComp.com


"The only way you will ever have peace is if you no longer believe the lie is true"

kripz

Quote from: gameballa on August 15, 2009, 02:56:34 PM
can you make this work for polls and normal topics?? not just events..

Im not sure what you mean, this is suppose to be an event registration mod. Events are created in the calendar.

gbsothere

kripz, I recently asked a question on the Mod request board about the calendar:

http://www.simplemachines.org/community/index.php?topic=330352.0

Is there any way the features of your mod can be used to accomplish what I'm asking for:  some sort of "reminder" of an event?  How are registrants reminded to confirm with your mod?  Also are these time frames changeable (number of days)?

7 Days before the event date you will be allowed to Confirm for the event.
4 Days before the event the list is sorted with confirmed attendants appearing first.


If your mod wouldn't really work with what I asked about, will you be working on any future calendar mods?   :)

SMF 1.1.10/Default
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

jdaw

Hi, I have your mod on my site and am wondering if you can add some custom fields options.


The events that we run will be Rock crawling events and for these events we need to separate the different classes of vehicles and list some of there running gear they have on their vehicles.

There is another site that has a system that is similar to what I need but they do not use SMF.

This is a sample of some of the data I would like to add to my registration form:
    http://houston4wd.org/fallrun09/fallrun09/Registration.html [nofollow]     (gray shaded box)

And here is the output of the registered attendees: 
http://houston4wd.org/fallrun09/fallrun09/Already_Registered.html [nofollow]

I use the Custom Profile Field Mod  which enables me to have custom fields in my users profile. 
The fields I have in my profile are:
ME-->:     John.....
My Rides Name:    No Name right now but Sponge Bob Square pants rides with me
Year:    1985
Make:    Jeep
Model:    CJ
Engine:    AMC 360
Transmission:    TF 727, 3sp auto
Transfer Case:    Dana 300
Front Axle:    D30
Rear Axle:    D20
Wheels:    Black Street Lockers
Tires:    BFG KM2's 35x12.50x15
Lift:    Rubicon Express Extreme Duty 4.5"
Recovery Gear:    30' Strap
Lighting:    Hella 55 watt Driving Lights
Electronics:    Good Times Radio
Future Mods:    Full Cage, Axles, Lockers, paint job

I would not need all of these but if you could incorporate a way of pulling certain fields from the user profile, it would be perfect for me.


Thanks for your hard work on this mod.

-john
-john

TheDisturbedOne

Yes!!! My life is complete!!!!

Blinker

Hi kripz, fantastic mod....SMF has needed this for a very long time.

Only problem is, it doesn't seem to work on my site. The install went fine, no errors at all. I edited my custom theme's display.template.php file with no problems as well.

Basically, I can create events in the calendar (as normal before) or I can post a new topic and link it to the calendar (as before), but no linked event shows at the top of the thread and no button to register! Before the mod a linked event would always show (without the register button obviously).

Any ideas?

kripz

Quote from: gbsothere on August 15, 2009, 10:03:14 PMIs there any way the features of your mod can be used to accomplish what I'm asking for:  some sort of "reminder" of an event?  How are registrants reminded to confirm with your mod?  Also are these time frames changeable (number of days)?

At this point there are no reminders and it probably isnt possible with SMF 1.x. SMF 2 has a scheduler type thing which could be used for this sort of thing. You could always send out newsletters.

At this point the time frames are hard coded.

Quote from: jdaw on August 15, 2009, 10:38:32 PM
Hi, I have your mod on my site and am wondering if you can add some custom fields options.

A simple text box will be relatively easy but pulling fields out of the database, especially for another mod, not that easy.

Quote from: Blinker on August 15, 2009, 11:18:27 PM
Only problem is, it doesn't seem to work on my site. The install went fine, no errors at all. I edited my custom theme's display.template.php file with no problems as well.

Basically, I can create events in the calendar (as normal before) or I can post a new topic and link it to the calendar (as before), but no linked event shows at the top of the thread and no button to register! Before the mod a linked event would always show (without the register button obviously).

Any ideas?

Have you checked "Show linked events in topic display" in the admin CP?

Blinker

Quote from: kripz on August 16, 2009, 02:54:55 AMHave you checked "Show linked events in topic display" in the admin CP?

D'oh! That fixed it, thanks kripz. I forgot I recently turned it off due to a bug in SMF that shows linked events as being one day later than the actual event. It shows on the correct day the calendar but in the thread view it's a day later.

Very annoying bug and may mean I can't use this mod until it's fixed.

BTW, where can I change the css for the list of registered members? My forum has a black background and light grey with white text looks terrible.

kripz

Quote from: Blinker on August 16, 2009, 03:47:22 AM
Quote from: kripz on August 16, 2009, 02:54:55 AMHave you checked "Show linked events in topic display" in the admin CP?

D'oh! That fixed it, thanks kripz. I forgot I recently turned it off due to a bug in SMF that shows linked events as being one day later than the actual event. It shows on the correct day the calendar but in the thread view it's a day later.

Very annoying bug and may mean I can't use this mod until it's fixed.

BTW, where can I change the css for the list of registered members? My forum has a black background and light grey with white text looks terrible.

That bug only occurs if you try to edit an event after x amount of time, where x being you arent allowed to "repost" it, you only edit it. Im not sure what that's called. Its like a forum post, if you edit 5 seconds after you post, it wont say you edit it. But 1 day later and it will.

My code uses the same style as .code in the template's css file (code block).

ExSpirit

#10
This could be useful mod but would be nice to have:
"Comment" field (would be nice if this can be enabled or disabled in admin CP or even better in event start topic settings):


Or even more advanced, more fields, which are set by event starter . Most of the time when my members are applying to some event I need some info from them and this would be much better than just "Register":


Quote7 Days before the event date you will be allowed to Confirm for the event.
4 Days before the event the list is sorted with confirmed attendants appearing first.
Can this be made, that event started decides when? What about for last X days member can't unregister anymore (maybe just Unconfirm) - event started decides...

kripz

#11
Quote from: ExSpirit on August 16, 2009, 04:39:08 AM
This could be useful mod but would be nice to have:
"Comment" field (would be nice if this can be enabled or disabled in admin CP or even better in event start topic settings):

That is do-able and pretty easy. As for enabling in ACP etc, havent figured out how to do that yet.

QuoteOr even more advanced, more fields, which are set by event starter . Most of the time when my members are applying to some event I need some info from them and this would be much better than just "Register":
Do-able but if i was to do that, i would want to make it fully customizable rather than hardcoded boxes and fields.

Quote
Quote7 Days before the event date you will be allowed to Confirm for the event.
4 Days before the event the list is sorted with confirmed attendants appearing first.
Can this be made, that event started decides when? What about for last X days member can't unregister anymore (maybe just Unconfirm) - event started decides...
Im currently working on that.

Blinker

Quote from: kripz on August 16, 2009, 03:55:05 AMThat bug only occurs if you try to edit an event after x amount of time, where x being you arent allowed to "repost" it, you only edit it. Im not sure what that's called. Its like a forum post, if you edit 5 seconds after you post, it wont say you edit it. But 1 day later and it will.

kripz, this doesn't have anything to do with edits or edit time. It's been this way from day one on my forum. If the forum has a time offset (in my case +17hrs) it shows the event in the cal on the right day but the linked event date at the top of threads is a day ahead. See here - http://www.simplemachines.org/community/index.php?topic=97912.0

Basically it happens from the first time you post an event and link it. Edits have nothing to do with it. It's probably good for you to be aware of this, no doubt a lot of other members would have this issue.

kripz

Ah, i only got that issue when editing events. It's been reported several times already (since like 2008). Hopefully it gets fixed.

neuikc

Something like this for 2.x would be sexy.

improv

Awesome that your modification is approved!
I'm using it and runs flawless on my forums ;).

jdaw

Quote from: ExSpirit on August 16, 2009, 04:39:08 AM
Or even more advanced, more fields, which are set by event starter . Most of the time when my members are applying to some event I need some info from them and this would be much better than just "Register":

THIS would be a plus, maybe even have an option of being required or not.

Also I just downloaded the mod again to update my site and it showed  ERM_0.17BETA.zip  but when it was installed it showed  Event Registration Mod      0.16 BETA

THANKS again for a great mod.
-john

ExSpirit

#17
Days before sorting registrations - this function doesn't work (at least like it should). If I set it to "5" and till event there's only 3 more days, members are not sorted.

Could you also add time for the event? Under date we can also write time (default set to 00:00 and if it's left like that it's not shown in post, else it's shown after date). Or even better, replace "Event title" with time since it's pointless to write "subject" twice (you write it at "Event title" and later on "subject").

And another thing is - maybe it would be OK to have options to enable/disable "Confirm"... Or maybe if member registers at event and already have option to Confirm - it's auto confirmed already, since it's pointless to press two buttons just to apply.

Another great feature would be that admin/event started would be able to remove some people from event (this is kind of must be, since some people are unwanted).

RustyBarnacle

Looking great.  Sure beats copy/paste a list of names and you're never sure which page of posts has the latest list.

kripz

QuoteDays before sorting registrations - this function doesn't work (at least like it should). If I set it to "5" and till event there's only 3 more days, members are not sorted.

fixed in .161

QuoteCould you also add time for the event? Under date we can also write time (default set to 00:00 and if it's left like that it's not shown in post, else it's shown after date). Or even better, replace "Event title" with time since it's pointless to write "subject" twice (you write it at "Event title" and later on "subject").

Possibly.

QuoteAnd another thing is - maybe it would be OK to have options to enable/disable "Confirm"... Or maybe if member registers at event and already have option to Confirm - it's auto confirmed already, since it's pointless to press two buttons just to apply.

No its not pointless, you may have a month of registrations and 1 week before the event allow them to confirm. This will give more accurate numbers rather than going alone on registrations. Some people may forget, have things come up etc etc.

QuoteAnother great feature would be that admin/event started would be able to remove some people from event (this is kind of must be, since some people are unwanted).

I probably will not do this until i figure out how to use permissions.

Advertisement: