Advertisement:

Author Topic: Event Registration Mod  (Read 157467 times)

Offline pftq

  • Jr. Member
  • **
  • Posts: 227
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Event Registration Mod
« on: August 15, 2009, 01:57:42 PM »
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...
Code: [Select]
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
« Last Edit: November 30, 2013, 05:36:30 PM by pftq »

Offline gameballa

  • Jr. Member
  • **
  • Posts: 108
    • GamerComp.com
Re: Event Registration Mod
« Reply #1 on: August 15, 2009, 02:56:34 PM »
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"

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #2 on: August 15, 2009, 09:50:29 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.

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: Event Registration Mod
« Reply #3 on: August 15, 2009, 10:03:14 PM »
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.

Offline jdaw

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • The Dogs of War
Re: Event Registration Mod
« Reply #4 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.


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

Offline TheDisturbedOne

  • SMF Hero
  • ******
  • Posts: 1,700
    • Disturbed Message Board
Re: Event Registration Mod
« Reply #5 on: August 15, 2009, 10:45:51 PM »
Yes!!! My life is complete!!!!

Offline Blinker

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
Re: Event Registration Mod
« Reply #6 on: August 15, 2009, 11:18:27 PM »
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?

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #7 on: August 16, 2009, 02:54:55 AM »
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)?

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.

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.

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?

Offline Blinker

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
Re: Event Registration Mod
« Reply #8 on: August 16, 2009, 03:47:22 AM »
Have 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.

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #9 on: August 16, 2009, 03:55:05 AM »
Have 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).

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Event Registration Mod
« Reply #10 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):


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":


Quote
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.
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...
« Last Edit: August 16, 2009, 04:48:55 AM by ExSpirit »

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #11 on: August 16, 2009, 04:55:37 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.

Quote
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":
Do-able but if i was to do that, i would want to make it fully customizable rather than hardcoded boxes and fields.

Quote
Quote
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.
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.
« Last Edit: August 16, 2009, 05:00:00 AM by kripz »

Offline Blinker

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
Re: Event Registration Mod
« Reply #12 on: August 16, 2009, 05:51:07 AM »
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.

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.

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #13 on: August 16, 2009, 06:54:01 AM »
Ah, i only got that issue when editing events. It's been reported several times already (since like 2008). Hopefully it gets fixed.

Offline neuikc

  • Semi-Newbie
  • *
  • Posts: 24
Re: Event Registration Mod
« Reply #14 on: August 16, 2009, 11:23:48 AM »
Something like this for 2.x would be sexy.

Offline improv

  • Jr. Member
  • **
  • Posts: 395
Re: Event Registration Mod
« Reply #15 on: August 16, 2009, 11:58:34 AM »
Awesome that your modification is approved!
I'm using it and runs flawless on my forums ;).

Offline jdaw

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
    • The Dogs of War
Re: Event Registration Mod
« Reply #16 on: August 16, 2009, 07:49:02 PM »
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

Offline ExSpirit

  • Jr. Member
  • **
  • Posts: 190
Re: Event Registration Mod
« Reply #17 on: August 17, 2009, 04:30:57 AM »
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).
« Last Edit: August 17, 2009, 03:43:04 PM by ExSpirit »

Offline RustyBarnacle

  • Sr. Member
  • ****
  • Posts: 722
    • Saving Tallingroth
Re: Event Registration Mod
« Reply #18 on: August 17, 2009, 02:56:07 PM »
Looking great.  Sure beats copy/paste a list of names and you're never sure which page of posts has the latest list.

Offline kripz

  • Semi-Newbie
  • *
  • Posts: 63
Re: Event Registration Mod
« Reply #19 on: August 17, 2009, 07:18:56 PM »
Quote
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.

fixed in .161

Quote
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").

Possibly.

Quote
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.

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.

Quote
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).

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