Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: pftq on August 15, 2009, 01:57:42 PM

Title: Event Registration Mod
Post by: pftq on August 15, 2009, 01:57:42 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2024)

Demo and example usage by an actual community can be found here: Canasta Club (http://canasta.pftq.com/forums/index.php?topic=849)

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
Title: Re: Event Registration Mod
Post by: gameballa on August 15, 2009, 02:56:34 PM
can you make this work for polls and normal topics?? not just events..
Title: Re: Event Registration Mod
Post by: kripz 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.
Title: Re: Event Registration Mod
Post by: gbsothere 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 (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
Title: Re: Event Registration Mod
Post by: 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.


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     (gray shaded box)

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

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
Title: Re: Event Registration Mod
Post by: TheDisturbedOne on August 15, 2009, 10:45:51 PM
Yes!!! My life is complete!!!!
Title: Re: Event Registration Mod
Post by: Blinker 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?
Title: Re: Event Registration Mod
Post by: kripz 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?
Title: Re: Event Registration Mod
Post by: Blinker 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.
Title: Re: Event Registration Mod
Post by: kripz 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).
Title: Re: Event Registration Mod
Post by: 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):
(http://img329.imageshack.us/img329/5867/event1u.jpg)

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":
(http://img329.imageshack.us/img329/5185/event2.jpg)

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...
Title: Re: Event Registration Mod
Post by: kripz 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):
(http://img329.imageshack.us/img329/5867/event1u.jpg)
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":
(http://img329.imageshack.us/img329/5185/event2.jpg)
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.
Title: Re: Event Registration Mod
Post by: Blinker 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.
Title: Re: Event Registration Mod
Post by: kripz 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.
Title: Re: Event Registration Mod
Post by: neuikc on August 16, 2009, 11:23:48 AM
Something like this for 2.x would be sexy.
Title: Re: Event Registration Mod
Post by: improv on August 16, 2009, 11:58:34 AM
Awesome that your modification is approved!
I'm using it and runs flawless on my forums ;).
Title: Re: Event Registration Mod
Post by: jdaw 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":
(http://img329.imageshack.us/img329/5185/event2.jpg)

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.
Title: Re: Event Registration Mod
Post by: ExSpirit 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).
Title: Re: Event Registration Mod
Post by: RustyBarnacle 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.
Title: Re: Event Registration Mod
Post by: kripz 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.
Title: Re: Event Registration Mod
Post by: ExSpirit on August 17, 2009, 07:40:46 PM
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.
I ment if I set event 1 week before start and I select "Days before allowing confirmation" 7 or if member Registeres when "allowing confirmation" is already active then he has to click "Register" and again "Confirm"... Would be good if "allowing confirmation" would be already active user who registers is automatically "Confirmed".

Quote
I probably will not do this until i figure out how to use permissions.
Well if you won't be able to figure out how to set permission for event starter you can always use "if ($user_info['is_admin'])" so that at least admin may remove users from list or admin and mods "if (($user_info['is_admin']) || ($user_info['is_mod']))"
Title: Re: Event Registration Mod
Post by: 4b11l on August 18, 2009, 03:48:59 AM
Slight problem.

The way SMF links the posts to the events, it's a two step process. So, it starts with the EVENT. (pic 1)
Then, when you click on POST, it'll take you to another screen where you can input the message context/subject, etc.. (pic2)

It doesn't seem like it's saving/storing what is inputted into the first step. Your modification shows 50, 7, 4, 0 and it'll always change back to this no matter what you put in the first step. The second step will always show those numbers. Is this something you can fix or is it SMF so that if it was changed in the first step, it'll be saved and applied on step 2. (i.e. 100, 5, 3, 1)

Side note, just pointing it out that the #'s doesn't seem to affect/show up on the first step. Not a big deal to me, but might be for others. I'd like the issue above addressed first if possible. 

Is anyone else having this problem too, or is it just me?

Thanks!
Title: Re: Event Registration Mod
Post by: RustyBarnacle on August 18, 2009, 12:29:57 PM
I've never had that problem but I just click a calendar date and it takes me straight to step 2.
Title: Re: Event Registration Mod
Post by: Rafferty on August 18, 2009, 09:04:43 PM
I think it may be important to attempt to make the confirmation dates more flexible. For most events, confirming 7 days before just isnt long enough. Now if it were a selectable choice of say 7, 14 & 30 days, or the facility to put in your own, the mod would be much more useful other than for the more minor events.

It's a great mod and works very well, Well done & I look forward to the improvements.
Title: Re: Event Registration Mod
Post by: kripz on August 18, 2009, 10:50:37 PM
I think it may be important to attempt to make the confirmation dates more flexible. For most events, confirming 7 days before just isnt long enough. Now if it were a selectable choice of say 7, 14 & 30 days, or the facility to put in your own, the mod would be much more useful other than for the more minor events.

It's a great mod and works very well, Well done & I look forward to the improvements.


Quote
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

Currently working on a Terms and Conditions page before registering. Next thing is permissions.
Title: Re: Event Registration Mod
Post by: Rafferty on August 18, 2009, 11:21:02 PM
xlant work
Title: Re: Event Registration Mod
Post by: gameballa on August 19, 2009, 06:03:51 AM
can you make this work for polls and normal topics?? not just events..

I got what i wanted.. i wanted to have a way of posting events while in my fourms not just in the calender so I went to MessageIndex.template.php and edited this code


Code: [Select]

// Create the button set...
    $normal_buttons = array(
       
       
        'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=calendar;sa=post;board=' . $context['current_board'] . '.0'),

Title: Re: Event Registration Mod
Post by: ricardo35 on August 19, 2009, 06:59:24 AM
Unknown column 'cal.maxAttendants' in 'field list'
File: /home2/hyperio1/public_html/Sources/Calendar.php
Line: 350

Any support is appreciated, thanks :)

Code: [Select]
<?php
/**********************************************************************************
* Calendar.php                                                                    *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1.5                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
***********************************************************************************
* Original module by Aaron O'Neil - aaron@mud-master.com                          *
***********************************************************************************/
if (!defined('SMF'))
    die(
'Hacking attempt...');

/*    This file has only one real task... showing the calendar.  Posting is done
    in Post.php - this just has the following functions:

    void CalendarMain()
        - loads the specified month's events, holidays, and birthdays.
        - requires the calendar_view permission.
        - depends on the cal_enabled setting, and many of the other cal_
          settings.
        - uses the calendar_start_day theme option. (Monday/Sunday)
        - uses the main sub template in the Calendar template.
        - goes to the month and year passed in 'month' and 'year' by
          get or post.
        - accessed through ?action=calendar.

    array calendarBirthdayArray(string earliest_date, string latest_date)
        - finds all the birthdays in the specified range of days.
        - earliest_date and latest_date are inclusive, and should both be in
          the YYYY-MM-DD format.
        - works with birthdays set for no year, or any other year, and
          respects month and year boundaries.
        - returns an array of days, each of which an array of birthday
          information for the context.

    array calendarEventArray(string earliest_date, string latest_date,
            bool use_permissions = true)
        - finds all the posted calendar events within a date range.
        - both the earliest_date and latest_date should be in the standard
          YYYY-MM-DD format.
        - censors the posted event titles.
        - uses the current user's permissions if use_permissions is true,
          otherwise it does nothing "permission specific".
        - returns an array of contextual information if use_permissions is
          true, and an array of the data needed to build that otherwise.

    array calendarHolidayArray(string earliest_date, string latest_date)
        - finds all the applicable holidays for the specified date range.
        - earliest_date and latest_date should be YYYY-MM-DD.
        - returns an array of days, which are all arrays of holiday names.

    void calendarInsertEvent(int id_board, int id_topic, string title,
            int id_member, int month, int day, int year, int span)
        - inserts the passed event information into the calendar table.
        - recaches the calendar information after doing so.
        - expects the passed title not to have html characters.
        - handles spanned events by inserting them multiple times.
        - does not check any permissions of any sort.

    bool calendarCanLink()
        - checks if the current user can link the current topic to the
          calendar, permissions et al.
        - this requires the calendar_post permission, a forum moderator, or a
          topic starter.
        - expects the $topic and $board variables to be set.
        - returns true or false corresponding to whether they can or cannot
          link this topic to the calendar.

    void CalendarPost()
        - processes posting/editing/deleting a calendar event.
        - calls Post() function if event is linked to a post.
        - calls calendarInsertEvent() to insert the event if not linked to post.
        - requires the calendar_post permission to use.
        - uses the event_post sub template in the Calendar template.
        - is accessed with ?action=calendar;sa=post.
*/

// Show the calendar.
function CalendarMain()
{
    global 
$txt$context$modSettings$scripturl$options;

    
// If we are posting a new event defect to the posting function.
    
if (isset($_GET['sa']) && $_GET['sa'] == 'post')
        return 
CalendarPost();

    
// This is gonna be needed...
    
loadTemplate('Calendar');

    
// Permissions, permissions, permissions.
    
isAllowedTo('calendar_view');

    
// You can't do anything if the calendar is off.
    
if (empty($modSettings['cal_enabled']))
        
fatal_lang_error('calendar_off'false);

    
// Set the page title to mention the calendar ;).
    
$context['page_title'] = $context['forum_name'] . ': ' $txt['calendar24'];

    
// Get the current day of month...
    
$today = array(
        
'day' => (int) strftime('%d'forum_time()),
        
'month' => (int) strftime('%m'forum_time()),
        
'year' => (int) strftime('%Y'forum_time()),
    );
    
$today['date'] = sprintf('%04d-%02d-%02d'$today['year'], $today['month'], $today['day']);

    
// If the month and year are not passed in, use today's date as a starting point.
    
$curPage = array(
        
'month' => isset($_REQUEST['month']) ? (int) $_REQUEST['month'] : $today['month'],
        
'year' => isset($_REQUEST['year']) ? (int) $_REQUEST['year'] : $today['year']
    );

    
// Make sure the year and month are in valid ranges.
    
if ($curPage['month'] < || $curPage['month'] > 12)
        
fatal_lang_error('calendar1'false);
    if (
$curPage['year'] < $modSettings['cal_minyear'] || $curPage['year'] > $modSettings['cal_maxyear'])
        
fatal_lang_error('calendar2'false);

    
// Get information about the first day of this month.
    
$firstDayOfMonth = array(
        
'dayOfWeek' => (int) strftime('%w'mktime(000$curPage['month'], 1$curPage['year'])),
        
'weekNum' => (int) strftime('%U'mktime(000$curPage['month'], 1$curPage['year']))
    );

    
// Find the last day of the month.
    
$nLastDay = (int) strftime('%d'mktime(000$curPage['month'] == 12 $curPage['month'] + 10$curPage['month'] == 12 $curPage['year'] + $curPage['year']));

    
// The number of days the first row is shifted to the right for the starting day.
    
$nShift $firstDayOfMonth['dayOfWeek'];

    
// Calendar start day- default Sunday.
    
$nStartDay = !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0;

    
// Starting any day other than Sunday means a shift...
    
if ($nStartDay)
    {
        
$nShift -= $nStartDay;
        if (
$nShift 0)
            
$nShift $nShift;
    }

    
// Number of rows required to fit the month.
    
$nRows floor(($nLastDay $nShift) / 7);
    if ((
$nLastDay $nShift) % 7)
        
$nRows++;

    
// Get the lowest and highest days of this month, in YYYY-MM-DD format. ($nLastDay is always 2 digits.)
    
$low $curPage['year'] . '-' sprintf('%02d'$curPage['month']) . '-01';
    
$high $curPage['year'] . '-' sprintf('%02d'$curPage['month']) . '-' $nLastDay;

    
// Fetch the arrays for birthdays, posted events, and holidays.
    
$bday = !empty($modSettings['cal_showbdaysoncalendar']) ? calendarBirthdayArray($low$high) : array();
    
$events = !empty($modSettings['cal_showeventsoncalendar']) ? calendarEventArray($low$high) : array();
    
$holidays = !empty($modSettings['cal_showholidaysoncalendar']) ? calendarHolidayArray($low$high) : array();

    
// Days of the week taking into consideration that they may want it to start on any day.
    
$context['week_days'] = array();
    
$count $nStartDay;
    for (
$i 0$i 7$i++)
    {
        
$context['week_days'][] = $count;
        
$count++;
        if (
$count == 7)
            
$count 0;
    }

    
// An adjustment value to apply to all calculated week numbers.
    
if (!empty($modSettings['cal_showweeknum']))
    {
        
// Need to know what day the first of the year was on.
        
$foy = (int) strftime('%w'mktime(00011$curPage['year']));

        
// If the first day of the year is a Sunday, then there is no adjustment
        // to be made. However, if the first day of the year is not a Sunday, then there is a partial
        // week at the start of the year that needs to be accounted for.
        
if ($nStartDay == 0)
            
$nWeekAdjust $foy == 1;
        
// If we are viewing the weeks, with a starting date other than Sunday, then things get complicated!
        // Basically, as PHP is calculating the weeks with a Sunday starting date, we need to take this into account
        // and offset the whole year dependant on whether the first day in the year is above or below our starting date.
        // Note that we offset by two, as some of this will get undone quite quickly by the statement below.
        
else
            
$nWeekAdjust $nStartDay $foy && $foy != 1;

        
// If our week starts on a day greater than the day the month starts on, then our week numbers will be one too high.
        // So we need to reduce it by one - all these thoughts of offsets makes my head hurt...
        
if ($firstDayOfMonth['dayOfWeek'] < $nStartDay)
            
$nWeekAdjust--;
    }
    else
        
$nWeekAdjust 0;

    
// Basic template stuff.
    
$context['can_post'] = allowedTo('calendar_post');
    
$context['last_day'] = $nLastDay;
    
$context['current_month'] = $curPage['month'];
    
$context['current_year'] = $curPage['year'];

    
// Load up the linktree!
    
$context['linktree'][] = array(
        
'url' => $scripturl '?action=calendar;year=' $context['current_year'] . ';month=' $context['current_month'],
        
'name' => $txt['months'][$context['current_month']] . ' ' $context['current_year']
    );

    
// Iterate through each week.
    
$context['weeks'] = array();
    for (
$nRow 0$nRow $nRows$nRow++)
    {
        
// Start off the week - and don't let it go above 52, since that's the number of weeks in a year.
        
$context['weeks'][$nRow] = array(
            
'days' => array(),
            
'number' => $firstDayOfMonth['weekNum'] + $nRow $nWeekAdjust
        
);
        
// Handle the dreaded "week 53", it can happen, but only once in a blue moon ;)
        
if ($context['weeks'][$nRow]['number'] == 53 && $nShift != 4)
            
$context['weeks'][$nRow]['number'] = 1;

        
// And figure out all the days.
        
for ($nCol 0$nCol 7$nCol++)
        {
            
$nDay = ($nRow 7) + $nCol $nShift 1;

            if (
$nDay || $nDay $context['last_day'])
                
$nDay 0;

            
$date sprintf('%04d-%02d-%02d'$curPage['year'], $curPage['month'], $nDay);

            
$context['weeks'][$nRow]['days'][$nCol] = array(
                
'day' => $nDay,
                
'date' => $date,
                
'is_today' => $date == $today['date'],
                
'is_first_day' => !empty($modSettings['cal_showweeknum']) && (($firstDayOfMonth['dayOfWeek'] + $nDay 1) % == $nStartDay),
                
'holidays' => !empty($holidays[$date]) ? $holidays[$date] : array(),
                
'events' => !empty($events[$date]) ? $events[$date] : array(),
                
'birthdays' => !empty($bday[$date]) ? $bday[$date] : array()
            );
        }
    }

    
// Find the previous month. (if we can go back that far.)
    
if ($curPage['month'] > || ($curPage['month'] == && $curPage['year'] > $modSettings['cal_minyear']))
    {
        
// Need to roll the year back one?
        
$context['previous_calendar'] = array(
            
'year' => $curPage['month'] == $curPage['year'] - $curPage['year'],
            
'month' => $curPage['month'] == 12 $curPage['month'] - 1,
        );
        
$context['previous_calendar']['href'] = $scripturl '?action=calendar;year=' $context['previous_calendar']['year'] . ';month=' $context['previous_calendar']['month'];
    }

    
// The next month... (or can we go that far?)
    
if ($curPage['month'] < 12 || ($curPage['month'] == 12 && $curPage['year'] < $modSettings['cal_maxyear']))
    {
        
$context['next_calendar'] = array(
            
'year' => $curPage['month'] == 12 $curPage['year'] + $curPage['year'],
            
'month' => $curPage['month'] == 12 $curPage['month'] + 1
        
);
        
$context['next_calendar']['href'] = $scripturl '?action=calendar;year=' $context['next_calendar']['year'] . ';month=' $context['next_calendar']['month'];
    }
}

// This is used by the board index to only find members of the current day. (month PLUS one!)
function calendarBirthdayArray($low_date$high_date)
{
    global 
$db_prefix$scripturl$modSettings;

    
// Birthdays people set without specifying a year (no age, see?) are the easiest ;).
    
if (substr($low_date04) != substr($high_date04))
        
$allyear_part "birthdate BETWEEN '0004" substr($low_date4) . "' AND '0004-12-31'
            OR birthdate BETWEEN '0004-01-01' AND '0004" 
substr($high_date4) . "'";
    else
        
$allyear_part "birthdate BETWEEN '0004" substr($low_date4) . "' AND '0004" substr($high_date4) . "'";

    
// We need to search for any birthday in this range, and whatever year that birthday is on.
    
$year_low = (int) substr($low_date04);
    
$year_high = (int) substr($high_date04);

    
// Collect all of the birthdays for this month.  I know, it's a painful query.
    
$result db_query("
        SELECT ID_MEMBER, realName, YEAR(birthdate) AS birthYear, birthdate
        FROM 
{$db_prefix}members
        WHERE YEAR(birthdate) != '0001'
            AND    (
$allyear_part
                OR DATE_FORMAT(birthdate, '
{$year_low}-%m-%d') BETWEEN '$low_date' AND '$high_date'" . ($year_low == $year_high '' "
                OR DATE_FORMAT(birthdate, '
{$year_high}-%m-%d') BETWEEN '$low_date' AND '$high_date'") . ")
            AND is_activated = 1"
__FILE____LINE__);
    
$bday = array();
    while (
$row mysql_fetch_assoc($result))
    {
        if (
$year_low != $year_high)
            
$age_year substr($row['birthdate'], 5) < substr($high_date5) ? $year_high $year_low;
        else
            
$age_year $year_low;

        
$bday[$age_year substr($row['birthdate'], 4)][] = array(
            
'id' => $row['ID_MEMBER'],
            
'name' => $row['realName'],
            
'age' => $row['birthYear'] > && $row['birthYear'] <= $age_year $age_year $row['birthYear'] : null,
            
'is_last' => false
        
);
    }
    
mysql_free_result($result);

    
// Set is_last, so the themes know when to stop placing separators.
    
foreach ($bday as $mday => $array)
        
$bday[$mday][count($array) - 1]['is_last'] = true;

    return 
$bday;
}

// Create an array of events occurring in this day/month.
function calendarEventArray($low_date$high_date$use_permissions true)
{
    global 
$db_prefix$ID_MEMBER$scripturl$modSettings$user_info$sc;

    
$low_date_time sscanf($low_date'%04d-%02d-%02d');
    
$low_date_time mktime(000$low_date_time[1], $low_date_time[2], $low_date_time[0]);
    
$high_date_time sscanf($high_date'%04d-%02d-%02d');
    
$high_date_time mktime(000$high_date_time[1], $high_date_time[2], $high_date_time[0]);

    
// Find all the calendar info...
    
$result db_query("
        SELECT
            cal.ID_EVENT, cal.startDate, cal.endDate, cal.title, cal.ID_MEMBER, cal.ID_TOPIC,
            cal.ID_BOARD, b.memberGroups, t.ID_FIRST_MSG
            , cal.maxAttendants, cal.daysSort, cal.daysConfirm, cal.daysClosed

        FROM 
{$db_prefix}calendar AS cal
            LEFT JOIN 
{$db_prefix}boards AS b ON (b.ID_BOARD = cal.ID_BOARD)
            LEFT JOIN 
{$db_prefix}topics AS t ON (t.ID_TOPIC = cal.ID_TOPIC)
        WHERE cal.startDate <= '
$high_date'
                AND cal.endDate >= '
$low_date'" . ($use_permissions "
            AND (cal.ID_BOARD = 0 OR 
$user_info[query_see_board])" ''), __FILE____LINE__);
    
$events = array();
    while (
$row mysql_fetch_assoc($result))
    {
        
// Censor the title.
        
censorText($row['title']);

        
$startDate sscanf($row['startDate'], '%04d-%02d-%02d');
        
$startDate max(mktime(000$startDate[1], $startDate[2], $startDate[0]), $low_date_time);
        
$endDate sscanf($row['endDate'], '%04d-%02d-%02d');
        
$endDate min(mktime(000$endDate[1], $endDate[2], $endDate[0]), $high_date_time);

        
$lastDate '';
        for (
$date $startDate$date <= $endDate$date += 86400)
        {
            
// Attempt to avoid DST problems.
            //!!! Resolve this properly at some point.
            
if (strftime('%Y-%m-%d'$date) == $lastDate)
                
$date += 3601;
            
$lastDate strftime('%Y-%m-%d'$date);

            
// If we're using permissions (calendar pages?) then just ouput normal contextual style information.
            
if ($use_permissions)
                
$events[strftime('%Y-%m-%d'$date)][] = array(
                    
'id' => $row['ID_EVENT'],
                    
'title' => $row['title'],
                    
'can_edit' => allowedTo('calendar_edit_any') || ($row['ID_MEMBER'] == $ID_MEMBER && allowedTo('calendar_edit_own')),
                    
'modify_href' => $scripturl '?action=' . ($row['ID_BOARD'] == 'calendar;sa=post;' 'post;msg=' $row['ID_FIRST_MSG'] . ';topic=' $row['ID_TOPIC'] . '.0;calendar;') . 'eventid=' $row['ID_EVENT'] . ';sesc=' $sc,
                    
'href' => $row['ID_BOARD'] == '' $scripturl '?topic=' $row['ID_TOPIC'] . '.0',
                    
'link' => $row['ID_BOARD'] == $row['title'] : '<a href="' $scripturl '?topic=' $row['ID_TOPIC'] . '.0">' $row['title'] . '</a>',
                    
'start_date' => $row['startDate'],
                    
'end_date' => $row['endDate'],
                    
'maxAttendants' => $row['maxAttendants'],
                    
'daysSort' => $row['daysSort'],
                    
'daysConfirm' => $row['daysConfirm'],
                    
'daysClosed' => $row['daysClosed'],

                    
'is_last' => false
                
);
            
// Otherwise, this is going to be cached and the VIEWER'S permissions should apply... just put together some info.
            
else
                
$events[strftime('%Y-%m-%d'$date)][] = array(
                    
'id' => $row['ID_EVENT'],
                    
'title' => $row['title'],
                    
'topic' => $row['ID_TOPIC'],
                    
'msg' => $row['ID_FIRST_MSG'],
                    
'poster' => $row['ID_MEMBER'],
                    
'start_date' => $row['startDate'],
                    
'end_date' => $row['endDate'],
                    
'maxAttendants' => $row['maxAttendants'],
                    
'daysSort' => $row['daysSort'],
                    
'daysConfirm' => $row['daysConfirm'],
                    
'daysClosed' => $row['daysClosed'],

                    
'is_last' => false,
                    
'allowed_groups' => explode(','$row['memberGroups']),
                    
'maxAttendants' => $row['maxAttendants'],
                    
'daysSort' => $row['daysSort'],
                    
'daysConfirm' => $row['daysConfirm'],
                    
'daysClosed' => $row['daysClosed'],

                );
        }
    }
    
mysql_free_result($result);

    
// If we're doing normal contextual data, go through and make things clear to the templates ;).
    
if ($use_permissions)
    {
        foreach (
$events as $mday => $array)
            
$events[$mday][count($array) - 1]['is_last'] = true;
    }

    return 
$events;
}

// Builds an array of holiday strings for a particular month.  Note... month PLUS 1 not just month.
function calendarHolidayArray($low_date$high_date)
{
    global 
$db_prefix;

    
// Get the lowest and highest dates for "all years".
    
if (substr($low_date04) != substr($high_date04))
        
$allyear_part "eventDate BETWEEN '0004" substr($low_date4) . "' AND '0004-12-31'
            OR eventDate BETWEEN '0004-01-01' AND '0004" 
substr($high_date4) . "'";
    else
        
$allyear_part "eventDate BETWEEN '0004" substr($low_date4) . "' AND '0004" substr($high_date4) . "'";

    
// Find some holidays... ;).
    
$result db_query("
        SELECT eventDate, YEAR(eventDate) AS year, title
        FROM 
{$db_prefix}calendar_holidays
        WHERE eventDate BETWEEN '
$low_date' AND '$high_date'
            OR 
$allyear_part"__FILE____LINE__);
    
$holidays = array();
    while (
$row mysql_fetch_assoc($result))
    {
        if (
substr($low_date04) != substr($high_date04))
            
$event_year substr($row['eventDate'], 5) < substr($high_date5) ? substr($high_date04) : substr($low_date04);
        else
            
$event_year substr($low_date04);

        
$holidays[$event_year substr($row['eventDate'], 4)][] = $row['title'];
    }
    
mysql_free_result($result);

    return 
$holidays;
}

// Consolidating the various INSERT statements into this function.
function calendarInsertEvent($id_board$id_topic$title$id_member$month$day$year$span$maxAttendants$daysSort$daysConfirm$daysClosed)

{
    global 
$db_prefix$modSettings$func;

    
// Add special chars to the title.
    
$title $func['htmlspecialchars']($titleENT_QUOTES);

    
// Add some sanity checking to the span.
    
$span = empty($span) || trim($span) == '' min((int) $modSettings['cal_maxspan'], (int) $span 1);

    
// Insert the event!
    
db_query("
        INSERT INTO 
{$db_prefix}calendar
            (ID_BOARD, ID_TOPIC, title, ID_MEMBER, startDate, endDate,
            maxAttendants, daysSort, daysConfirm, daysClosed)
        VALUES (
$id_board$id_topic, SUBSTRING('$title', 1, 48), $id_member, '" strftime('%Y-%m-%d'mktime(000$month$day$year)) . "', '" strftime('%Y-%m-%d'mktime(000$month$day$year) + $span 86400) . "', $maxAttendants$daysSort$daysConfirm$daysClosed)"__FILE____LINE__);

    
updateStats('calendar');
}

// Returns true if this user is allowed to link the topic in question.
function calendarCanLink()
{
    global 
$ID_MEMBER$db_prefix$user_info$topic$board;

    
// If you can't post, you can't link.
    
isAllowedTo('calendar_post');

    
// No board?  No topic?!?
    
if (empty($board))
        
fatal_lang_error('calendar38'false);
    if (empty(
$topic))
        
fatal_lang_error('calendar39'false);

    
// Administrator, Moderator, or owner.  Period.
    
if (!allowedTo('admin_forum') && !allowedTo('moderate_board'))
    {
        
// Not admin or a moderator of this board. You better be the owner - or else.
        
$result db_query("
            SELECT ID_MEMBER_STARTED
            FROM 
{$db_prefix}topics
            WHERE ID_TOPIC = 
$topic
            LIMIT 1"
__FILE____LINE__);
        if (
$row mysql_fetch_assoc($result))
        {
            
// Not the owner of the topic.
            
if ($row['ID_MEMBER_STARTED'] != $ID_MEMBER)
                
fatal_lang_error('calendar41');
        }
        
// Topic/Board doesn't exist.....
        
else
            
fatal_lang_error('calendar40');
        
mysql_free_result($result);
    }

    
// If you got this far, it's okay.
    
return true;
}

function 
CalendarPost()
{
    global 
$context$txt$db_prefix$user_info$sourcedir$scripturl;
    global 
$modSettings$topic$ID_MEMBER$func;

    
// Well - can they?
    
isAllowedTo('calendar_post');

    
// Cast this for safety...    if (isset($_REQUEST['maxAttendants']))
        
$_REQUEST['maxAttendants'] = (int) $_REQUEST['maxAttendants'];
       
    if (isset(
$_POST['maxAttendants']))
        
$_POST['maxAttendants'] = (int) $_POST['maxAttendants'];
       
    if (isset(
$_POST['daysConfirm']))
        
$_POST['daysConfirm'] = (int) $_POST['daysConfirm'];
       
    if (isset(
$_POST['daysSort']))
        
$_POST['daysSort'] = (int) $_POST['daysSort'];
       
    if (isset(
$_POST['daysClosed']))
        
$_POST['daysClosed'] = (int) $_POST['daysClosed'];


    if (isset(
$_REQUEST['eventid']))
        
$_REQUEST['eventid'] = (int) $_REQUEST['eventid'];

    
// Submitting?
    
if (isset($_POST['sc'], $_REQUEST['eventid']))
    {
        
checkSession();

        
// Validate the post...
        
if (!isset($_POST['link_to_board']))
        {
            require_once(
$sourcedir '/Subs-Post.php');
            
calendarValidatePost();
        }

        
// If you're not allowed to edit any events, you have to be the poster.
        
if ($_REQUEST['eventid'] > && !allowedTo('calendar_edit_any'))
        {
            
// Get the event's poster.
            
$request db_query("
                SELECT ID_MEMBER
                FROM 
{$db_prefix}calendar
                WHERE ID_EVENT = 
$_REQUEST[eventid]
                LIMIT 1"
__FILE____LINE__);
            list (
$poster) = mysql_fetch_row($request);
            
mysql_free_result($request);

            
// Finally, test if they can either edit ANY, or just their own...
            
if (!allowedTo('calendar_edit_any'))
                
isAllowedTo('calendar_edit_' . ($poster == $ID_MEMBER 'own' 'any'));
        }

        
// New - and directing?
        
if ($_REQUEST['eventid'] == -&& isset($_POST['link_to_board']))
        {
            
$_REQUEST['calendar'] = 1;
            require_once(
$sourcedir '/Post.php');
            return 
Post();
        }
        
// New...
        
elseif ($_REQUEST['eventid'] == -1)
            
calendarInsertEvent(00$_POST['evtitle'], $ID_MEMBER$_POST['month'], $_POST['day'], $_POST['year'], isset($_POST['span']) ? $_POST['span'] : null$_POST['maxAttendants'], $_POST['daysSort'], $_POST['daysConfirm'], $_POST['daysClosed']);

        
// Deleting...
        
elseif (isset($_REQUEST['deleteevent']))
            
db_query("
                DELETE FROM 
{$db_prefix}calendar
                WHERE ID_EVENT = 
$_REQUEST[eventid]
                LIMIT 1"
__FILE____LINE__);
        
// ... or just update it?
        
else
        {
            
// Calculate the eventDate depending on span.
            
$span = empty($modSettings['cal_allowspan']) || empty($_POST['span']) || $_POST['span'] == || empty($modSettings['cal_maxspan']) || $_POST['span'] > $modSettings['cal_maxspan'] ? min((int) $modSettings['cal_maxspan'], (int) $_POST['span'] - 1);
            
$start_time mktime(000, (int) $_REQUEST['month'], (int) $_REQUEST['day'], (int) $_REQUEST['year']);

            
db_query("
                UPDATE 
{$db_prefix}calendar
                SET
                    startDate = '" 
strftime('%Y-%m-%d'$start_time) . "',
                    endDate = '" 
strftime('%Y-%m-%d'$start_time $span 86400) . "',                    title = '" $func['htmlspecialchars']($_REQUEST['evtitle'], ENT_QUOTES) . "'
            , maxAttendants = '
$_REQUEST[maxAttendants]'
            , daysSort = '
$_REQUEST[daysSort]'
            , daysConfirm = '
$_REQUEST[daysConfirm]'
            , daysClosed = '
$_REQUEST[daysClosed]'

                WHERE ID_EVENT = 
$_REQUEST[eventid]
                LIMIT 1"
__FILE____LINE__);
        }

        
updateStats('calendar');

        
// No point hanging around here now...
        
redirectexit($scripturl '?action=calendar;month=' $_POST['month'] . ';year=' $_POST['year']);
    }

    
// If we are not enabled... we are not enabled.
    
if (empty($modSettings['cal_allow_unlinked']) && empty($_REQUEST['eventid']))
    {
        
$_REQUEST['calendar'] = 1;
        require_once(
$sourcedir '/Post.php');
        return 
Post();
    }

    
// New?
    
if (!isset($_REQUEST['eventid']))
    {
        
$today getdate();

        
$context['event'] = array(
            
'boards' => array(),
            
'board' => !empty($modSettings['cal_defaultboard']) ? $modSettings['cal_defaultboard'] : 0,
            
'new' => 1,
            
'eventid' => -1,
            
'year' => isset($_REQUEST['year']) ? $_REQUEST['year'] : $today['year'],
            
'month' => isset($_REQUEST['month']) ? $_REQUEST['month'] : $today['mon'],
            
'day' => isset($_REQUEST['day']) ? $_REQUEST['day'] : $today['mday'],
            
'title' => '',
            
'span' => 1,
            
'maxAttendants' => $_REQUEST['maxAttendants'],
            
'daysSort' => $_REQUEST['daysSort'],
            
'daysConfirm' => $_REQUEST['daysConfirm'],
            
'daysClosed' => $_REQUEST['daysClosed'],

        );

        
// Get list of boards that can be posted in.
        
$boards boardsAllowedTo('post_new');
        if (empty(
$boards))
            
fatal_lang_error('cannot_post_new');

        
$request db_query("
            SELECT c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.childLevel
            FROM 
{$db_prefix}boards AS b
                LEFT JOIN 
{$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
            WHERE 
$user_info[query_see_board]. (in_array(0$boards) ? '' "
                AND b.ID_BOARD IN (" 
implode(', '$boards) . ")"), __FILE____LINE__);
        while (
$row mysql_fetch_assoc($request))
            
$context['event']['boards'][] = array(
                
'id' => $row['ID_BOARD'],
                
'name' => $row['boardName'],
                
'childLevel' => $row['childLevel'],
                
'prefix' => str_repeat('&nbsp;'$row['childLevel'] * 3),
                
'cat' => array(
                    
'id' => $row['ID_CAT'],
                    
'name' => $row['catName']
                )
            );
        
mysql_free_result($request);
    }
    else
    {
        
$request db_query("
            SELECT
                c.ID_EVENT, c.ID_BOARD, c.ID_TOPIC, MONTH(c.startDate) AS month,
                DAYOFMONTH(c.startDate) AS day, YEAR(c.startDate) AS year,
                (TO_DAYS(c.endDate) - TO_DAYS(c.startDate)) AS span, c.ID_MEMBER, c.title,
                t.ID_FIRST_MSG, t.ID_MEMBER_STARTED
            , c.maxAttendants, c.daysSort, c.daysConfirm, c.daysClosed

            FROM 
{$db_prefix}calendar AS c
                LEFT JOIN 
{$db_prefix}topics AS t ON (t.ID_TOPIC = c.ID_TOPIC)
            WHERE c.ID_EVENT = 
$_REQUEST[eventid]"__FILE____LINE__);
        
// If nothing returned, we are in poo, poo.
        
if (mysql_num_rows($request) == 0)
            
fatal_lang_error(1);
        
$row mysql_fetch_assoc($request);
        
mysql_free_result($request);

        
// If it has a board, then they should be editing it within the topic.
        
if ($row['ID_TOPIC'] && $row['ID_FIRST_MSG'])
        {
            
// We load the board up, for a check on the board access rights...
            
$topic $row['ID_TOPIC'];
            
loadBoard();
        }

        
// Make sure the user is allowed to edit this event.
        
if ($row['ID_MEMBER'] != $ID_MEMBER)
            
isAllowedTo('calendar_edit_any');
        elseif (!
allowedTo('calendar_edit_any'))
            
isAllowedTo('calendar_edit_own');

        
$context['event'] = array(
            
'boards' => array(),
            
'board' => $row['ID_BOARD'],
            
'new' => 0,
            
'eventid' => $_REQUEST['eventid'],
            
'year' => $row['year'],
            
'month' => $row['month'],
            
'day' => $row['day'],
            
'title' => $row['title'],
            
'span' => $row['span'],
            
'maxAttendants' => $row['maxAttendants'],
            
'daysSort' => $row['daysSort'],
            
'daysConfirm' => $row['daysConfirm'],
            
'daysClosed' => $row['daysClosed'],

        );
    }

    
$context['event']['last_day'] = (int) strftime('%d'mktime(000$context['event']['month'] == 12 $context['event']['month'] + 10$context['event']['month'] == 12 $context['event']['year'] + $context['event']['year']));

    
// Template, sub template, etc.
    
loadTemplate('Calendar');
    
$context['sub_template'] = 'event_post';

    
$context['page_title'] = isset($_REQUEST['eventid']) ? $txt['calendar20'] : $txt['calendar23'];
    
$context['linktree'][] = array(
        
'name' => $context['page_title'],
    );
}

?>
Title: Re: Event Registration Mod
Post by: kripz on August 19, 2009, 07:15:06 PM
can you make this work for polls and normal topics?? not just events..

I got what i wanted.. i wanted to have a way of posting events while in my fourms not just in the calender so I went to MessageIndex.template.php and edited this code


Code: [Select]

// Create the button set...
    $normal_buttons = array(
       
       
        'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=calendar;sa=post;board=' . $context['current_board'] . '.0'),


Havent had a chance to look at it yet, does it just add a button?

Unknown column 'cal.maxAttendants' in 'field list'
File: /home2/hyperio1/public_html/Sources/Calendar.php
Line: 350

Any support is appreciated, thanks :)

Did you have any failures? What version of ERM/SMF? Mods?
Title: Re: Event Registration Mod
Post by: gameballa on August 20, 2009, 02:05:58 PM
yes it adds a button and it automaticly gets posted in that spacific board... and I can add a poll afterwards. I didnt really want to go to the calender to post an event so I am happy with that simple fix
Title: Re: Event Registration Mod
Post by: TW1ST3D on August 20, 2009, 09:20:00 PM
Something like this for 2.x would be sexy.

Congrats on your mod being approved !!!

Do we have to start begging to get this for 2.0 RC X.X?
Title: Re: Event Registration Mod
Post by: Ryanitto on August 21, 2009, 12:28:33 AM
I really like this mod so far -- suggestion however:

I've been noticing that when you post the event, it closes on the same day. It would be something minor, but fantastic if there was a set TIME (rather than date) it closes. For example, it would detect the time the event is occuring and close "1 hour before," and it could be selected from a drop-down menu possibly with choices of "1 hour, 2 hours, 3 hours, 4 hours, etc." before. I think it cutting off on midnight on the same day as the event is too restricting.

I also saw a comment on a possible reminder PM, or an automated EMAIL, to those who have signed up would be amazing.
Title: Re: Event Registration Mod
Post by: RustyBarnacle on August 21, 2009, 12:43:01 PM
Hehe, this is great and I really appreciate your work.

Since someone is already working on a version of this for SMF 2, my request would be the ability to add guests who aren't on the forum.  A +x button since they may bring more than one guest.
Title: Re: Event Registration Mod
Post by: thefley on August 21, 2009, 10:50:58 PM
Great mod!!!   how about a way to enable and dissable when we add something to the calendar, I don't want to use it everytime I add an event to the calendar.
Title: Re: Event Registration Mod
Post by: kripz on August 22, 2009, 02:52:59 AM
I really like this mod so far -- suggestion however:

I've been noticing that when you post the event, it closes on the same day. It would be something minor, but fantastic if there was a set TIME (rather than date) it closes. For example, it would detect the time the event is occuring and close "1 hour before," and it could be selected from a drop-down menu possibly with choices of "1 hour, 2 hours, 3 hours, 4 hours, etc." before. I think it cutting off on midnight on the same day as the event is too restricting.

I also saw a comment on a possible reminder PM, or an automated EMAIL, to those who have signed up would be amazing.

Automated emails are not possible in 1.x. If you have access to schedular/cron then it could be done.
Great mod!!!   how about a way to enable and dissable when we add something to the calendar, I don't want to use it everytime I add an event to the calendar.

Permissions and options are coming. I dont know how to do it yet.
Title: Re: Event Registration Mod
Post by: Ryanitto on August 22, 2009, 03:21:13 PM
I really like this mod so far -- suggestion however:

I've been noticing that when you post the event, it closes on the same day. It would be something minor, but fantastic if there was a set TIME (rather than date) it closes. For example, it would detect the time the event is occuring and close "1 hour before," and it could be selected from a drop-down menu possibly with choices of "1 hour, 2 hours, 3 hours, 4 hours, etc." before. I think it cutting off on midnight on the same day as the event is too restricting.

I also saw a comment on a possible reminder PM, or an automated EMAIL, to those who have signed up would be amazing.

Automated emails are not possible in 1.x. If you have access to schedular/cron then it could be done.


Then just ignore that part. :P
Title: Re: Event Registration Mod
Post by: Tony Reid on August 24, 2009, 04:51:18 AM
This is a very useful mod - however I think the time option is needed - otherwise members can not register for events on the same day.

If for instance, an event is at 20:00 - registration closes @ 00:00 - 20 hours earlier.

Title: Re: Event Registration Mod
Post by: clashbot on August 26, 2009, 01:05:56 PM
hey kripz, got a suggestion request from one of my users.

I run a gaming forum, where we have many alts, is there a way to allow someone to register multiple times with a field for listing alt names?

Also, is there a way of posting a link to a page that displays the terms and conditions so that someone can recheck them after registering for an event without unreg and re-reg (and possibly losing a slot)?

Other than that, great mod and no probs installing or using.
Title: Re: Event Registration Mod
Post by: SWR on August 27, 2009, 11:45:21 AM
Man.......This is the mod I've been waiting for, but something ain't right.  Won't allow registration.  No matter what I do it tells me "Registrations have closed".

I would also like to see members + (#)guests added to this mod.

Thanks for any help.
Title: Re: Event Registration Mod
Post by: Largo_npc on August 28, 2009, 04:00:23 AM
This is exactly what I've been looking for too but I'm using 2.0 rc1.2.
Any plans to support this version?
Title: Re: Event Registration Mod
Post by: kripz on August 28, 2009, 04:52:14 AM
No, apparently there's another mod being developed for 2.0?
Title: Re: Event Registration Mod
Post by: Tony Reid on August 28, 2009, 04:57:53 AM
No, apparently there's another mod being developed for 2.0?

There isn't one pending in the approval queue - where did you hear that?

Title: Re: Event Registration Mod
Post by: kripz on August 28, 2009, 06:45:23 AM
Swear i read it, someone was updating the advanced calendar mod, it was in that thread.
Title: Re: Event Registration Mod
Post by: Hoodie on August 29, 2009, 02:44:06 PM
2.0 support would be great..

The person updating the advanced calendar mod is creating a total calendar mod..  Your mod is specifically for creating a registration list..  IMO they are two separate mods..  There are many mods that are alike or provide similar functionality but have different feature sets or locations of installing..  So I would say develop the mod for those that just need this mod and not a full calendar update..

Some suggestions I have(some have been mentioned already):
PM/Email Reminder to confirm(I realize that this is 2.0 only support)
Custom fields for event starter to set
Ability to add number of guests coming (Could just be part of the custom fields)
Time of event
An option for the event starter to set up a paid/unpaid button that would be by each member
Title: Re: Event Registration Mod
Post by: SWR on August 29, 2009, 10:59:07 PM

Still like to know why all I get is "Registrations Have Closed"???
Title: Re: Event Registration Mod
Post by: kripz on August 30, 2009, 02:39:36 AM
Did you install the mod manually yourself?
Title: Re: Event Registration Mod
Post by: SWR on August 30, 2009, 12:46:19 PM
Did you install the mod manually yourself?

No, used the SMF installer.
Title: Re: Event Registration Mod
Post by: RustyBarnacle on August 31, 2009, 12:25:55 PM
Is the date right on your server?

I get that the day of events but I think thats intentional.  Up to the day of the event people can register.
Title: Re: Event Registration Mod
Post by: SWR on August 31, 2009, 05:57:20 PM
Date & time are correct in my forum.
Title: Re: Event Registration Mod
Post by: fgoc on September 04, 2009, 04:26:50 PM
Got this working great on my forum, except that when you click on any of the buttons to register, confirm, unregister etc, the action works fine, but you get redirected to a blank template page (the page displays everything except the actual forum)Everything installed fine automatically and all of the functionality is there, just this weird redirect issue when clicking the buttons.Getting a few errors coming up in the log too so if anyone could help I'd be eternally grateful!!82.37.8.110       8: Undefined index: dhhagFile: /home/xxxx/public_html/forum/Themes/default/TPortal.template.php (eval?)Line: 1   Today at 09:24:09 PM82.37.8.110    8: Undefined index: dhhagFile: /home/xxxx/public_html/forum/Themes/default/languages/TPortal.english.php (eval?)Line: 1?action=registerEvent;topic=0.0    Today at 09:24:09 PM82.37.8.110    8: Undefined index: dhhagFile: /home/xxxx/public_html/forum/Themes/default/TermsAndConditions.template.php (eval?)Line: 1?action=registerEvent;eventid=31;topic=.0    Today at 09:24:05 PM82.37.8.110    8: Undefined index: dhhagFile: /home/xxxx/public_html/forum/Themes/default/Display.template.php (eval?)Line: 1Running v 1.1.10 and TP v 0.9.8And loads and loads of other mods, but they all work fine :)


All sorted, checked the display.template file and there were a couple of mods missing (
$topic, $ID_MEMBER;) now all sorted thankfully

Great mod!! Needed something like this for ages now!!
Title: Re: Event Registration Mod
Post by: fgoc on September 04, 2009, 07:11:35 PM
just a quick minor issue I;ve found is that when you click "unconfirm" or "unregister" the popus box states that you may loose your place, this should be lose not loose

Can you tell me which file contains this pop up wording so I can correct it myself for now?

Cheers
Title: Re: Event Registration Mod
Post by: kripz on September 04, 2009, 07:13:54 PM
modifcations.english.php iirc
Title: Re: Event Registration Mod
Post by: fgoc on September 04, 2009, 07:41:18 PM
many thanks, now corrected :)
Title: Re: Event Registration Mod
Post by: TW1ST3D on September 04, 2009, 09:54:24 PM
so........................about that 2.0 rc 1.2....................
Title: Re: Event Registration Mod
Post by: kripz on September 05, 2009, 02:46:46 AM
Never. Feel free to convert my mod if its possible. I would say it is, there's nothing special in it.
Title: Re: Event Registration Mod
Post by: EvilGeneral on September 05, 2009, 04:01:06 PM
Fail for me...  >:(
Any ideas?
Title: Re: Event Registration Mod
Post by: ExSpirit on September 06, 2009, 09:05:54 AM
kripz, is there any ETA when this mod will be out of beta or when can we expect new release? On what features are you working at the moment?
Title: Re: Event Registration Mod
Post by: Kamran Iqbal on September 06, 2009, 06:58:31 PM
Hi Kripz,

Great mod.

Three suggestions:

1. Possibility to decline an event, in case one cannot/will not attend. This allow the event manager to get an overview of how many have noticed the event and have taken a conscious decision.

2. This is mentioned before, but start and end time is also very important.

3. Place of the event, not as important but very nice to have.

Kamran
Title: Re: Event Registration Mod
Post by: kripz on September 06, 2009, 07:12:07 PM
Im working on options. Once i learn how to do that ill add more features. This way i can make features optional.
Title: Re: Event Registration Mod
Post by: rcgearing on September 08, 2009, 03:22:46 PM
Hi, thank you so much for your work. This does not seem to work on my 1.1.10 forum. The buttons are blank. Even after I uninstalled all other MODs. I hope someone is kind enough to fix this because I can't wait to use this MOD. Thanks!
Title: Re: Event Registration Mod
Post by: ExSpirit on September 08, 2009, 06:09:50 PM
Hi, thank you so much for your work. This does not seem to work on my 1.1.10 forum. The buttons are blank. Even after I uninstalled all other MODs. I hope someone is kind enough to fix this because I can't wait to use this MOD. Thanks!
What language do you use on the forum? If you use other language as English you will have to open Modifications language file (Modifications.yourlanguage.php) and add those lines in:

Code: [Select]
$txt['register_mod_registered'] = 'Registered';
$txt['register_mod_unconfirmed'] = 'Unconfirmed';
$txt['register_mod_confirmed'] = 'Confirmed';
$txt['register_mod_registerButtonValue'] = 'Register';
$txt['register_mod_confirmButton'] = 'Confirm';
$txt['register_mod_unconfirmButton'] = 'Unconfirm';
$txt['register_mod_unregisterButton'] = 'Unregister';
$txt['register_mod_unconfirmWarning'] = 'If you unconfirm you may loose your spot!';
$txt['register_mod_areYouSure'] = 'Are you sure?';
$txt['register_mod_unregisterWarning'] = 'If you unregister you will loose your spot!';
$txt['register_mod_maxAttendants'] = 'Max Attendants';
$txt['register_mod_alreadyRegistered'] = 'You\'ve already registered for this event';
$txt['register_mod_haventRegistered'] = 'You havent registered for this event yet';
$txt['register_mod_nameHeader'] = 'Name';
$txt['register_mod_statusHeader'] = 'Status';
$txt['register_mod_closed'] = 'Registrations have closed';
$txt['register_mod_logintext'] = 'Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a> to sign up for this event.';
$txt['register_mod_pmReg'] = 'PM Registered';
$txt['register_mod_pmCon'] = 'PM Confirmed';
$txt['register_mod_pmUnCon'] = 'PM Unconfirmed';
$txt['register_mod_daysSort'] = 'Days before sorting registrations:';
$txt['register_mod_daysConfirm'] = 'Days before allowing confirmation:';
$txt['register_mod_daysClosed'] = 'Days before closing registrations:';
$txt['register_mod_iAgree'] = 'I Agree';
$txt['register_mod_iDisagree'] = 'I Disagree';
$txt['register_mod_termsAndConditions'] = 'Terms and Conditions:';
$txt['register_mod_termsAndConditionsHeader'] = 'Terms and Conditions';
Title: Re: Event Registration Mod
Post by: Grendor on September 09, 2009, 11:54:24 AM
Hello,

First let me say great mod thanks for making it.

I do have a suggestion or request about options for it if they can be done, i will list example below and a bit more detail.

                Column 1      |Column 2           |Column 3          | Column 4 | Column 5   |Column 6
               User name     | Character name |Character class    | Level       |Spec           |  Guild
Row 1:     Hotdog          | Texnok              |Wizard               |  80          | dps            | Zrebnif
Row 2:     Leggo            | clapnow             | Druid                |  79           | Healing      | Gregtog
ect:

Trying to use for guild and alliance setup for raids ect But i need a few of those other columns and for some of them would like a selectable option that I could add my own choices.  I would be willing to make a donation to you for adjusting your mod a bit to suit my needs. I am not sure how hard it is to make changes like i am suggesting  but please let me know if you could do them.

Thanks in advance
Grendor
Title: Re: Event Registration Mod
Post by: NCSurfer on September 16, 2009, 07:13:47 PM
Nice Mod, but is there a way to break down the event into time slots so people can register for an event every 30 minutes during a period of 12 hours on a day?

Thanks
Title: No confirm button
Post by: TeeJay on September 19, 2009, 03:12:26 AM
Help !
I only seem to get a register/unregister button but no confirm button, it doen't seem to matter how many days I set for the confirmation
All registrants show as unconfirmed ?

I'm sure it must be that I'm doing something wrong ?

Great mod, very usefull, looking forward to new options etc
Title: Re: Event Registration Mod
Post by: PaulThePhotographer on September 26, 2009, 08:40:56 AM

Still like to know why all I get is "Registrations Have Closed"???

I am getting the same thing.

If I set it to any day after today in Sept (it is now 9/26/09) it allows registration, but if I set it to any day AFTER September (Oct 1,2009) it says "Registration Closed" no matter what I put in the options fields.

Any Ideas??
Title: Re: Event Registration Mod
Post by: videoh1 on September 27, 2009, 07:57:29 PM
Would be great to see this mod for 2.0 RC1.2.
Title: Re: Event Registration Mod
Post by: clewis789 on October 05, 2009, 01:48:42 PM
i am the admin and i made a post with this and i cant see the register button and i cant see who has registered i only pot it up today and the event is on the 20th of november and most of the details are about 5 days before, how come i cant see it ?

is it only members that can ? if so why
Title: Re: Event Registration Mod
Post by: ExSpirit on October 05, 2009, 03:19:34 PM
kripz any news about new version? It's been more than a month since last update  ;)
Title: Re: Event Registration Mod
Post by: clewis789 on October 05, 2009, 03:48:19 PM
my mod does not work it does not have the sign up button, what is wrong ?
Title: Re: Event Registration Mod
Post by: kripz on October 05, 2009, 06:21:43 PM
Probably because you are using a theme.

Quote
kripz any news about new version? It's been more than a month since last update

Progress is slow, life is busy, death of a friend etc etc.

I've finished adding instant confirmations, optional T&C and now adding an option to make ERM optional for events.
Title: Re: Event Registration Mod
Post by: RustyBarnacle on October 06, 2009, 03:10:10 PM
Sorry to hear that kripz.
Title: Re: Event Registration Mod
Post by: cryptoknight on October 08, 2009, 02:43:05 PM
Hello,

First let me say great mod thanks for making it.

I do have a suggestion or request about options for it if they can be done, i will list example below and a bit more detail.

                Column 1      |Column 2           |Column 3          | Column 4 | Column 5   |Column 6
               User name     | Character name |Character class    | Level       |Spec           |  Guild
Row 1:     Hotdog          | Texnok              |Wizard               |  80          | dps            | Zrebnif
Row 2:     Leggo            | clapnow             | Druid                |  79           | Healing      | Gregtog
ect:

Trying to use for guild and alliance setup for raids ect But i need a few of those other columns and for some of them would like a selectable option that I could add my own choices.  I would be willing to make a donation to you for adjusting your mod a bit to suit my needs. I am not sure how hard it is to make changes like i am suggesting  but please let me know if you could do them.

Thanks in advance
Grendor

That's awesome I was going to ask for the same thing to allow people to register for RPGA Living Forgotten Realms Adventures.

I could come up with a database schema to support this if necessary.

Something like

event_fields(eventid int, eventfield_id int, eventfield varchar(100))

event_field_values(
eventid int,
eventfield_id int,
event_attendee int,
eventfield_value varchar(100))

Title: Re: Event Registration Mod
Post by: Beadan on October 14, 2009, 07:58:39 AM
I'm having a few problems with this mod.  It installs and passes all tests on my 1.1.10 version of the forum.
But once I go to the calendar and click "new event", it comes up with the following:

...
Number of days:1
No text : 50
No text : 7
No text : 4
No text : o
No Text : a comment box
Post in : bla bla bla

Where I typed "no text", there is nothing, blank.  I can figure the numbers from the readme, 50 being how many people etc.

Once posted I can go into the event and see the new added feature at the top.  But the buttons are all blank.  Checking the code the values taken to the front are blank.  When I click on the blank buttons a few things happen but in the end it doesn't completely work.

I've gone through the code and even tried to change parts where it says "You\'ve" to "You have" with no avail.  I have gone through it a few times but i can't pick up any obvious problems.

PS
I'm using version 0.17, and got the same with 0.16.  And my theme is the first basic, I have also tested with different themes with no avail.
I'm also using English.

Any ideas where I can start to look or maybe how to fix this?  I really want this to get working as this will be a major benefit to my forum!
Title: Re: Event Registration Mod
Post by: TonyL on October 15, 2009, 09:16:50 AM
Great mod - the only thing I'd need to be able to use it properly would be membergroup permissions added.   :D
Title: Re: Event Registration Mod
Post by: RustyBarnacle on October 15, 2009, 05:18:18 PM
I'm having a few problems with this mod.  It installs and passes all tests on my 1.1.10 version of the forum.
But once I go to the calendar and click "new event", it comes up with the following:

...
Number of days:1
No text : 50
No text : 7
No text : 4
No text : o
No Text : a comment box
Post in : bla bla bla

Where I typed "no text", there is nothing, blank.  I can figure the numbers from the readme, 50 being how many people etc.

Once posted I can go into the event and see the new added feature at the top.  But the buttons are all blank.  Checking the code the values taken to the front are blank.  When I click on the blank buttons a few things happen but in the end it doesn't completely work.

I've gone through the code and even tried to change parts where it says "You\'ve" to "You have" with no avail.  I have gone through it a few times but i can't pick up any obvious problems.

PS
I'm using version 0.17, and got the same with 0.16.  And my theme is the first basic, I have also tested with different themes with no avail.
I'm also using English.

Any ideas where I can start to look or maybe how to fix this?  I really want this to get working as this will be a major benefit to my forum!

Beadan, if you check your current theme's directory you will find language files.  Check the edits in this mod for the updates to the language files and add them to your theme.  Most themes use the default language files which is why this is something few people would experience.
Title: Re: Event Registration Mod
Post by: improv on October 16, 2009, 02:30:51 PM
Hey I'm having a fast question.
Is it possible to show a member what he signed up for?
Title: Re: Event Registration Mod
Post by: kripz on October 19, 2009, 06:45:20 AM
Personal things have come up/happened and i've lost interest in the mod.

I've attached what i've been working on, it has some code that is unfinished and useless, though it wont affect anything. I think the last things i added were optional T&C and some other feature.

If anyone wants to continue it, feel free.
Title: Re: Event Registration Mod
Post by: ExSpirit on October 19, 2009, 06:58:29 AM
Oh no, kripz you are giving up? Why? It's a great mod it would be a big waste to give up  :(
Title: Re: Event Registration Mod
Post by: VSharks on October 26, 2009, 08:12:48 AM
Thanks for the great mod :D

It seems you may not be supporting it anymore, could anyone/you point me in the direction of how I can implement this into another theme?

Also, sorry to hear about your loss. :(
Title: Re: Event Registration Mod
Post by: ricardo35 on October 27, 2009, 09:48:35 PM
What could be the problem of the ''REGISTER'' button not showing up?
All I am getting is the regular event title.

I can put in all information such as max attendees etc. in the event. But there is no register button or any other button showing up?
Title: Re: Event Registration Mod
Post by: RustyBarnacle on October 28, 2009, 12:36:39 PM
I would guess that your theme is using a custom file for showing threads.  I think that file is display.php but I'm not 100% positive.  Look at the files in your theme's directory and compare them to the list of files that are edited by this mod.  If you see custom file names in your theme's directory that match file names that are edited by this mod, you will need to manually edit them.
Title: Re: Event Registration Mod
Post by: VSharks on October 29, 2009, 02:19:07 AM
Thanks. I figured that was what I'd need to do but I was comparing with the SMF editor. Should maybe try with notepad. :)
Title: Re: Event Registration Mod
Post by: DJHicks on October 30, 2009, 10:31:25 AM
Hi there....

First thank you for a great mod after a few alterations to some code on my custom template ive got it working etc...

the only issue is my template uses .css and seems your mod is displaying correctly within the event post on the forums...

i get a white box appear with faded test and then a username etc

im trying to look through the code as much as possible but if anyone could point me in the right direction of some of the code i need to edit it'd be most appriciated!!!!!

thanks again!
Title: Re: Event Registration Mod
Post by: DJHicks on October 30, 2009, 11:47:20 AM
lol once again ive sorted it myself.... typical.. i try for hours with no success.. then i post for help after searching about... and then i actually do it lol!

so for all that may beed the same info... you need to modify the flowing section in the display.template.php of your theme

Code: [Select]
// timestamp in days
$time_left = (strtotime(date('d-m-Y', $event['start_timestamp'])) - strtotime(date('d-m-Y'))) / 86400;

if(count($event['registration']) > 0)
{
$count = 1;
$full = false;

echo '<br><div class="codeheader2">',$txt['register_mod_registered'],' (',$event['registered'],'):</div><br>
<div class="code2">';

echo '<table width="100%" bgcolor="#111111">
<tr><td width="65px">#</td>
<td width="100"><b>',$txt['register_mod_nameHeader'],'</b></td>
<td><b>',$txt['register_mod_statusHeader'],'</b></td>
</tr>';

foreach($event['registration'] as $reg)
{
if ($count > $event['maxAttendants'])
$prefix = "+".($count - $event['maxAttendants']);
else
$prefix = $count;

echo '<tr>
<td><b>',$prefix,'.</b></td>
<td><a href="',$scripturl,'?action=profile;u=',$reg['id'],'">',$reg['name'],'</a></td>
<td>',($reg['dateConfirmed'] == 0 ? $txt['register_mod_unconfirmed'] : $txt['register_mod_confirmed']),'</td>
</tr>';
$count++;
}
echo '</table>';
echo '</div><br />';

This code is also modified to to show the name of the person and then if confirmed or unconfirmed etc instead of the normal (un)confirmed then name etc

simply copy the original css tag and rename and edit the code

such as - copy codeheader css code... rename to codeheader2 and edit the colour etc

for the code above you need to add codeheader2 and code2 to the css file (again copy "code" css and rename to code2 and edit etc


hope this helps!!!
Title: Re: Event Registration Mod
Post by: Jakobwolff on October 30, 2009, 02:02:34 PM
it is possible to edit in this mod, so you only have to fill out

title
date
length of the event

and not all the other stuff
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 06, 2009, 03:23:12 AM
Hey Kripz, if your not looking to continue the development of this mod I would be interested in updating it to RC2. Just send me a PM and let me know.
Title: Re: Event Registration Mod
Post by: ExSpirit on November 06, 2009, 05:37:12 AM
Tyrsson™, kriptz wrote that someone else can take this project. He even made some new things and attached if they will be in any help for you:

Personal things have come up/happened and i've lost interest in the mod.

I've attached what i've been working on, it has some code that is unfinished and useless, though it wont affect anything. I think the last things i added were optional T&C and some other feature.

If anyone wants to continue it, feel free.

I hope you can continue this project since it's great and make all improvements which ware written in this topic.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 07, 2009, 02:20:04 AM
Gonna give it a shot ;)

I have a mod I am in the middle of writing now so I need to finish it up first. As soon as that is done I will get to work on this one as well.


P.S. Thanks Kripz.
Title: Re: Event Registration Mod
Post by: wilsy on November 22, 2009, 03:44:57 AM
Gonna give it a shot ;)

I have a mod I am in the middle of writing now so I need to finish it up first. As soon as that is done I will get to work on this one as well.


P.S. Thanks Kripz.

This is superb news, any timescales?
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 22, 2009, 10:33:20 AM
I cant see getting to it within the next couple weeks.
Title: Re: Event Registration Mod
Post by: IamCanadian on November 26, 2009, 09:57:41 PM
I love this mod, thanks so much for building this. I have 2 suggestions...

1. Is it possible to "not" have it attach to every event? (some events do not have attendees)
2. It gives the message "Registrations have closed" the day of the event. Is it possible to keep taking registrations the day of the event? (or am I not doing something right?)

Thank again for the mod - Brett
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 26, 2009, 11:56:56 PM
I didnt code it originally but I will be updating it for the 2.0 version. I have been busy recently and have not had a chance to look into it much. Hopefully will in the next week or so.
Title: Re: Event Registration Mod
Post by: IamCanadian on November 27, 2009, 08:28:58 AM
I didnt code it originally but I will be updating it for the 2.0 version. I have been busy recently and have not had a chance to look into it much. Hopefully will in the next week or so.
Thanks for taking the time to respond so quick. This mod will really be a life saver to community sites, I totally understand if you are busy. Thanks again - Brett
Title: Re: Event Registration Mod
Post by: doughboy99 on November 28, 2009, 12:46:16 PM
I'd just like to add my thanks for taking this on. It is something we've been looking for for a while to allow club members to register for both events and trips.
Title: Re: Event Registration Mod
Post by: perplexed on November 30, 2009, 09:45:25 AM
I didnt code it originally but I will be updating it for the 2.0 version. I have been busy recently and have not had a chance to look into it much. Hopefully will in the next week or so.

great news, look forward to using it on 2.0 RC2 :)

edit:

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2024)

Get support here.

SMF 2.0 is not and will not be supported. Dont bother asking.

maybe you could amend the first post since you are now working on it :)
Title: Re: Event Registration Mod
Post by: Uhura! on December 08, 2009, 11:43:12 AM
This mod is awesome, it works great!

As others have mentioned, I have no confirm button.

Can you assist me with this?

Thanks a million!
Title: Re: Event Registration Mod
Post by: go- on December 11, 2009, 10:06:11 AM
1. Is it possible to "not" have it attach to every event? (some events do not have attendees)

I would like to have a solution for that, too.

And thank you for the modification. It really saved my butt.
Title: Re: Event Registration Mod
Post by: ricardo35 on December 13, 2009, 06:08:05 AM
Wonders why the registration closes on the day of the event..

Is there any way to turn this off?

Thanks.
Title: Re: Event Registration Mod
Post by: go- on December 14, 2009, 04:59:25 AM
1. Is it possible to "not" have it attach to every event? (some events do not have attendees)

I would like to have a solution for that, too.

And thank you for the modification. It really saved my butt.

I figured out a temporary solution for this.

While posting an Event blank out every field for the registration. No 0s, nothing.
When you do that,, the posted event will likely to show "Registrations have closed".

If you're not satisfied with that, you have to edit the code, or wait for someone to put a professional solution, i fear.


sorry, my bad.
this didn't work out at all. (did an event on the very today, so....)
Title: Re: Event Registration Mod
Post by: Coyote Keith on December 16, 2009, 09:30:49 PM
I have one site basically built around this mod. Can't upgrade SMF until this mod is working with it. Being able to bypass the terms and conditions would be a nice option. Also, being able to disable the confirm feature would be nice.

And (Here's the big one)

Being able to set each event with a reminder date that would email each person signed up with a reminder would be awesome. Right now, I have to do this manually.

Thanks for continuing to work on this. Cheers!
Title: Re: Event Registration Mod
Post by: airric00 on December 25, 2009, 10:27:08 PM
There a possibility to get this working in 2.0 RC2 ?
Title: Re: Event Registration Mod
Post by: Joey Smith™ on December 25, 2009, 11:06:41 PM
Yes, I plan to upgrade it for 2.0 but that will not be until 2.0 goes final.
Title: Re: Event Registration Mod
Post by: Babalui on December 26, 2009, 07:38:57 AM
Hi,
I tried to install this mode on 1.1.10 via package manager, but i got message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Then I tried to edit all file manually, as per parse page, but I have following problems:
1 - what should I do with file database.php? Instructions says "This file should be able to execute standalone.", but how?
2 - I've created translation of Modifications.english.php into croatian, but croatian specific characters are not displayed (this may be not related to this mod?)
3 - posting looks like on attached pic, no comboboxes and such, look like not linked to calendar either
4 - I would like to remove the field "term and conditions"

Thanks in advance!
Title: Re: Event Registration Mod
Post by: airric00 on December 26, 2009, 04:45:21 PM
Yes, I plan to upgrade it for 2.0 but that will not be until 2.0 goes final.

Nice is there a way register for a notification when you go 2.0?
Title: Re: Event Registration Mod
Post by: pftq on December 28, 2009, 08:47:21 PM
Hi Tyrsson,

I made a few quick changes to this mod - maybe you can copy these changes over or take a look at the file attached.

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

They don't affect the mod functionality much, but it doesn't hurt to have the changes. ;D

Also a feature I'm thinking about is having auto-notification for the topic when you signup.  Maybe it can be added to the next version; if not, I might try it later when I have more time. :)
Title: Re: Event Registration Mod
Post by: Joey Smith™ on December 28, 2009, 09:20:23 PM
Will look into it when I start the updating. Busy trying to get servers up and running for the moment and most likely will not get to this until 2.0 goes final. Prevents having to do the coding multiple times ;)
Title: Re: Event Registration Mod
Post by: pftq on December 29, 2009, 03:32:19 AM
Added an extra Admin Register button that lets the admin add/delete other members from the event.  It's a bit ugly but it fills the gap for a feature I think should be there. :D
(what if people started signing up but you knew they weren't going??)

Also made the Admin buttons visible all the time, rather requiring the Admin to sign up (sometimes they're just managing the event and not attending).

I've attached the file on my server if anyone's interested in the version I'm using:
http://www.pftq.com/pq/creations/list/SMF_Event_Registration_0.17-Modified/
Title: Re: Event Registration Mod
Post by: Babalui on January 06, 2010, 12:49:59 AM
@ pftq:
It is working now with your latest version. Thanks for your effort.

And if may ask for few things:
- How do I make Terms and Conditions window smaller? Its way too big, none is going to use it up to its extent (see pic attached in my previous post, I've localized as "Uvjeti i obveze") (solved, see below)
- Event registration now shows up every time I want to post any Event. Any way to make Registration optional?

And a question: What is Admin Register page used for?

Thanks
Title: Re: Event Registration Mod
Post by: pftq on January 06, 2010, 03:01:30 AM
It is for the Admin to register other users or delete members from the list.
Title: Re: Event Registration Mod
Post by: Babalui on January 06, 2010, 09:13:20 AM
Only for those members that have registered for the event?

EDIT:
I've managed to shorten Terms&Conditions field by editing ./Themes/default/Post.template.php:
<textarea class="editor" name="termsAndCond" rows="12"
into:
<textarea class="editor" name="termsAndCond" rows="2"
Title: Re: Event Registration Mod
Post by: Babalui on January 06, 2010, 10:48:15 AM
And I have another problems with registering for event:

1. Some users want to enable last minute registration, up to few hours prior to the event. Currently it looks like you can register up to 24 h prior to the event.

2. Registration confirmation says: Check back in X.XX day(s) to confirm signup.
Users would prefer a sentence like: You should confirm your signup until HH:MM on DD:MM.
Or, at least to show hours instead of decimal values for day, like Check back in 2 days, 12 h and 45 min

3. Deadline text next to Register button, like You have 2 days, 12 h and 45 min to register or Register until HH:MM on DD:MM
Title: Re: Event Registration Mod
Post by: improv on January 06, 2010, 01:07:54 PM
Hail the guy who will create it for smf 2.0 :)
Title: Re: Event Registration Mod
Post by: pftq on January 06, 2010, 01:24:39 PM
And I have another problems with registering for event:

1. Some users want to enable last minute registration, up to few hours prior to the event. Currently it looks like you can register up to 24 h prior to the event.

2. Registration confirmation says: Check back in X.XX day(s) to confirm signup.
Users would prefer a sentence like: You should confirm your signup until HH:MM on DD:MM.
Or, at least to show hours instead of decimal values for day, like Check back in 2 days, 12 h and 45 min

3. Deadline text next to Register button, like You have 2 days, 12 h and 45 min to register or Register until HH:MM on DD:MM

The problem with setting hours is that you don't normally set them when making the event (at least on my version of SMF).  There's nothing to base it off of.
Title: Re: Event Registration Mod
Post by: dangermouse13 on January 07, 2010, 05:16:31 AM
Hail the guy who will create it for smf 2.0 :)

Agreed.
This be perfect for my forum...  :)
Title: Re: Event Registration Mod
Post by: Babalui on January 07, 2010, 12:00:53 PM
@ pftq:
Thanks, I forgot about that :)

What about:
1. Last minute registration?
2. Event registration now shows up every time I want to post any Event. Any way to make Registration optional?
3. Add option like "will not attend the event".
Title: Re: Event Registration Mod
Post by: KensonPlays on January 07, 2010, 01:50:44 PM
Hail the guy who will create it for smf 2.0 :)

Agreed.
This be perfect for my forum...  :)

The author clearly stated at OP that it would be only the version he created it for, and will not be made for 2.0
Title: Re: Event Registration Mod
Post by: Joey Smith™ on January 07, 2010, 05:35:49 PM
Hail the guy who will create it for smf 2.0 :)

Agreed.
This be perfect for my forum...  :)

The author clearly stated at OP that it would be only the version he created it for, and will not be made for 2.0
Which is why I picked up the development of the mod so that I can port it to 2.0. It helps to read the entire thread ;)
Title: Re: Event Registration Mod
Post by: improv on January 09, 2010, 09:30:16 AM
Yep, and  Tyrsson™ is the guy we hail ;P
Title: Re: Event Registration Mod
Post by: airric00 on January 09, 2010, 02:06:27 PM
Quote
Which is why I picked up the development of the mod so that I can port it to 2.0. It helps to read the entire thread ;)

We just moved our site over from meetup.com and this will be an awesome addition to my new 2.0 site!!   Thank you for doing this!!  Donation on the way when your done...    8) 
Title: Re: Event Registration Mod
Post by: Uhura! on January 09, 2010, 09:29:36 PM
This mod is awesome, it works great!

As others have mentioned, I have no confirm button.

Can you assist me with this?

Thanks a million!


Any advice on this?
Title: Re: Event Registration Mod
Post by: exteeyou on January 09, 2010, 11:18:53 PM
I am willing to donate money to see this available for RC2 before March....
Title: Re: Event Registration Mod
Post by: Joey Smith™ on January 10, 2010, 01:25:14 AM
Ok ok, guys and gals I will try to fit this in next week but I can't promise anything.
Title: Re: Event Registration Mod
Post by: improv on January 10, 2010, 04:28:01 PM
<3.
Title: Re: Event Registration Mod
Post by: pftq on January 11, 2010, 04:20:27 AM
This mod is awesome, it works great!

As others have mentioned, I have no confirm button.

Can you assist me with this?

Thanks a million!


Any advice on this?

There was a bug where you would never get the option to confirm.

I made a quick fix that I attached a few posts back:
http://www.simplemachines.org/community/index.php?topic=331107.msg2426792#msg2426792
Title: Re: Event Registration Mod
Post by: Uhura! on January 12, 2010, 01:46:46 PM
You're sure T?

Here's what was described in that post you linked to:

Quote
Added an extra Admin Register button that lets the admin add/delete other members from the event.  It's a bit ugly but it fills the gap for a feature I think should be there.
(what if people started signing up but you knew they weren't going??)

Also made the Admin buttons visible all the time, rather requiring the Admin to sign up (sometimes they're just managing the event and not attending).


nothing about any "confirm" button there...

Please advise.
Title: Re: Event Registration Mod
Post by: exteeyou on January 12, 2010, 06:18:09 PM
A great addon to this mod would be the ability to link the confirm button to a specific SMF Shop related item

Example: I run an airsoft forum, so when players register for an event, they register - but if you could say link the confirm button (specific to that post/event) to a specific item in SMF Shop, so the player is then directed to buy the product (for us, pay the attendance fee) - once done and redirected back from paypal to the site, they could be "officially" confirmed.

I hope I explained that right?
Title: Re: Event Registration Mod
Post by: ExSpirit on January 13, 2010, 08:24:13 AM
Tyrsson™, so will those features which ware wanted added to this mod or...? I hope you are not only making this mod for 2.0 now and letting us with 1.1.x with nothing...

For start:
- Admin/Mod being able to remove registered members
- Admin/Mod can ban specific members from being able to apply for event (for specific time maybe)
- Fields which member may need to fill (or for start at least 1 field - Comment... Only apply usually is useless)
Title: Re: Event Registration Mod
Post by: Babalui on January 13, 2010, 09:54:25 AM
I would like to have an option for last minute registration. Currently, you cannot register on the day of the event.
Title: Re: Event Registration Mod
Post by: exteeyou on January 13, 2010, 12:05:21 PM
Tyrsson™, so will those features which ware wanted added to this mod or...? I hope you are not only making this mod for 2.0 now and letting us with 1.1.x with nothing...

For start:
- Admin/Mod being able to remove registered members
- Admin/Mod can ban specific members from being able to apply for event (for specific time maybe)
- Fields which member may need to fill (or for start at least 1 field - Comment... Only apply usually is useless)

I like thie optional fields suggestion.  For our events we ask attendees prior to registering to post if they want lunch and what team they intend to play for...
Title: Re: Event Registration Mod
Post by: pythias on January 13, 2010, 07:04:14 PM
I was asked to see if I could find a mod for our site just like this......lol.   But updated to SMF 1.1.11 recently and it seems it isn't for this version.  Anyway around this issue?   Or does anyone know another option?  Any help would be great.
Title: Re: Event Registration Mod
Post by: pftq on January 13, 2010, 08:38:46 PM
You're sure T?

Here's what was described in that post you linked to:

Quote
Added an extra Admin Register button that lets the admin add/delete other members from the event.  It's a bit ugly but it fills the gap for a feature I think should be there.
(what if people started signing up but you knew they weren't going??)

Also made the Admin buttons visible all the time, rather requiring the Admin to sign up (sometimes they're just managing the event and not attending).


nothing about any "confirm" button there...

Please advise.

Yes, I made two updates to the attachment is why.

Here is the post before it:
http://www.simplemachines.org/community/index.php?topic=331107.msg2426384#msg2426384

@ExSpirit: I added an Admin Remove/Add members if you  need it here (http://www.simplemachines.org/community/index.php?topic=331107.msg2426792#msg2426792).

@pythias: The mod has a setting that restricts it to a certain version.  The edits I made here (http://www.simplemachines.org/community/index.php?topic=331107.msg2426792#msg2426792) remove the restriction if you want to try (back things up first as usual).
Title: Re: Event Registration Mod
Post by: pythias on January 14, 2010, 09:04:50 AM
K got it installed........but have an issue I guess.  Or maybe I am just a dummy...lol.  But I can create an event, but I do not see anywhere an option to confirm the event or such.  No new buttons or anything.  It ads the event but it just looks like a date added to the calendar.  I guess what I am asking is what do I do with it now....lol.  Must be something and I just don't understand.

I see someone just recently asked about this, but I downloaded the mod that you pointed........which is the one that says it fixed the issue.  So guessing its me doing something wrong.
Title: Re: Event Registration Mod
Post by: pftq on January 14, 2010, 09:47:16 AM
You probably have a custom theme and have to modify your theme files manually.  You'll notice if you switch to default theme, the buttons show up.
Title: Re: Event Registration Mod
Post by: pythias on January 14, 2010, 10:30:07 AM
It is true that I am using a theme.  Guess gotta figure out how to change that code.....lol.  I know this isn't your issue, but any idea of where I should look 1st in the code?  Or what I should change?  Not trying to take your time, sorry.
Title: Re: Event Registration Mod
Post by: Babalui on January 14, 2010, 11:29:14 AM
I had similiar issue, but in my case it was up to translation files.

I found some missing strings in admin_register_event.php and I've added them to /Themes/default/languages/Modifications.english.php and to the translation:

after:
Code: [Select]
$txt['register_mod_toConfirm'] = 'to confirm signup.';
insert:
Code: [Select]
$txt['admin_register_event'] = 'Admin Register Event';
$txt['select_event'] = 'Select event';
$txt['reset'] = 'Reset ';
$txt['go_to_topic'] = 'Go to Topic';
$txt['reselect_group'] = 'Reselect Membergroups';
$txt['select_group'] = 'Select membergroups to ';
$txt['select_member'] = 'Select members to ';
$txt['register'] = 'Register';
$txt['unregister'] = 'Unregister';
$txt['checkall'] = 'Check All';
$txt['registered_for'] = 'Members registered for ';

I've also differed (compared) English files with translated files with Language File Compare mod (http://custom.simplemachines.org/mods/index.php?mod=1071). Hope this helps :)

BTW, anyone figured out how to enable last minute registration? Pretty please   ;D
Title: Re: Event Registration Mod
Post by: pythias on January 14, 2010, 11:39:52 AM
It is that I am using a custom theme.  Switched to Default and it works fine......btw, super cool....lol   Just gotta teach myself a thing or two on how to do modifications so that it will work with mine.
Title: Re: Event Registration Mod
Post by: pftq on January 14, 2010, 01:14:30 PM
BTW, anyone figured out how to enable last minute registration? Pretty please   ;D

Do you mean registering the day of? I had to edit the mySQL table so that it allows negative numbers. :P Then I put -1 for days allowing registering.  If you know how to get to your SMF database, remove the unsigned attribute of the daysConfirm field in the calendar table.

@pythias: Here's how to install the mod manually to your theme:
http://docs.simplemachines.org/index.php?topic=402

I thought that was usually linked to from the mod download page but I guess they removed it.
Title: Re: Event Registration Mod
Post by: pythias on January 14, 2010, 05:35:35 PM
ok, hair in one hand here...... :o

The instructions read this....

1. Open the .xml file with any text editor and search for <file name="...">. You will find the filename in the "name" attribute.

2. Open up the specified file and look for a set of <operation>...</operation> tags. This indicates a single modification step within the specified file.

ok, the 1st one I come to is <file name="$sourcedir/Calendar.php">

I opened the calendar.php and there is no <operation> in that file.

Am I reading the instructions wrong?
Title: Re: Event Registration Mod
Post by: pythias on January 14, 2010, 06:25:04 PM
I am using the AA New Damage 1.1 as the current theme if that matters. 
Title: Re: Event Registration Mod
Post by: pythias on January 15, 2010, 11:44:54 AM
I think I got alittle better idea on what to do......wel maybe.   The instructions say modify any templates found after a <file name=  .    I have three then 1.Display.template.php     2.  Post.template.php    3.    Calendar.template.php     The other files that is says will be modified are Calendar.php, Modifications.english.php, index.php, Display.php & post.php.

So the 1st one is says modify is Display.template   which I began with.......but my problem started pretty much right away. I can where it is asking me to do the replacements........but the 2nd one is

      <operation>
         <search position="before"><![CDATA[</li>]]></search>
         <add><![CDATA[   

There are multiple </li> callings in the script.   I attempted to just switch out the first one with what it is saying, but it just crashed the script.     If I posted the script here, could someone show me what changes need to be made?

      
Title: Re: Event Registration Mod
Post by: pythias on January 15, 2010, 12:33:24 PM
K an update on what I have done...........I looked at the modified display.template.php from the source directory on my server and made those changes to the one in the theme directory.......no issues it seems.  But there is no post.templete.php nor calendar.templete.php in the theme directory to modify.  Nor is there any of the other ones........which I take is why the modification does not work with the theme?  I copied those files over from the default theme to the current theme, but doesn't seem to make a difference.....soooo

What should I do now.  Site runs fine, just cannot see the confim button when not in default theme.

Also tried the SMF Package Parser to try to help.   But same results, it is asking me to modify those files from the theme directory that did not exist.
Title: Re: Event Registration Mod
Post by: pythias on January 15, 2010, 02:58:17 PM
ok need help from anyone.    Actually talked to Kat on this.   I was told the only thing the needed to be changed would be with the files that came with this mod.   That is only one which is the display.temlate.php.   I made those two changes.  No difference.  He said that the Parse shows it not compatible with 1.1.11.  But of course, this mod is working with it, but just with the default theme.     Any help now would be great.   Sorry to be a pest.
Title: Re: Event Registration Mod
Post by: Hannilein on January 18, 2010, 07:51:27 AM
Quote
Event registration now shows up every time I want to post any Event. Any way to make Registration optional?

A quick and dirty solution for this:

In the Display.template.php file of your theme search for the following code-constructs (appears twice):

Code: [Select]
if(count($event['registration']) > 0)
{
  ...
}

and enclose these with the following condition:

Code: [Select]
if ($event['maxAttendants'] > 0)
{
  ...
}

It then should look like this example:

Code: [Select]
if ($event['maxAttendants'] > 0)
{
  if(count($event['registration']) > 0)
  {
    ...
  }
}

Please be sure to enclose the full code block for the condition (including the 'else'-Branch). Process both appearances of the condition separately, because of there is a "echo'</form>';" in between which must not be affected.

After inserted these modifications, you can disable the event registration by setting the option for "max attendants" of an event to zero.

Please be careful when modifying, you should have some experience with editing PHP-Code and have backups ready. Unfortunately I cannot post my code here, because it is modified too much at this place  ;)

Regards,
Dirk
Title: Re: Event Registration Mod
Post by: Uhura! on January 18, 2010, 10:52:30 AM
You're sure T?

Here's what was described in that post you linked to:

Quote
Added an extra Admin Register button that lets the admin add/delete other members from the event.  It's a bit ugly but it fills the gap for a feature I think should be there.
(what if people started signing up but you knew they weren't going??)

Also made the Admin buttons visible all the time, rather requiring the Admin to sign up (sometimes they're just managing the event and not attending).


nothing about any "confirm" button there...

Please advise.

Yes, I made two updates to the attachment is why.

Here is the post before it:
http://www.simplemachines.org/community/index.php?topic=331107.msg2426384#msg2426384



So I uninstall & then reinstall using that file?
Title: Re: Event Registration Mod
Post by: pftq on January 18, 2010, 10:57:33 AM
Yes.
Title: Re: Event Registration Mod
Post by: Babalui on January 20, 2010, 11:18:45 AM
BTW, anyone figured out how to enable last minute registration? Pretty please   ;D

Do you mean registering the day of? I had to edit the mySQL table so that it allows negative numbers. :P Then I put -1 for days allowing registering.  If you know how to get to your SMF database, remove the unsigned attribute of the daysConfirm field in the calendar table.

Yup, registering on the day of the event, up to the time of the event itself. Many users are organizing their gaming in late hours and they would like to apply during the afternoon of that day. As the events are held quite late in the evening, there is no harm if someone will be able to apply after it starts.

Any other way to enable this beside suggested database tinkering. I had many crashed due to tinkering lately, and I woul like to avoid that. Besides, I have very hard time explaining members how to use Event Registration. Only one of the is using it properly. If I add to all that "be sure to enter -1 in this field", there would be even more confusion.

Maybe to disable deadline totally?
Title: Re: Event Registration Mod
Post by: pftq on January 20, 2010, 11:43:55 AM
Go to display.template.php in your theme and find:

Code: [Select]
if($time_left > $event['daysClosed'])
The time_left is how many days are until the event.  The daysClosed is deadline (days before event).

Just change $event['daysClosed'] to -1

It would be the same as if you always had deadline as -1.

Final code:
Code: [Select]
if($time_left > -1)
Title: Re: Event Registration Mod
Post by: Babalui on January 21, 2010, 07:44:44 AM
Oho, pftq, it seems to be working!
I've created an event for today, and I have to wait until it expires to see what will happen.
I'll keep you posted. Thanks!
:)

EDIT:
Working fine, but members are able to Register for yesterdays event. Still, better to have such glitch then not to be able to register for todays event.
Thanks again!

EDIT 2:
Above line is repeated TWICE in that file (display.template.php). You have to edit each of them!
Title: Re: Event Registration Mod
Post by: Babalui on January 22, 2010, 11:20:46 AM
Firstly, let me thank for help and patience.

Then, I would like to ask if it is possible to add another option to this mod: "Cannot attend".
Something that will enable members to announce that they will not be present for the event.

Thanks
Title: Re: Event Registration Mod
Post by: improv on January 23, 2010, 07:37:38 AM
Hey Tyrsson™, some news or perhaps too busy? :)
Title: Re: Event Registration Mod
Post by: pftq on January 23, 2010, 12:08:44 PM
Oho, pftq, it seems to be working!
I've created an event for today, and I have to wait until it expires to see what will happen.
I'll keep you posted. Thanks!
:)

EDIT:
Working fine, but members are able to Register for yesterdays event. Still, better to have such glitch then not to be able to register for todays event.
Thanks again!

Hi, that can easily be fixed by adjusting the -1 to -0.5 or something.  Tweak it until you get the right balance.

I'm a bit tied up these next few weeks, so I'm hoping someone else can take on your request for the "Cannot Attend".  It's definitely do-able though - it'd just be like the Confirm button except sending a different message.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on January 23, 2010, 01:03:30 PM
To be perfectly honest I have it loaded in a local to start work on, I have been swamped as of late. I plan to rewrite alot of the mod in the next version as well.
Title: Re: Event Registration Mod
Post by: Babalui on January 23, 2010, 01:15:56 PM
Hi, that can easily be fixed by adjusting the -1 to -0.5 or something.  Tweak it until you get the right balance.

dumb me, didn't think it was possible to use dicimals here  ::)

Quote
I'm a bit tied up these next few weeks, so I'm hoping someone else can take on your request for the "Cannot Attend".  It's definitely do-able though - it'd just be like the Confirm button except sending a different message.

No hurry, just a thought.
You help was crucial for my community and we are grateful as it is   ;D
Title: Re: Event Registration Mod
Post by: adbrad on January 23, 2010, 03:31:15 PM
will this be updated to work with 2.0 rc2 thanks
Title: Re: Event Registration Mod
Post by: improv on January 23, 2010, 03:33:01 PM
To be perfectly honest I have it loaded in a local to start work on, I have been swamped as of late. I plan to rewrite alot of the mod in the next version as well.
Okay dude, thanks for letting us know :).

will this be updated to work with 2.0 rc2 thanks

Yes
Title: Re: Event Registration Mod
Post by: Uhura! on January 23, 2010, 08:29:04 PM
Thx pf  :D  !
Title: Re: Event Registration Mod
Post by: firstsrgt on January 31, 2010, 03:16:50 PM
I have just install this mod on 1.1.11 so i had to modify the file as when i try to apply the mod it say not compatible, after done everyhting i get this error
Quote
Unknown column 'cal.maxAttendants' in 'field list'
File: /home/hhhclan1/public_html/forum/Sources/Calendar.php
Line: 349

i look on that line and this what is
Quote
AND (cal.ID_BOARD = 0 OR $user_info[query_see_board])" : ''), __FILE__, __LINE__);
Title: Re: Event Registration Mod
Post by: Joey Smith™ on February 02, 2010, 05:13:18 PM
Access the db via phpmyadmin and check the calendar table to see if this column was added:

Quote
maxAttendants

This is just from reading the error message as I have not had time to check the structure. If this is the problem I can check the install file and write a query to add the column.
Title: Re: Event Registration Mod
Post by: firstsrgt on February 02, 2010, 10:10:13 PM
I check the calendar table and the column was not added  :'(
Title: Re: Event Registration Mod
Post by: firstsrgt on February 04, 2010, 09:45:44 PM
If this is the problem I can check the install file and write a query to add the column.

How can i get this solve?, would you mind helping me out on this issue?
Title: Re: Event Registration Mod
Post by: Rukario on February 05, 2010, 04:04:51 AM
I have just install this mod on 1.1.11 so i had to modify the file as when i try to apply the mod it say not compatible,
Hi, what did you have to modify to get this mod to install on 1.1.11?  (I guess I should have installed this mod before upgrading to 1.1.11.)
Title: Re: Event Registration Mod
Post by: firstsrgt on February 05, 2010, 09:48:11 PM
i modify the files that are list for the 1.1.10 on the mod page.
Title: Re: Event Registration Mod
Post by: rafalek on February 07, 2010, 02:54:06 AM
I am willing to donate money to see this available for RC2 before March....

Hello,

I think this mod is really great, big appreciation and congrats for your work. As Exteeyou, I'm also willing to donate money for this to be updated to 2.0 rc2, this functionality is vital for my forum :(
Title: Re: Event Registration Mod
Post by: improv on February 07, 2010, 08:30:02 AM
It is going to be updated for 2.0.
I didnt code it originally but I will be updating it for the 2.0 version. I have been busy recently and have not had a chance to look into it much. Hopefully will in the next week or so.
Title: Re: Event Registration Mod
Post by: Mick. on February 07, 2010, 11:00:57 AM
We loved this mod when we used 1.1.x series.  Now we use RC2.   We also would like this mod for RC2.

Title: Re: Event Registration Mod
Post by: firstsrgt on February 07, 2010, 04:46:13 PM
I be more than happy to Pay some money if i can get this mod to work on 1.1.11
Title: Re: Event Registration Mod
Post by: Coyote Keith on February 11, 2010, 10:54:11 AM
I'm running it on 1.1.11 with no issues.  :-\
Title: Re: Event Registration Mod
Post by: firstsrgt on February 11, 2010, 02:29:33 PM
I'm running it on 1.1.11 with no issues.  :-\

would you mind telling how you got it to work cause I havent been able, I modify all the file then put the database on the same location as the  index and the term&conditions in sources I'll glady donate some money if you can help me out.
Title: Re: Event Registration Mod
Post by: wilsy on February 14, 2010, 05:37:00 AM
We loved this mod when we used 1.1.x series.  Now we use RC2.   We also would like this mod for RC2.



Me too.

Do we have a timescale yet for this excellent mod to be upgraded?
Title: Re: Event Registration Mod
Post by: Joey Smith™ on February 18, 2010, 02:32:49 AM
I'm working on it guys. Just a lot to get done and am swamped.
Title: Re: Event Registration Mod
Post by: QueenTiye on February 18, 2010, 01:11:15 PM
Interesting... and I might need this!  A couple of questions:

1. Any way to make this work with a payment gateway (paypal etc)?
2. Any way to have more complex events (i.e., attending multi-day, only one of a multi day event, etc)?
3. Anybody have this installed where I can see it in action?

QT
Title: Re: Event Registration Mod
Post by: dbailey on February 24, 2010, 05:29:08 AM
Should this install on 1.1.11? As the package manager says it's not for this version.

Thanks
Title: Re: Event Registration Mod
Post by: dangermouse13 on February 24, 2010, 06:08:59 AM
if someone can get this working on my forums smf2 rc2.

be ever so happy, may even donate some money your way.
Title: Re: Event Registration Mod
Post by: H4N5 on February 24, 2010, 06:51:05 AM
is there a similar mod for RC2?
Title: Re: Event Registration Mod
Post by: improv on February 26, 2010, 10:48:29 AM
Please learn to read.
Title: Re: Event Registration Mod
Post by: kizer on March 02, 2010, 10:04:54 PM
As well I'm up for donating a few dollars to help get this one done. ;)
Title: Re: Event Registration Mod
Post by: NumLock on March 06, 2010, 12:19:30 PM
Just installed on 1.1.11 (though not supported), works fine. Just had two issues during installation using the 1.1.10-documentation:


Anyway, great mod, thanks a lot.
Title: Re: Event Registration Mod
Post by: firstsrgt on March 07, 2010, 02:28:06 PM
Just installed on 1.1.11 (though not supported), works fine. Just had two issues during installation using the 1.1.10-documentation:

  • The replacement in ./Themes/default/Post.template.php was not easy to find, because it's not unique. Found the correct place at line 405.
  • You have to launch the database.php from your webbrowser, the documentation didn't point out that clearly to me.

Anyway, great mod, thanks a lot.

Thank you very much for that advice it finally install on  1.1.11 the only problem that i get now is i get this error

Quote
Parse error: syntax error, unexpected $end in /home/hhhclan1/public_html/test/Sources/Display.php  on line 1511

i double check to see if i had made an error on while putting the codes from 1.1.10 but no any idea what may be causing this problem?
problem solve
Title: Re: Event Registration Mod
Post by: improv on March 11, 2010, 02:55:23 PM
How's the status Mr. Tyrsson™ ? :)
Title: Re: Event Registration Mod
Post by: exteeyou on March 11, 2010, 02:57:40 PM
Ive been waiting as well ...
Title: Re: Event Registration Mod
Post by: wilsy on March 15, 2010, 04:42:49 PM
It's probably a big job to make this available for RC2. A realistic timescale would be appreciated or maybe give up the mod to someone who can devote the time to it?
Title: Re: Event Registration Mod
Post by: Mick. on March 15, 2010, 06:01:59 PM
lol....i tried to start converting this and to tell you the truth, theres more than you think.

 the calendar.php is a killer. ..... I gave up.

It seems the entire thing changed.  Really,...converting this could take an entire day if not days.
Title: Re: Event Registration Mod
Post by: airric00 on March 30, 2010, 11:59:09 PM
It's probably a big job to make this available for RC2. A realistic timescale would be appreciated or maybe give up the mod to someone who can devote the time to it?

Yeah cannot wait to see this one for RC2 or newer..
Title: Re: Event Registration Mod
Post by: Hoodie on March 31, 2010, 01:55:11 AM
Really would like a feature to add how many guests are coming with the attendee as well..  Something like +1,2,3..
Title: Re: Event Registration Mod
Post by: forfun on April 05, 2010, 09:33:40 PM
Will this mod be compatible with smf 1.1.11?
I love to try out this mod.
Thanks for any info.
Title: Re: Event Registration Mod
Post by: Mick. on April 05, 2010, 10:05:55 PM
Will this mod be compatible with smf 1.1.11?
I love to try out this mod.
Thanks for any info.

Yes.  I used it when i ran 1.1.11 series.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on April 05, 2010, 10:16:00 PM
I still plan to update it, I am just in the middle of the development of a web app and 2.0 just went RC3.
Title: Re: Event Registration Mod
Post by: interzis on April 14, 2010, 02:30:55 AM
You intend to update it for v2.0? This is great!
Let me know your PayPal id for a little donation! ;)
Title: Re: Event Registration Mod
Post by: frymaster on April 20, 2010, 12:47:23 PM
thanks for the update :)
as this is free software your efforts are genuinely appreciated, even if this isn't (and shouldn't be) your #1 priority in life ;)
looking forward to this with baited breath... unfortunately I can't put my money where my mouth is, but I probably can once it's done, so +1 for the paypal id request :)

There's no content on this line, I'm just trying to make the smiley:sentence ratio less than one.
Title: Re: Event Registration Mod
Post by: kizer on April 21, 2010, 06:50:17 PM
As well I'm excited to hear this news.
Title: Re: Event Registration Mod
Post by: Coyote Keith on April 24, 2010, 01:28:17 PM
Will this mod be compatible with smf 1.1.11?
I love to try out this mod.
Thanks for any info.
I currently run it with 1.1.11 and have not had any issues.
Title: Re: Event Registration Mod
Post by: Tomkinss on May 06, 2010, 07:23:55 AM
Great mode, but I would remove the need to accept terms.

Does anyone have such a light version?
Title: Re: Event Registration Mod
Post by: pftq on May 09, 2010, 01:56:46 PM
If you go back a few pages, the version I uploaded here removes the Terms if it's blank:
http://www.simplemachines.org/community/index.php?topic=331107.msg2426792#msg2426792
Title: Specify number of people attending when registered for a calendar event?
Post by: chutieu on May 15, 2010, 02:39:36 PM
Pftq,

I used your modified mod and it worked perfectly on 1.1.11 .  If I may ask, is there a way when a member registers for an event, he/she can specify the number of people attending ?  and this number will display right next to the registered member for an event (i.e.  chutieu + 4)

Thank you,

Chutieu
Title: Re: Event Registration Mod
Post by: Sakae on May 15, 2010, 10:32:49 PM
You intend to update it for v2.0? This is great!
Let me know your PayPal id for a little donation! ;)

+ $1 here lol :)
Title: Re: Event Registration Mod
Post by: staffmdp on May 18, 2010, 04:51:42 AM
hi all!
I want to install this mod on my SMF 1.1.11.
How can I make this operation?
This mod is only for SMF 1.1.10?

Many thanks!!!
Title: Re: Event Registration Mod
Post by: adbrad on May 18, 2010, 05:43:03 AM
have you tried installing some 1.1.x mods work on all versions
Title: Re: Event Registration Mod
Post by: staffmdp on May 18, 2010, 05:48:44 AM
I have non tried.
I try to install anyway this mod?

thanks for replay!
Title: Re: Event Registration Mod
Post by: Sakae on May 21, 2010, 09:49:31 PM
I still plan to update it, I am just in the middle of the development of a web app and 2.0 just went RC3.

Any news about, Tyrsson?
Title: Re: Event Registration Mod
Post by: Tomkinss on May 27, 2010, 10:07:24 AM
My modified version:
(http://image.sosnito.sk/images/akcie.gif)

What do you say then?
Title: Re: Event Registration Mod
Post by: droganto on May 27, 2010, 11:40:42 AM
This will be a great mod for my site since all we do are events and meetups.
Title: Re: Event Registration Mod
Post by: Sakae on May 28, 2010, 11:14:09 AM
For everybody, I think!

I was looking my whole SMF-life and never got this, even when I used SMF 1... :(
Title: Re: Event Registration Mod
Post by: droganto on May 28, 2010, 09:02:26 PM
So I guess I wont have My mod :(
Title: Re: Event Registration Mod
Post by: Joey Smith™ on June 06, 2010, 11:01:45 AM
It will be ready by the time 2.0 goes final.
Title: Re: Event Registration Mod
Post by: droganto on June 06, 2010, 01:18:21 PM
It will be ready by the time 2.0 goes final.

Ok that's better news, at least there's hope  :D
Title: Re: Event Registration Mod
Post by: Sakae on June 06, 2010, 11:01:29 PM
It will be ready by the time 2.0 goes final.

NICE!!!!!!!!!!!!!!!!!!!!!!!!

Lol, sorry for SPAM, but this news is SPAM-AZING... Duh!
Title: Re: Event Registration Mod
Post by: exteeyou on June 07, 2010, 12:56:01 PM
It will be ready by the time 2.0 goes final.

So, never? :)
Title: Re: Event Registration Mod
Post by: digit on June 14, 2010, 01:08:52 PM
I was about to download and install this but it sounds like you are about to release a new version...   could you give me some idea of when you expect the next version to be released?

Thanks!
Title: Re: Event Registration Mod
Post by: improv on June 15, 2010, 05:59:41 PM
Like next year.
Lol.
It will be ready by the time 2.0 goes final.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on June 19, 2010, 06:59:20 AM
Since I am currently making some time to update mods etc and start a few new ones hopefully it will not be long. However, I am only going to update it to the 2.0 ONE TIME until final :)
Title: Re: Event Registration Mod
Post by: SilverWings on June 28, 2010, 09:24:12 AM
Tyrsson™, will you make any updates for this mod which ware requested or will it stay as it is?
Title: Re: Event Registration Mod
Post by: Joey Smith™ on June 30, 2010, 02:53:34 PM
I am in the process of updating it now. No idea when I will be finished with it as there are some new features being added as well.
Title: Re: Event Registration Mod
Post by: exteeyou on July 15, 2010, 12:31:46 PM
Okay, its been two weeks. Any progress?  ;D ;D ;D ;D
Title: Re: Event Registration Mod
Post by: Joey Smith™ on July 16, 2010, 04:56:36 AM
Okay, its been two weeks. Any progress?  ;D ;D ;D ;D
Its closer than it was ;)
Title: Re: Event Registration Mod
Post by: Crazyhowie on July 26, 2010, 03:44:50 PM
K an update on what I have done...........I looked at the modified display.template.php from the source directory on my server and made those changes to the one in the theme directory.......no issues it seems.  But there is no post.templete.php nor calendar.templete.php in the theme directory to modify.  Nor is there any of the other ones........which I take is why the modification does not work with the theme?  I copied those files over from the default theme to the current theme, but doesn't seem to make a difference.....soooo

What should I do now.  Site runs fine, just cannot see the confim button when not in default theme.

Also tried the SMF Package Parser to try to help.   But same results, it is asking me to modify those files from the theme directory that did not exist.

Quoting this because I'm having similar issues in regards to using this mod with custom themes and it doesn't appear that Pythias figured it out.

I got this mod to run on SMF 1.1.11 and it works perfectly on the default theme.  Are there any solid instructions or tips on getting this to work on a custom theme?  Other than modifying the "display.template.php" the same way you do for the default theme, I'm at a loss of what other changes should be made.  Do the custom themes use the functionality of the files: "post.template.php" and "calendar.template.php", which is why they don't have their own?

Just curious if anyone has had success or can point me in the right direction to get this working.  I've read through the entire thread a couple times, but it's possible I've missed something =/.

I've been looking for something like this for a long while and this is the first I've seen of this type of mod for SMF.  Anyways, great mod and I would love to get this up and running for my forums!  Thanks.
Title: Re: Event Registration Mod
Post by: KensonPlays on July 26, 2010, 05:42:57 PM
I am marking this to "notify"
Title: Problems installing package
Post by: rickwright67 on July 29, 2010, 12:10:08 PM
I downloaded the mod and used the package manager in admin to upload it. But it would not install. Said "The package you are trying to download or install is either corrupt or not compatible with this version of SMF". But this makes no sense since it clearly says it works with 1.1.10 and my SMF site runs 1.1.11 which others in this thread should be no problem.

Any ideas? or is there a better way to install this?

Title: Re: Event Registration Mod
Post by: pftq on July 29, 2010, 12:41:39 PM
I am using this just fine with 1.1.11 - maybe redownload incase it really is corrupt?

If you still have issues with it, you can try the modified one I am using:
http://www.simplemachines.org/community/index.php?topic=331107.msg2426792#msg2426792

It should be identical (as far as compatibility goes), but that is the exact file I have installed.
Title: Re: Event Registration Mod
Post by: rickwright67 on July 29, 2010, 02:32:02 PM
I am using this just fine with 1.1.11 - maybe redownload incase it really is corrupt?

Thanks for the reply. Tried that. Even unzipped then created my own new zip file. No joy. Kinda stumped.

Will try your modified version. Thanks!

Update: That appeared to do the trick. Not sure why. But grateful nonetheless.
Title: Re: Event Registration Mod
Post by: stefann on August 26, 2010, 09:23:58 PM
Great to see you taking over this mod for 2.0 Tyrsson™, it looks quite promising for a lot of sites.

Two hopefully minor feature requests for when 2.0 goes stable:
1. Could there be a method to notify people in specific usergroups about the creation of an event by PM or perhaps direct email?
2. Allow moderators/event creators to message people attached to an event, which perhaps could also be automated (with confirmation) if event details are changed?

I look forward to using this and perhaps contributing once I move to 2.0  :)
Title: Re: Event Registration Mod
Post by: improv on August 27, 2010, 01:39:19 PM
Some news on this ?
Title: Re: Event Registration Mod
Post by: exteeyou on September 02, 2010, 12:05:32 PM
News would be nice...

I hope it isn't the usualy info-less news either... :)
Title: Re: Event Registration Mod
Post by: Uhura! on September 05, 2010, 07:29:57 PM
SMF 1.1.11

One of my users reported trouble seeing the registration button (no one else is having the issue)

Some errors:

User   Today at 03:28:52 PM 
 IP redacted     aa7ae96a4ac1d399c66be4420796d3e9 
 http://ourmomspot.net/community/index.php?topic=5358.0 
8: Undefined index: register_mod_registerButtonValue
File: /home/ourmo0/public_html/community/Themes/default/languages/index.english-utf8.php (eval?)
Line: 236


User   Today at 03:27:09 PM 
IP redacted     aa7ae96a4ac1d399c66be4420796d3e9 
 http://ourmomspot.net/community/index.php?topic=5358.new;topicseen 
8: Undefined index: register_mod_registerButtonValue
File: /home/ourmo0/public_html/community/Themes/default/languages/index.english-utf8.php (eval?)
Line: 236



Any ideas as to what the issue is?
Title: Re: Event Registration Mod
Post by: Zirc on September 11, 2010, 02:46:45 PM
I didn't see if this was requested yet for SMF 2.0 but would it be possible to add Admin and Moderator approvals for registrations?

I plan on using this mod on my guild website for event signups and usually more people signup for events than there are spots available. So it would be nice to have signups show as (unapproved) next to the members name in the registration and when the Admin or Moderator looks at the event there would be a dropdown box next to each registrant with the options (approved) (waitlisted) and (denied).  Then depending on the action of the Admin/Moderator it would change from (unapproved) to whatever was selected in the dropdown box.

There are other things I would like but they are too specific for general use so I will muddle around with those once the final version is released.

Thanks
Title: Re: Event Registration Mod
Post by: Joey Smith™ on September 14, 2010, 12:50:22 PM
Working on admin/mod management within this to broaden what can and can not be done based on usergroup perms. Its one of the things that is slowing it down a little.
Title: Re: Event Registration Mod
Post by: Sakae on September 15, 2010, 12:07:04 AM
Don't mean to be boring, but... Any prospects, Tyrsson?

I'm really looking forward to use this mod!
Title: Re: Event Registration Mod
Post by: Kat9119 on September 24, 2010, 05:56:12 PM
Want to use this with 1.1.11, from other posts I see it works fine on the default theme. But of course I'm not using the default theme. And there are no parse directions for 1.1.11. So, any ideas on what I'd edit for my custom theme?
Title: Re: Event Registration Mod
Post by: Zirc on September 24, 2010, 06:26:12 PM
Want to use this with 1.1.11, from other posts I see it works fine on the default theme. But of course I'm not using the default theme. And there are no parse directions for 1.1.11. So, any ideas on what I'd edit for my custom theme?

I would parse the 1.1.10 and use those edits.  I'm pretty sure thats what I did on my 1.1.11 site.  Just make sure you backup before you do them incase something goes wrong but I have this mod working on my production site right now.
Title: Re: Event Registration Mod
Post by: Kat9119 on September 24, 2010, 07:51:11 PM
EDIT: Got it working! Thanks.  ;)
Title: Re: Event Registration Mod
Post by: Virgil83 on September 25, 2010, 04:39:26 AM
I have been using the Event Registration Mod on my forum for several months now, and am very happy with the functionality, bar two minor problems...

The first is one that has been mentioned in this thread time and time again, that being that on the day of the event, even when the "Days before closing registrations" field is set to zero, forum users are unable to register for the event on the day it is set to occur.  I noted an earlier reply about making modifications to the forum database to allow negative (eg -1) settings for this field, however even after these modifications, I am still getting registration closed messages when trying to create events and register for them on the day of the event.

The second was mentioned at the start of the thread, however I have been unable to locate any replies... and the issue I'm experiencing is that when an event is created in the following month (say, for example, I was to register an event for the 1st of October, with today being the 25th of September), I would not be able to register for the event, even though it is less than 7 days away... and for the rest of the month, right through until the day before the event, I still can't register for it.  It appears as though the mod doesn't recognize months? 

If anyone here, more skilled and able than I, could assist me, it would be greatly appreciated :)
Title: Re: Event Registration Mod
Post by: Kat9119 on September 28, 2010, 07:35:31 PM
The second was mentioned at the start of the thread, however I have been unable to locate any replies... and the issue I'm experiencing is that when an event is created in the following month (say, for example, I was to register an event for the 1st of October, with today being the 25th of September), I would not be able to register for the event, even though it is less than 7 days away... and for the rest of the month, right through until the day before the event, I still can't register for it.  It appears as though the mod doesn't recognize months? 

If anyone here, more skilled and able than I, could assist me, it would be greatly appreciated :)

I added some a couple days ago for events in october (all spread through the months). And set it to register 30 days beforehand and it worked
Title: Re: Event Registration Mod
Post by: wilsy on October 17, 2010, 12:35:30 PM
Any news re a release date?
Title: Re: Event Registration Mod
Post by: Neons on October 20, 2010, 07:46:38 AM
Any news re a release date?
I would love to know this too.
We're using SMF 2.0 RC3 and this mod would be a huge asset to the site!  :)
Title: Re: Event Registration Mod
Post by: Sakae on October 25, 2010, 07:55:56 PM
Any news re a release date?
I would love to know this too.
We're using SMF 2.0 RC3 and this mod would be a huge asset to the site!  :)

Quoting that! :)
Title: Re: Event Registration Mod
Post by: oridyne on October 31, 2010, 08:48:15 PM
Installed this today now getting these in the error log:
(Using pftq (http://www.simplemachines.org/community/index.php?action=profile;u=71242)'s modded version)

Code: [Select]

8: Undefined index: termsAndCond
File: /home/bigbangb/public_html/Forum/Sources/Calendar.php
Line: 643
 
8: Undefined index: daysClosed
File: /home/bigbangb/public_html/Forum/Sources/Calendar.php
Line: 642
 
8: Undefined index: daysConfirm
File: /home/bigbangb/public_html/Forum/Sources/Calendar.php
Line: 641
 
8: Undefined index: daysSort
File: /home/bigbangb/public_html/Forum/Sources/Calendar.php
Line: 640
 
8: Undefined index: maxAttendants
File: /home/bigbangb/public_html/Forum/Sources/Calendar.php
Line: 639 

No errors on install, running Enterprise theme
 
Mods installed:
Code: [Select]

1. RateThatTopic 1.0 
2. New In Topic View 1.1 
3. Who Voted What? 1.1.3 
4. Inline Hover Spoiler 1.2 
5. SMF 1.0.19 / 1.1.11 Update 1.0 
6. Witch Law 1.1 
7. Karma On Memberlist 1.0 
8. Spam Me Not Mod 1.02 
9. Custom Profile Field Mod 3.17 
10. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 
11. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 
12. Custom Board Sort 1.0.1 
13. Advanced Recent-Posts 1.1 
14. User Info In Place Of SMF Logo 1.0    {not Applied}
15. No More Ugly Avatar Scrollbars 1.0 
16. Googlebot & Spiders Mod 2.0.4 
17. Dice Roller BBcode 1.2 
18. SMF Links 2.1.2 
19. SMF 1.0.16 / 1.1.8 Update 1.0 
20. Welcome Topic Mod 1.1 
21. SMF Gallery Lite 1.9.4 
22. Users Online Today Mod 1.4.0 
23. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.0 
24. vMulticolor-Stars Mod 0.99 
25. Karma Description Mod 2.3.1 
26. Anti-Spam Verification Questions 1.02 
27. Spiders Don't Increase Topic Views 1.1 
28. Event Registration Mod 0.17m BETA 
29. SMF File Manager 2.1.2 
30. Alternate Latest Post Display 1.00   

Attached Calendar.php
 
Any help would be appreciated. Thanks.
 
 
Title: Re: Event Registration Mod
Post by: oridyne on November 01, 2010, 04:02:56 PM
Found a workaround for the errors in the log by adding 'isset' to the code in calendar.php
 
Code: [Select]
   'maxAttendants' => isset ($_REQUEST['maxAttendants']),
   'daysSort' => isset ($_REQUEST['daysSort']),
   'daysConfirm' => isset ($_REQUEST['daysConfirm']),
   'daysClosed' => isset ($_REQUEST['daysClosed']),
   'termsAndCond' => isset ($_REQUEST['termsAndCond']),

But the problem is when you click on a date in the calendar the values are not set to the defaults but blank. (Picture Attached).
 
 
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 06, 2010, 11:19:35 PM
I do not support versions of this mod not by the original author or released myself. As for a release date for a new version. RC4 public was just released which means good things, however I am not able to code much these days due to just getting out of the hospitol, will work on it as soon as I get back to being able.

-Tyrsson
Title: Re: Event Registration Mod
Post by: wilsy on November 14, 2010, 05:53:43 AM
Could this niot be handed over to someone who has time. No disrespect but this has dragged on ...and on ...and on ...and on ;)
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 14, 2010, 12:02:11 PM
It will be released when 2.0 goes final. You know, we have lives, not all of us are going to update major mods for every version as we simply do not have time for it. Do you realize I have 4 kids, I work, and volunteer here and write free mods. And just got out of the hospital after major surgery due to a ruptured appendix. I still have staples and a drain coming out of my side.

What else do you want?
Title: Re: Event Registration Mod
Post by: droganto on November 14, 2010, 03:30:48 PM
It will be released when 2.0 goes final. You know, we have lives, not all of us are going to update major mods for every version as we simply do not have time for it. Do you realize I have 4 kids, I work, and volunteer here and write free mods. And just got out of the hospital after major surgery due to a ruptured appendix. I still have staples and a drain coming out of my side.

What else do you want?

He only suggested that if you dont have the time which it seems you dont because of your response, if some one else that dont have those commitments like you do can continue the project. No need to get defensive. Like you said, we dont know what goes on the life you chosen, so if someone else can, will take a way that pressure out of your list. If the issue is money (since we know coding is hard to do and time consuming) put a price and Im sure if is worth it people will contribute.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 14, 2010, 05:46:08 PM
My point is this, and has been stated several times through out this thread. The mod will be updated, and the code is underway, and there has been progress made on it, however, if the update was finished tomorrow I would still not update and release the mod UNTIL 2.0 goes FINAL. If I did it any other way then I would be updating the mod again before long. Which for me doesn't make much sense, however, I can see how it makes plenty of sense to those that just want the mod, regardless of the time it takes or the work it takes to support a mod through multiple releases etc.

Just for the record I am not updating any of my mods until 2.0 goes final, its not just this one.

Now, as far as defensive, nah not really.

Its this simple, either wait on 2.0 final and the update of this mod, or code one like it yourself, I don't care which.
Title: Re: Event Registration Mod
Post by: wilsy on November 16, 2010, 03:29:51 AM

Its this simple, either wait on 2.0 final and the update of this mod, or code one like it yourself, I don't care which.

...or you can hand it over to someone who has time ;)
Title: Re: Event Registration Mod
Post by: Sakae on November 16, 2010, 10:23:42 AM
Kinda selfish, Tyrsson.

If you have a life (different than us, right? :P), you could allow other people with no life, no friends, no personal problems, no wife, no kids like us (remember always that you're the only one who have a life here) to code this for you.

But no, you don't want people coding for you. You don't code yourself. You don't people with no life get this MOD updated.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 16, 2010, 12:23:45 PM
I am not going to argue the point. The mod will be updated when 2.0 goes final. Period.

And to be honest this thread is really about to tick me off. How about I just remove the mod from the mod site so I do not have to deal with this at all? You know that is an option.

Title: Re: Event Registration Mod
Post by: xtu on November 16, 2010, 12:29:43 PM
I agree with the others.

I got tired of waiting so I installed Joomla, bridged it to SMF 2RC3/4 for user sync, and bought JEvents Gold, and a bought custom theme. (that's right, I would have paid you $150.00 alone, I even offered up money many MANY many months ago)

We all understand you're trying to make a name for your self, while having fun with it. But I think it's starting to work against you, considering how busy your life is and how many projects you have going on.

I intend to post a request for a Joomla calendar to SMF calendar sync/bridge (or Joomla to Google cal sync/bridge) on the forums here, or have it custom coded outside of the SMF community if it gets no attention. Using this method will stomp this mod out of the water, especially when you consider it would all be sync'd, and taking into consideration the amount of features JEvents gold has.

At this point, I doubt any work has even been done to the mod, since Tyrsson has made it clear many times he wont release this until 2.0 goes final and he does not want to update on each release.

I am not trying to be rude or ruin your reputation (you're doing that your self) but it's just how I and many others see things right now with regards to this mod)

As for threatening to remove the mod as a whole (see point above), isn't that a bit selfish of you? I guess it doesn't matter. In fact, I think if you remove it, you will enable someone else to take it over as you would have officially "abandoned it". Or we could all just group our donations together and request someone else make a similar mod with a different name :)
Title: Re: Event Registration Mod
Post by: Joey Smith™ on November 16, 2010, 12:57:18 PM
Quote
Or we could all just group our donations together and request someone else make a similar mod with a different name

To be honest I wish you all would, as it would make my life much easier. And as for the money you offered, I don't care about that. I do this because I enjoy it, but I do not enjoy dealing with those like you that think I owe you or anyone else here anything, because I don't. I do not owe you an updated mod or any code of any kind. That is what you all miss within this. It shouldn't matter if I ever update this mod or any other mod I have coded.

There is no thank you, there is never a "We understand".

Threads like this is what has made me consider leaving this team and never doing any type of free development again. Not that I am in it for any money, but because with that comes an obligation, a contract, which by the way I do NOT have with any of you. Can you not understand that??? I mean is it really that hard to understand I do not owe you or anyone else anything, not one single update do I owe you or anyone else.


Title: Re: Event Registration Mod
Post by: improv on November 16, 2010, 01:13:13 PM
I understand you.
Life is priority and consumes more energy then anything else.

I would like to see this mod in action, but I'm waiting patiently and just checking for the status.
Title: Re: Event Registration Mod
Post by: cwhchew on November 28, 2010, 07:57:15 AM
Quote
Or we could all just group our donations together and request someone else make a similar mod with a different name

To be honest I wish you all would, as it would make my life much easier. And as for the money you offered, I don't care about that. I do this because I enjoy it, but I do not enjoy dealing with those like you that think I owe you or anyone else here anything, because I don't. I do not owe you an updated mod or any code of any kind. That is what you all miss within this. It shouldn't matter if I ever update this mod or any other mod I have coded.

There is no thank you, there is never a "We understand".

Threads like this is what has made me consider leaving this team and never doing any type of free development again. Not that I am in it for any money, but because with that comes an obligation, a contract, which by the way I do NOT have with any of you. Can you not understand that??? I mean is it really that hard to understand I do not owe you or anyone else anything, not one single update do I owe you or anyone else.

Hi Tyrsson.

Thank you for your awesome mod.
I understand your pain of updating the mod to cater for version RC4. I have taken up the pain of updating your mod myself as i really needed to use it. i hope you do not mind.

For those of you who have been complaining about Tyrsson, I would say please be understanding as the code changes now are really really big. The code change between RC3 and RC4 is enough to break any mod.

Lastly, if you really need to use this mod, here is a link: dl.dropbox.com/u/1145024/ERM_0.17BETA.zip . It will only run on RC4.

All credits goes towards Tyrsson. All I did was spent a few days comparing SMF's framework changes. Do not ask him or me for support of this mod.
Title: Re: Event Registration Mod
Post by: interzis on December 01, 2010, 04:57:01 PM
hello and thank you

just installed on RC4 and seems to be working as expected.

thank you again, both of you, Tyrsson and cwhchew
Title: Re: Event Registration Mod
Post by: Sakae on December 01, 2010, 08:11:10 PM
hello and thank you

just installed on RC4 and seems to be working as expected.

thank you again, both of you, Tyrsson and cwhchew

Didn't worked on my fresh installed RC4. What's your SMF, interzis and cwhchew? May I take a look how it works?
Title: Re: Event Registration Mod
Post by: interzis on December 02, 2010, 01:20:18 AM
as I said before, SMF 2.0 RC4
you can take a look here: http://fiatissimo.com/board/discutii-diverse/test-event/

it seems to be working OK except the events specific fields which now appear on every normal posting page, even for regular members
Title: Re: Event Registration Mod
Post by: exteeyou on December 03, 2010, 10:35:02 PM
Excellent work! With respect to the above comment on the fields, all is well on RC4.

And for the record - the issue is not that he doesnt have time. According to what I have read and seen, he took over the mod and then said he will not touch it until SMF2 goes final (never). This was many months ago, so most of us are more/less just frustrated that someone took the rights to a mod they would not work on for an undisclosed period of time. ... Oh wait, I already said all of this many posts ago but he flipped out and didnt actually read the posts for what they meant.

Anyways -- Nice work mate, keep it up ;) Send me your paypal/email addy and I'll toss some donations at ya.
Title: Re: Event Registration Mod
Post by: RustyBarnacle on December 29, 2010, 04:28:16 PM
Wow, I've been away a while but some things don't seem to change.  Hostilities towards devs don't help things get done faster.  I understand, and quite happy to wait as I know when I tried to make a mod I had a heck of a time.  I had a V1 working model but never submitted it because I couldn't make heads or tails of how to get it into V2 and didn't want this kind of headache.
Title: Re: Event Registration Mod
Post by: pftq on January 01, 2011, 09:52:54 PM
Found a workaround for the errors in the log by adding 'isset' to the code in calendar.php
 
Code: [Select]
   'maxAttendants' => isset ($_REQUEST['maxAttendants']),
   'daysSort' => isset ($_REQUEST['daysSort']),
   'daysConfirm' => isset ($_REQUEST['daysConfirm']),
   'daysClosed' => isset ($_REQUEST['daysClosed']),
   'termsAndCond' => isset ($_REQUEST['termsAndCond']),

But the problem is when you click on a date in the calendar the values are not set to the defaults but blank. (Picture Attached).
 
 

Sorry I missed this post a while back.  If you're still running into the issue, it's from not copying the mod changes to your custom theme (the mod will only apply changes to the default theme during install).  In particular, look at the parts of the code that modify the *.template.php files in modification.xml

This problem would be caused by nothing being sent from the Post.template.php file (when you first create an event), so you want to copy over the block of code that sends hidden input fields.

Hope that helps.

I'm also considering to allow Guests to sign up and input their own names - or allow members to sign up additional people... will have to play around with it when I get a chance.

@Tyrsson: I hope you don't mind these changes made to the mod? A bit late but it just occurred to me I was making a lot more changes than I expected sorry... and just now seeing all the recent comments about rights to the mod - I don't particularly want to get caught up in it. -_-
Title: Re: Event Registration Mod
Post by: oridyne on January 04, 2011, 03:03:12 PM
Sorry I missed this post a while back.  If you're still running into the issue, it's from not copying the mod changes to your custom theme (the mod will only apply changes to the default theme during install).  In particular, look at the parts of the code that modify the *.template.php files in modification.xml

This problem would be caused by nothing being sent from the Post.template.php file (when you first create an event), so you want to copy over the block of code that sends hidden input fields.

Hope that helps.

I'm also considering to allow Guests to sign up and input their own names - or allow members to sign up additional people... will have to play around with it when I get a chance.

Thanks for the reply, my theme does not replace those files, also I get the same result using the default theme.
 
I like the sound of allowing members to sign up additional people that would be very useful for my forum. Thanks for everyones efforts on this mod it is very much appreciated, I can only imagine the hard work that must go into coding these things.
 
Cheers.
 
Title: Re: Event Registration Mod
Post by: cwhchew on January 04, 2011, 04:03:42 PM
no reply from mod author, so i'm assuming its okay for me to put up modified versions of this awesome mod.

This is the latest version modified by me as of 05-11-2011.

dl.dropbox.com/u/1145024/ERM_0.17BETA_05012011.zip

I have fixed the fields issue.. It looks fine now. I realise i'm not able to modify an event.. anyone facing the same problem ?
Title: Re: Event Registration Mod
Post by: pftq on January 04, 2011, 04:30:33 PM
Ugh, I just realized I've had the wrong version uploaded all this time (it was an earlier test version that didn't work).  Anyone who downloaded between September and December 2010 should redownload - please contact me for the link (renamed it this time so I don't get them mixed up)

Sincere apologies on my part and thanks to oridyne for bringing that to my attention.
Title: Re: Event Registration Mod
Post by: cwhchew on January 04, 2011, 09:35:47 PM
oooh, thanks alot for your work.

i didn't notice your post earlier=, otherwise i would have saved a ton of effort converting the plugin.

damn...q
Title: Re: Event Registration Mod
Post by: impreza on January 05, 2011, 06:20:27 AM
an interesting addition, perhaps it will test
Title: Re: Event Registration Mod
Post by: pftq on January 06, 2011, 01:42:30 AM
I'm also considering to allow Guests to sign up and input their own names - or allow members to sign up additional people... will have to play around with it when I get a chance.

I've finished adding both of these features, along with a number other useful changes.  They come as options you can set on the post-event page (which is also cleaned up now so that there's less scrolling).

Please contact me via PM or email if you want a link (not allowed to post it here).
Not sure what the procedure is for helping update the existing 1.x version on the SMF site, but let me know if you think the changes are worthwhile.

The total changes in addition to .17beta are:
Quote
- 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)
Title: Re: Event Registration Mod
Post by: oridyne on January 06, 2011, 01:42:48 PM
Thanks for the updates looking really good and I really like the additional signup option, nicely implemented.
 
One small question, I tried adding Terms & Conditions and when I click on either "I Agree" it does not appear to register me for the event. If I clear the T&Cs it works, am I doing something wrong?
 
Sorry...
 
 
Title: Re: Event Registration Mod
Post by: pftq on January 06, 2011, 01:55:46 PM
No need to apologize - it's great you're finding these bugs.  :)

I don't use the T&C often, so I accidentally forgot to update that part of the code.  It's fixed now though - if you just replace the TermsAndConditions.template.php in Themes/default/ with the updated one, it will work fine.  You don't have to reinstall the entire package.

If you want to know what changed specifically, I just added the following to the form in that theme file:
Code: [Select]
<input type="hidden" value="',$_POST['Registrant'],'" name="Registrant" />
<input type="hidden" name="ID_SIGNUP" value="',$ID_MEMBER,'" />

Thanks!
Title: Re: Event Registration Mod
Post by: oridyne on January 09, 2011, 10:49:00 AM
Hi,
 
Another quick one if I try to edit someone else's event or an event I have linked to someone else's post I do not see the event registration fields?
 
Not a problem just curious if this is meant to happen, I'm doing something wrong or a feature I may wish to ask very nicely for :)
 
 
Title: Re: Event Registration Mod
Post by: pftq on January 10, 2011, 12:51:39 AM
Hi, I noticed that as well.  However I tried uninstalling the mod and still got the same problem, so I was guessing it's something that normally occurs in SMF.  I think it might be a permissions thing, but I'm not sure.

I'll see if I can pinpoint what settings cause this, and if not, maybe make the mod bypass it. :)
Title: Re: Event Registration Mod
Post by: pftq on January 10, 2011, 06:50:43 AM
Found the problem.  It's actually an SMF bug but I updated the mod to patch it anyways (link (http://www.pftq.com/pq/creations/list/SMF_Event_Registration_0.17-Modified/)).  It won't hurt when SMF does fix this because it's just a missing set of parenthesis:

Post.php
Code: [Select]
// If the user doesn't have permission to edit the post in this topic, redirect them.
if ($ID_MEMBER_POSTER != $ID_MEMBER || !allowedTo('modify_own') && !allowedTo('modify_any'))
Should be
Code: [Select]
// If the user doesn't have permission to edit the post in this topic, redirect them.
if (($ID_MEMBER_POSTER != $ID_MEMBER || !allowedTo('modify_own')) && !allowedTo('modify_any'))


I also updated the mod so that setting maxAttendants to 0 will disable registration for that particular event.  Sometimes the events posted don't always need signups.
Title: Re: Event Registration Mod
Post by: oridyne on January 10, 2011, 01:56:01 PM
Thanks ptfq you are a Star..
 
The new disable option is a bonus, I will be getting a lot of use out of this mod so thanks again for all your efforts.
 
 
Title: Re: Event Registration Mod
Post by: mikeymx5 on January 21, 2011, 01:55:43 PM
Two questions:

1) did you fix the extra fields on every post page problem?

2) Uninstalled the older version and tried to install a newer one and got several install errors.. is this not uninstalling cleanly?

Thanks
Title: Re: Event Registration Mod
Post by: TheListener on January 21, 2011, 02:07:00 PM
Mikeymx5

What were the errors you encountered?
Title: Re: Event Registration Mod
Post by: mikeymx5 on January 21, 2011, 05:30:51 PM
Well it seems that the 1.7 Modified version is for 1.0 - Got confused

So that was all my install errors.

Went back to 1.73 but I have a problem in the create new event screen, its all mis-formatted. Looks fine at the edit view of a already created event. I suspect a code issue.

What is the latest file Im so confused with the 1 version and the rc4 version sharing the same support forum... I would rename it to something obvious.
Title: Re: Event Registration Mod
Post by: oridyne on January 21, 2011, 07:30:59 PM
What is the latest file Im so confused with the 1 version and the rc4 version sharing the same support forum... I would rename it to something obvious.

The current versions of this mod are for SMF 1.x series there currently is no SMF 2.0 as stated here
 
My point is this, and has been stated several times through out this thread. The mod will be updated, and the code is underway, and there has been progress made on it, however, if the update was finished tomorrow I would still not update and release the mod UNTIL 2.0 goes FINAL.
Title: Re: Event Registration Mod
Post by: mikeymx5 on January 21, 2011, 11:05:52 PM
no reply from mod author, so i'm assuming its okay for me to put up modified versions of this awesome mod.

This is the latest version modified by me as of 05-11-2011.

dl.dropbox.com/u/1145024/ERM_0.17BETA_05012011.zip

I have fixed the fields issue.. It looks fine now. I realised i'm not able to modify an event.. anyone facing the same problem ?

You need to change the installer to fix the format of the new even post from the calendar (here is the corrected code) this is only for cwhchew's modified version.
Code: [Select]
<file name="$themedir/Calendar.template.php">
<operation>
<search position="after"><![CDATA[ // If this is a new event let the user specify which board they want the linked post to be put into.
]]></search>
<add><![CDATA[
echo '
<li>
',$txt['register_mod_maxAttendants'],'
<input type="text" name="maxAttendants" maxlength="5" size="30" value="'.$context['event']['maxAttendants'].'" />

</li>

<li>
',$txt['register_mod_daysConfirm'],'
<input type="text" name="daysConfirm" maxlength="5" size="30" value="'.$context['event']['daysConfirm'].'" />
</li>

<li>
',$txt['register_mod_daysSort'],'
<input type="text" name="daysSort" maxlength="5" size="30" value="'.$context['event']['daysSort'].'" />
</li>

<li>
',$txt['register_mod_daysClosed'],'
<input type="text" name="daysClosed" maxlength="5" size="30" value="'.$context['event']['daysClosed'].'" />
</li>

<li>
',$txt['register_mod_termsAndConditions'],'
<textarea class="editor" name="termsAndCond" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++,'">', $context['event']['termsAndCond'], '</textarea>
</li>';
]]></add>
</operation>
</file>

Let also make edit events look the same as create so add this in place of the add on line 396 in the install
Code: [Select]
<file name="$themedir/Post.template.php">
<operation>
<search position="after"><![CDATA[ // If this is a new event let the user specify which board they want the linked post to be put into.]]></search>
<add><![CDATA[
echo '
<li>
',$txt['register_mod_maxAttendants'],'
<input type="text" name="maxAttendants" maxlength="5" size="30" value="'.$context['event']['maxAttendants'].'" />

</li>

<li>
',$txt['register_mod_daysConfirm'],'
<input type="text" name="daysConfirm" maxlength="5" size="30" value="'.$context['event']['daysConfirm'].'" />
</li>

<li>
',$txt['register_mod_daysSort'],'
<input type="text" name="daysSort" maxlength="5" size="30" value="'.$context['event']['daysSort'].'" />
</li>

<li>
',$txt['register_mod_daysClosed'],'
<input type="text" name="daysClosed" maxlength="5" size="30" value="'.$context['event']['daysClosed'].'" />
</li>

<li>
',$txt['register_mod_termsAndConditions'],'
<textarea class="editor" name="termsAndCond" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++,'">', $context['event']['termsAndCond'], '</textarea>
</li>';
]]></add>
</operation>
</file>
also you may want to add this to the language file to make it clearer just person pref on that one.
Code: [Select]
$txt['register_mod_maxAttendants'] = 'Max Attendants (use 0 for no event registration):';
Title: Re: Event Registration Mod
Post by: hcfwesker on January 22, 2011, 12:11:18 AM
no reply from mod author, so i'm assuming its okay for me to put up modified versions of this awesome mod.

This is the latest version modified by me as of 05-11-2011.

dl.dropbox.com/u/1145024/ERM_0.17BETA_05012011.zip

I have fixed the fields issue.. It looks fine now. I realise i'm not able to modify an event.. anyone facing the same problem ?

A very huge thank you.  And to all who made this possible for RC4 :)

We're upgrading soon, and this was one mod we were sad to not see available from smf2.  So happy to see it's been updated. 
Title: Re: Event Registration Mod
Post by: mikeymx5 on January 22, 2011, 12:21:53 AM
Unfortunately I still cant get it to work, just to make it look correct :(

The fields are empty and will not change... I'll keep looking to see I can find the error.
Title: Re: Event Registration Mod
Post by: Joey Smith™ on January 22, 2011, 11:24:03 AM
Actually not its not ok to be adding links to modified versions. I was asked by a user to look over some code they were working on, however, I have not had the time to do this yet in full. Remove the links to unofficial versions of the mod, it has not been tested and approved by the team so it should not be linked from this thread.

Thank you.
Title: Re: Event Registration Mod
Post by: TheListener on January 22, 2011, 09:39:52 PM
Tyrsson has every right to request removal of unofficial updates.

He has stated before that the mod will not be updated until 2.0 goes final.

Tyrrson is not the only mod author to make this statement either.

Title: Re: Event Registration Mod
Post by: Joey Smith™ on January 23, 2011, 11:52:41 AM
Its not simply a matter of not wanting the code posted, as that really doesnt bother me too much. The problem is that unless the code is approved by the cust team in the mod review process there is a chance that it could allow for security problems etc. Another issue is that mod authors many times have regular jobs which means we do not have time to update a mod every time a smf version changes. It takes more than that. What most do not know but I will state here is that I am working on making a framework which I can use for most of my mods, this one included, which means many things may change within the code.So it makes sense that I would want to change things as few times as possible between point A and point B, and that is not even thinking about smf versions.
Title: Re: Event Registration Mod
Post by: RustyBarnacle on January 23, 2011, 12:49:17 PM
I'm just glad you're working on this as this is a great mod for those of us that plan events. I'll wait for the tested version.
Title: Re: Event Registration Mod
Post by: hcfwesker on January 23, 2011, 03:59:12 PM
I didn't realize the issue.  I have removed the RC4 update, since it was causing too many undefined errors in the Error Log.

Tyrsson™, look forward to your updates.  If I could please request, when you do get time for the SMF2 Final update, can you please make a RC4 update as well.   
Title: Re: Event Registration Mod
Post by: pftq on March 26, 2011, 10:27:58 PM
Went ahead and removed the link to the changes I made as per your request Tyrsson.

What would be the process of getting the changes to you to incorporate into the mod? The changes I made are for the 1.x version, so it shouldn't conflict too much with the version you have planned for 2.x hopefully.  I sent you a link to the file I have a couple months back - if you  have a newer version of the 1.x mod than currently on the SMF site, I wouldn't mind helping you merge the changes.

I'm not sure what the policy here is on adding changes to existing mods, but I doubt you'd want to look over every change in code.  Is there a way to get it approved by the SMF team before it gets to you or would you have to do that?


On the other hand, I have gone ahead and also added signup comments to my copy of the mod for those who were requesting it earlier - basically useful for if you want information on the event signups such as dietary restrictions, etc.  I guess contact me via PM for the file since I cannot link it here.
Title: Re: Event Registration Mod
Post by: mikeymx5 on June 16, 2011, 02:19:22 PM
2.0 is finally out...  can we start bugging you again for a 2.0 update O:)

Title: Re: Event Registration Mod
Post by: Joey Smith™ on June 18, 2011, 10:35:40 AM
Start buggin pftq as he is going to be taking over the mod, just have to find time to change it over.
Title: Re: Event Registration Mod
Post by: pftq on June 18, 2011, 11:27:25 PM
Well, I'd prefer not to get "bugged" but I will see what work's been done so far on the 2.0 version before suggesting any time frames for when it'll be released.  At the moment, I'm still just getting acquainted with SMF2 itself, so I don't want to make any false promises.

Meanwhile, the SMF 1.1.x version has been updated to include the changes I previously posted:
Quote
- 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)

I'm going to try to be a bit more open to suggestions and feedback.  If anyone also makes changes to the mod (as with a few pages back), feel free PM me the code changes and I can see if they fit into the existing mod.
Title: Re: Event Registration Mod
Post by: hcfwesker on June 19, 2011, 01:39:33 AM
Good Luck with the 2.0 conversion, pftq!  We've been waiting patiently for this MOD since we lost it when we upgraded from 1.1X to 2.0 , so can't wait, and glad to hear it's under construction.
Title: Re: Event Registration Mod
Post by: Dramber on June 22, 2011, 02:39:14 PM
Good Luck with the 2.0 conversion, pftq!  We've been waiting patiently for this MOD since we lost it when we upgraded from 1.1X to 2.0 , so can't wait, and glad to hear it's under construction.
+1
Title: Re: Event Registration Mod
Post by: Prids on July 02, 2011, 06:43:51 AM
Terrific Mod.  Thank you.   :)
Sorry if I'm being really dim, but having allowed 'comments' on user registration I can't find where to view them. It's not showing in the 'Linked Event' panel in the thread, nor the * edit in the calendar, nor anywhere I can find in the Admin tabs. (SMF 1.1.14)
Thanx.

[edit later after eureka moment] It doesn't show in the database either[/bonehead edit]
Title: Re: Event Registration Mod
Post by: InsomniacP on July 16, 2011, 01:34:29 PM
Hey there pftq, if you could get this ported over to SMF2 RC3 I would be more than happy to make a substantial donation as this would be a perfect MOD for my forum... I used to have the RSVP MOD on my Vbulletin site and really want this for my SMF site...

I appreciate all the work you are doing on this look forward to your results..

Paul
Title: Re: Event Registration Mod
Post by: hcfwesker on July 16, 2011, 03:40:36 PM
Hey there pftq, if you could get this ported over to SMF2 RC3 I would be more than happy to make a substantial donation

Same here, though 2.0 would be even sexier.  :)  Donations are not a problem for me either, even though I've paid others to do interesting mods, only to abandon the project later on :( 

Look forward to any updates you have, pftq
Title: Re: Event Registration Mod
Post by: MaxLiao on July 20, 2011, 01:10:24 PM
Yep, I have to say that I can't wait for this mod.  It's the last one I need to make my site complete.  :)

Thanks for all of your hard work and efforts.
Title: Re: Event Registration Mod
Post by: leratg on July 30, 2011, 05:49:34 AM
Any news or people ready to do the job?
I can make too a donation for this mod on SMF 2.0.
Title: Re: Event Registration Mod
Post by: DasVON on July 31, 2011, 09:42:32 PM
Good Luck with the 2.0 conversion, pftq!  We've been waiting patiently for this MOD since we lost it when we upgraded from 1.1X to 2.0 , so can't wait, and glad to hear it's under construction.

+1
Title: Re: Event Registration Mod
Post by: hcfwesker on July 31, 2011, 09:49:27 PM
A month with no updates or word on this ... I getting worried :(
Title: Re: Event Registration Mod
Post by: Alpay on August 04, 2011, 04:52:54 AM
2.0 is finally out...  can we start bugging you again for a 2.0 update O:)



yes please..
Title: Re: Event Registration Mod
Post by: Ceryon on August 25, 2011, 03:43:09 AM
what is the current timeframe on this please?
Title: Re: Event Registration Mod
Post by: dpiffy on October 20, 2011, 08:37:59 PM
What is the update. I would greatly appreciate a mod like this too. It would be PERFECT for what I am needing and could use.

I understand many volunteer their time for these mods, some may offer to done money, I wouldn't mind doing that either... either way, it has been 4 months since the last communication from the mod creator/editor and about 2 months since the last communication from anybody, period.

Just curious. I stumbled upon this mod accidently and thought it was perfect. Please update us for 2.0!!
Title: Re: Event Registration Mod
Post by: mikeymx5 on November 18, 2011, 02:36:20 PM
Bump Bug... any updates?
Title: Re: Event Registration Mod
Post by: pftq on December 04, 2011, 04:41:14 PM
Hey everyone, good news!

It's now available on SMF2, thanks to floomp for porting it.  All the features (original and added) from SMF1's version are intact so it should be a complete port of the mod. Let us know if anything seems to be off or broken though.

Download is on the same page, just grab the smf2 version:
http://custom.simplemachines.org/mods/index.php?mod=2024

Sorry for the long wait - again, credit here goes entirely to floomp. :)
Title: Re: Event Registration Mod
Post by: hcfwesker on December 04, 2011, 04:47:02 PM
i LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOVe YOU, pftq & floomp!!!!!!!

Fixing to add this and test it out.
Title: Re: Event Registration Mod
Post by: Zirc on December 04, 2011, 05:12:39 PM
I have been waiting soooo long for an update to this mod for 2.0.. thank you so much.  This officially makes my day.

Actually I have discovered an issue.. see attached screenshot.  The Link Post to Event check box, Post In selection box and Post button all show above the box where they should be.  It does this on my Default Curve theme as well.

Title: Re: Event Registration Mod
Post by: hcfwesker on December 04, 2011, 05:38:15 PM
So far, with testing, I come across one minor errors.

When members add a comment when registering, it doesn't add the comment, but just adds their username where the comment should be.  ( See attachment #1)   I don't plan on using comments, but just wanted to test it out since it was something new.


Other than that, it seems to work great. 

Title: Re: Event Registration Mod
Post by: pftq on December 04, 2011, 06:12:00 PM
Ah, the Admin Register doesn't show comments.  The slash means:
(name they signed up as)/(name of member that signed up)

This is so you can tell if one member signed multiple people up.  Sorry for the confusion.

When members add a comment when registering, it doesn't add the comment, but just adds their username where the comment should be.  ( See attachment #1)   I don't plan on using comments, but just wanted to test it out since it was something new.


@Zirc: I'm not getting that here.  This is a screenshot of my core theme.  Can you double-check or maybe another person confirm?
Title: Re: Event Registration Mod
Post by: Zirc on December 04, 2011, 07:17:51 PM
pftq,

My issue would be in the post.template.php right?  It does the same thing in all my themes, see attached for core theme.  It's almost as though there is an extra <div> in there somewhere.
Title: Re: Event Registration Mod
Post by: hcfwesker on December 04, 2011, 08:12:06 PM
Either post.template.php for each theme.  Or perhaps Sources/Posts.php , since it seems to be affecting all themes at once.
Title: Re: Event Registration Mod
Post by: Zirc on December 04, 2011, 09:55:21 PM
Okay I seemed to have solved my problem and you can tell me if it's needed code because it seems to be working fine without it.

If I go to calendar.template.php and take out the following code added by the mod everything goes back to where it should be on the first post page and the event registration stuff is on the second page after you hit the submit button.
Code: [Select]
// Event Registration mod
// pftq: Don't show, too cluttery
echo '<tr>
<td class="smalltext">
<input type="hidden" name="maxAttendants" maxlength="5" size="30" value="'.$context['event']['maxAttendants'].'" />
<input type="hidden" name="daysConfirm" maxlength="5" size="30" value="'.$context['event']['daysConfirm'].'" />
<input type="hidden" name="daysSort" maxlength="5" size="30" value="'.$context['event']['daysSort'].'" />
<input type="hidden" name="daysClosed" maxlength="5" size="30" value="'.$context['event']['daysClosed'].'" />
<input type="hidden" name="termsAndCond" value="', $context['event']['termsAndCond'], '" />
<input type="hidden" name="multipleSignups" value="', $context['event']['multipleSignups'],'" />
<input type="hidden" name="allowGuests" value="', $context['event']['allowGuests'], '" />
<input type="hidden" name="allowComments" value="', $context['event']['allowComments'], '" />
</td>
</tr>';

Title: Re: Event Registration Mod
Post by: pftq on December 05, 2011, 12:19:59 AM
Those are all hidden fields, so I'm not sure why they would affect the placement of the other options.

What those hidden fields do is prevent you from getting error logs when someone views that Post Event Page.  Technically it does work fine without the code - it's just now you have a lot of undefined variable notices.

Can you attach the template file before removing the code? I just want to take a look - thanks.
Title: Re: Event Registration Mod
Post by: Zirc on December 05, 2011, 01:27:01 AM
Yeah there were a few of them in the error log lol.  Actually though the one I saw the most was 'undefined - dateregistered'  Anyway attached is my calendar.template.php  looks like the mod put the code in at line 196
Title: Re: Event Registration Mod
Post by: pftq on December 05, 2011, 02:30:41 AM
Oh I see.  SMF2 isn't using tables anymore so those tr/td tags shouldn't be there.  I'll make sure to take those out in the next version.

You should be able to either just remove the tr/td tags or replace them w/ li tags like in the other parts of the file.
Title: Re: Event Registration Mod
Post by: Zirc on December 05, 2011, 03:56:27 AM
That did the trick.. I eliminated the <tr></tr> tags and replaced the <td class="smalltext></td> with <li class="smalltext"></li> and it works perfectly now.
Title: Re: Event Registration Mod
Post by: DasVON on December 05, 2011, 09:23:27 AM
Installed it but it does not work ..

Does it need to be activated somewhere ? I am a nooB at th!s  ???
Title: Re: Event Registration Mod
Post by: pftq on December 05, 2011, 09:46:16 AM
Make sure you enable events linked to posts under Calendar Settings.
Title: Re: Event Registration Mod
Post by: OCJ on December 05, 2011, 02:30:05 PM
Like it  :) Glad it was updated for smf2 - we are an outdoor club with quite a lot of events on the calendar - useful!

The explanation (English) for the options isn't so easy to understand though - for users ...even me  :-\
If you have the documentation handy yes but in real life its tough on ordinary users of different nationalities. Clearer explanation would be good, even if longer.



2 things that look like bugs:

I cant see any comments that are made - none on the message or near registration area. Nothing by mail or PM?

The posting time does not follow that set in Admin with the server offset - way off.
Completely different times posting through the calendar and posting directly to the board.

Otherwise Im looking forward to members using it - thanks for the hard work.
Andy

And error log
"Undefined offset" - index.template.
Looks like its will add up to thousands in a matter of an hour or so.

Title: Re: Event Registration Mod
Post by: OneActivist on December 05, 2011, 05:34:42 PM
  Trying to install in SMF 2.01 today. I am getting the following warnings before installing:

*    1.    Execute Modification    ./Sources/Calendar.php    Test successful
      1.    Add After    ./Sources/Calendar.php    Test successful
      2.    Add After    ./Sources/Calendar.php    Test successful
      3.    Add After    ./Sources/Calendar.php    Test successful
      4.    Add After    ./Sources/Calendar.php    Test successful
*    2.    Execute Modification    ./Sources/Display.php    Test failed
      1.    Add After    ./Sources/Display.php    Test failed
      2.    Add After    ./Sources/Display.php    Test successful
      3.    Add After    ./Sources/Display.php    Test successful
      4.    Add After    ./Sources/Display.php    Test successful
*    3.    Execute Modification    ./Sources/Post.php    Test successful
*    4.    Execute Modification    ./Sources/Subs-Calendar.php    Test successful
*    5.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Replace    ./Themes/default/Display.template.php    Test successful
      2.    Add After    ./Themes/default/Display.template.php    Test successful
      3.    Add After    ./Themes/default/Display.template.php    Test failed
*    6.    Execute Modification    ./Themes/default/Post.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/Calendar.template.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    9.    Execute Modification    ./index.php    Test successful
   10.    Execute Code    database.php    
   11.    Extract File    ./Sources/RegisterEvent.php    
   12.    Extract File    ./Themes/default/TermsAndConditions.template.php    
   13.    Extract File    ./Sources/admin_register_event.php    
   14.    Extract File    ./Themes/default/admin_register_event.template.php    

  Here is what mods are installed:
1.    Event Registration Mod    0.175 BETA    [ Install Mod ] [ List Files ] [ Delete ]
2.    Event Reminder Mod for SMF2    2.02    [ Uninstall ] [ List Files ] [ Delete ]
3.    Simple Audio Video Embedder    2.0.4    [ Uninstall ] [ List Files ] [ Delete ]
4.    FB & Twitter Sharer Mod 2.0    2.0    [ List Files ] [ Delete ]

6.    Facebook_Like v.2.0    2.0    [ List Files ] [ Delete ]
7.    RSS Feed Poster    3.0.2a    [ Uninstall ] [ List Files ] [ Delete ]
8.    Simple Audio Video Embedder    2.0.3    [ Upgrade ] [ List Files ] [ Delete ]
9.    Social Media Icons    0.7.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    ENotify    2.0.1    [ Uninstall ] [ List Files ] [ Delete ]

12.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]

    Thanks!
Title: Re: Event Registration Mod
Post by: hcfwesker on December 05, 2011, 06:21:05 PM
I cant see any comments that are made - none on the message or near registration area. Nothing by mail or PM?

This was already mentioned just a few posts earlier in the topic.  http://www.simplemachines.org/community/index.php?topic=331107.msg3222365#msg3222365

*    2.    Execute Modification    ./Sources/Display.php    Test failed
  3.    Add After    ./Themes/default/Display.template.php    Test failed

You need to parse the mod on the mod page, and make the manual edits to those files.
Title: Re: Event Registration Mod
Post by: pftq on December 05, 2011, 08:33:16 PM
Will check on the time offset - possibly overlooked that.

As mentioned before, the Admin Register page doesn't show comments.  The comments should be right under the name of the registrant on the topic view.

For the options, can you give me a few examples? Are these the ones regular members see when signing up or the ones on the Edit Event page?

Quote
And error log
"Undefined offset" - index.template.
Do you have the line number on that as well? Thanks

So far planning to update on next version:
- Change table tags to list (tr/td to li)
- Fix time offset
- Clearer options

Anything else just let me know - I'm going to try to release all these changes together in the next version.
Title: Re: Event Registration Mod
Post by: hcfwesker on December 05, 2011, 09:40:30 PM
For the options, can you give me a few examples? Are these the ones regular members see when signing up or the ones on the Edit Event page?

I'm guessing he means when event creators make events.  Cause I've had to write a detailed description for our tournament hosts on how it works, and some are still confused lol
Title: Re: Event Registration Mod
Post by: OCJ on December 06, 2011, 02:01:51 AM
I want to check 1 more thing about the error - line 651 is  Bloc custom menu. It could be the template menu system but it was working ok without errors until I installed this mod.
Any site url is producing the error now.
I had problems with manual edits installing and uninstalling - could be a mistake I made making edits but not sure. Will restore to before any changes and try it again.


If possible - make the  options in 'simple' layman's English! Users will have trouble with anything else. If it looks easy to set the options - they will use it.



http://####.com/index.php?action=calendar;sa=post

8: Undefined offset: 1

File: /home###/###/public_html/Themes/Proteus20b/index.template.php
Line: 651
Also 652

Quote
643:    
$menus = explode("\n",$settings['emenus']);
644:    
foreach($menus as $menu)
645:    
{
646:    
$it = explode(",",$menu);
647:    
// first the parents
648:    
if(!isset($it[3]))
649:    
{
650:    

$context['menu_buttons'][$it[0]] = array(
==>651:    
'title' => $it[1],
652:    
'href' => $it[2],
653:    
'active_button' => false,
654:    
'sub_buttons' => array(),

   
Title: Re: Event Registration Mod
Post by: Bixby on December 06, 2011, 03:51:21 PM
This is a fantastic Mod and will help significantly with two sites that I run. Both of them use the calendar and events quite heavily.

I am still playing around with the options. One question I have...
...Is it possible to have this mod Active for some sections of the forums but not for others? For instance, some sections of our forums require Registration, where other sections are just posting events to the Calendar and no registration is needed for those events. It would be great to have control over which events used the registration feature. If that is not an option today, consider this a feature request :)

Thanks again,
Bixby (Matt)
Title: Re: Event Registration Mod
Post by: Zirc on December 06, 2011, 05:55:12 PM
@Bixby

If you set the max attendants option to 0 then registration is disabled for that event.
Title: Re: Event Registration Mod
Post by: Bixby on December 06, 2011, 06:24:20 PM
@Bixby

If you set the max attendants option to 0 then registration is disabled for that event.


That is awesome. Thanks.
Title: Re: Event Registration Mod
Post by: OCJ on December 06, 2011, 10:33:24 PM
If possible in future versions ....

Admin page checkbox options to allow comments or guest registration.

For clubs like ours we have a safety waiver/issue and membership fee. If members see guest sign up and start signing up guests it just makes trouble.
But sometimes events at low level/safe, we allow guests - then its uesful. Nice the have the option in admin.

It maybe a lot more work but typical permissions would be good one day - group permissions page to select who can use it and what options they can see/use.
Title: Re: Event Registration Mod
Post by: doughboy99 on December 06, 2011, 10:35:57 PM
I've installed this mod on a test site. I'm using SMF 2.0.1 and Simpleportal 2.3.4. It works fine using the default curve theme but using the theme Argentum2 theme the Register button doesn't appear at all.
When I installed the mod I had to make a couple of small manual edits to display.template.php for both themes

Code: (Find) [Select]
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
 
Code: (Replace) [Select]
   global $context, $settings, $options, $txt, $scripturl,
         $modSettings, $topic;
 
because I have some other mods installed. Any ideas as to how I can get this to work for the Argentum2 theme?]]Thanks
Title: Re: Event Registration Mod
Post by: hcfwesker on December 06, 2011, 10:46:15 PM
because I have some other mods installed. Any ideas as to how I can get this to work for the Argentum2 theme?]]Thanks

check to see if the Argentum2 theme has it's own display.template.php file.  then check to see if all the edits were made to that theme. 

I'm confused by what you added this for.

Quote
Code: (Find) [Select]
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
 
Code: (Replace) [Select]
   global $context, $settings, $options, $txt, $scripturl,
         $modSettings, $topic;

Did you make those manual edits already, or you having trouble doing them yourself?

Title: Re: Event Registration Mod
Post by: doughboy99 on December 06, 2011, 10:54:13 PM
Sorry for the confusion. These were manual edits I had to make to display.template.php for both the default theme and Argentm2. I'll check if any other edits were missed for the argentum2 theme.
Title: Re: Event Registration Mod
Post by: doughboy99 on December 06, 2011, 11:09:06 PM
I've checked and all the required edits seem to have been made to Argentum2's display,template.php. I've attached the file. I'd really like to get this working for this theme. Thanks again for any ideas.

Not sure if its related but I'm also getting this error when a topic is displayed

8: Undefined index: dateRegistered

 File: /xxxxxxx/Sources/Display.php
 Line: 628
Title: Re: Event Registration Mod
Post by: doughboy99 on December 07, 2011, 04:26:58 AM
It turns out the Argentum2 theme has a display2.template.php file which needs the same edits as its display.template.php file. Adding them sorted the problem.

The Undefined index: dateRegistered error seems to be related to event attendees added as a group by the Admin Register option. If you do this the dateRegistered field isn't filled in for the attendees.
Title: Re: Event Registration Mod
Post by: hcfwesker on December 11, 2011, 11:07:46 PM
The Undefined index: dateRegistered error seems to be related to event attendees added as a group by the Admin Register option. If you do this the dateRegistered field isn't filled in for the attendees.

Yeah, getting these errors all over the place.

http://www.brawldomain.com/index.php?topic=12953.0

8: Undefined index: dateRegistered

 File: /home/xxxxxxxxx/public_html/Sources/Display.php
Title: Re: Event Registration Mod
Post by: HoverClub on December 15, 2011, 03:25:19 PM
Hi,

I've just had an newly written SMF2 version of this mod approved by the customisation team (it's taken two months!) - you can  find it HERE (http://custom.simplemachines.org/mods/index.php?mod=3238) .  It's an SMF2 only version that can use the SMF2 paid subscription system to take event entry fee payments from members when they confirm an event.  Apart from that, it does everything the SMF1 version does expect take guest registration as guests can't make payments. Thanks to ptfq for allowing use of some some code from the original version.
Title: Re: Event Registration Mod
Post by: 3fifty on December 20, 2011, 01:15:38 AM
Great mod.  Thanks for the hard work.

Title: Re: Event Registration Mod
Post by: pftq on December 25, 2011, 10:43:05 PM
So I'm wrapping up a few changes for the next update.  So far I have:
- 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) to be more easily understood.

The rewording is on these:
'Sort Signups X Days Before Event:';
'Ask Confirmations X Days Before Event:';
'Close Signups X Days Before Event:';
"Admin Register" to "Batch Signups"

Is there any other that shoud be changed? I think "Allow Comments" and "Allow Guests" are quite self-explanatory.  :P Is "Multiple Signups Per Member" ok or is that a bit confusing?

@doughboy: Is the error you're getting theme-specific or from the mod? I didn't get any notices on my end from the Admin Register page.
Title: Re: Event Registration Mod
Post by: OCJ on December 26, 2011, 04:31:40 AM
Looks ok ...

The only thing I can see that doesnt look so clear is the + sign. For waiting list I think something like  "waitlist" or "waiting list", before or after name is better.
Uhm, wait-list before name is clear. But if things like confirmed and unconfirmed in brackets after  that location would be best.

9. name (unconfirmed)
10. name (confirmed)
11. name (waiting list)



'Sort Signups X Days Before Event:';
'Ask For Confirmation X Days Before Event:';
'Close Signups X Days Before Event:';
"Admin Register" to "Batch Signups"

"Allow Comments" and "Allow Guests"
"Multiple Signups Per Member" ...

Looks a lot better!
Title: Re: Event Registration Mod
Post by: doughboy99 on December 26, 2011, 06:21:23 AM
Hi I Can't retest just now. I'll reinstall the mod on a test site later today and retry. From memory the error was occurring using both the default and Argentum 2 themes.
Title: Re: Event Registration Mod
Post by: pftq on December 26, 2011, 02:14:18 PM
Looks ok ...

The only thing I can see that doesnt look so clear is the + sign. For waiting list I think something like  "waitlist" or "waiting list", before or after name is better.
Uhm, wait-list before name is clear. But if things like confirmed and unconfirmed in brackets after  that location would be best.

9. name (unconfirmed)
10. name (confirmed)
11. name (waiting list)



'Sort Signups X Days Before Event:';
'Ask For Confirmation X Days Before Event:';
'Close Signups X Days Before Event:';
"Admin Register" to "Batch Signups"

"Allow Comments" and "Allow Guests"
"Multiple Signups Per Member" ...

Looks a lot better!

Ah the waitlist part - that was in the original mod before I took over so I kind of took it for granted. XD  I'll take a look how that is working and see how I can improve it.

@doughboy: When you do, please let me know, thanks.
Title: Re: Event Registration Mod
Post by: doughboy99 on December 26, 2011, 07:33:08 PM
I've set up a new test site using  a copy of my main sites files and dayabase.

I'm getting errors   like

xxxx/eforum/index.php?topic=735.msg2598
8: Undefined index: dateRegistered

File: xxxx/eforum/Sources/Display.php
Line: 628

The error seems to be connected with the "Sort Signups X Days Before Event" option becoming active. It occurs whether the Signups were made via the batch option or not. I originally thought it might have something to do with the batch option as this doesnt enter a value into the DateRegistered field of the Calendar_Reg table .
Title: Re: Event Registration Mod
Post by: hcfwesker on December 26, 2011, 11:53:09 PM
I'm getting errors   like

xxxx/eforum/index.php?topic=735.msg2598
8: Undefined index: dateRegistered

File: xxxx/eforum/Sources/Display.php
Line: 628

Of all the updates to the MOD being planned, this , to me, is the most important.  We get almost 400 errors a day from just this error on event registration enabled topics.
Title: Re: Event Registration Mod
Post by: pftq on December 27, 2011, 03:05:38 AM
The error seems to be connected with the "Sort Signups X Days Before Event" option becoming active. It occurs whether the Signups were made via the batch option or not. I originally thought it might have something to do with the batch option as this doesnt enter a value into the DateRegistered field of the Calendar_Reg table .

That helped a lot.  Thanks - It was indeed only showing up if you used the Sorting, which also didn't happen to work in the first place (early confirmations got bumped to waitlist first).  Both issues are fixed now.
http://custom.simplemachines.org/mods/index.php?mod=2024

Any other changes, just let me know. :)
Title: Re: Event Registration Mod
Post by: OCJ on December 27, 2011, 03:12:53 AM
Worked well. I wonder if the guest registration will get spam though?
Also no email input unless by public comment. If it worked like smf allowing guest posting with hidden email so that the organizer could email them as well.

Might be asking a lot to secure it with some kind of captcha.
Sounds like a lot of work ...
Andy
Title: Re: Event Registration Mod
Post by: doughboy99 on December 27, 2011, 08:25:14 AM
The sort is working without generating messages for me now. Existing events with attendees are however sorting with confirmed attendees still at the bottom of the wait list. Not a big deal for me as this is a test site.

Personally I'd prefer Allow Guests to default to No as that is the usual case for us. We wouldn't want to accidentally allow guests on Dive Trips.
It would be very useful to have a default text for Terms and Conditions. Even a text string in Modifications.english.php that we could edit manually would be a help.
For me the Sort Signups X Days Before Event:  and  Close Signups X Days Before Event: are superfluous(at least for most dive trips where we know in advance what the available number of spaces is). If we have spaces we want to fill them if at even at the last minute. Close Sign ups defaults to zero days before event but for us an option to set Sort Signups X Days Before Event: to at once would be great. That way you can see who is committed to a trip and get some money from them.


Title: Re: Event Registration Mod
Post by: ostgardh on December 27, 2011, 09:59:17 AM
Nice mod.

But I can not get the comment function to work.
When I add a comment is not add in the database.

Is possible to write in "Comment" field but after post none comment shows.

I tried to change an event in sql and add one Commented there.
Then I could see a Comment in event.

Does anyone know what it could be?

//P Ost


SMF 2.0.2
Event Registration Mod = 0.177 BETA

Title: Re: Event Registration Mod
Post by: OCJ on December 27, 2011, 10:19:49 AM
Not so sure a fixed terms and conditions would be good for everyone. For a single 'club conditions' to guests useful but some of our members who organize also have their own conditions for each event.
Title: Re: Event Registration Mod
Post by: pftq on December 27, 2011, 10:35:35 AM
Nice mod.

But I can not get the comment function to work.
When I add a comment is not add in the database.

Is possible to write in "Comment" field but after post none comment shows.

I tried to change an event in sql and add one Commented there.
Then I could see a Comment in event.

Does anyone know what it could be?

//P Ost


SMF 2.0.2
Event Registration Mod = 0.177 BETA




Any errors in the Admin Log?
Title: Re: Event Registration Mod
Post by: ostgardh on December 27, 2011, 10:52:37 AM
Nice mod.

But I can not get the comment function to work.
When I add a comment is not add in the database.

Is possible to write in "Comment" field but after post none comment shows.

I tried to change an event in sql and add one Commented there.
Then I could see a Comment in event.

Does anyone know what it could be?

//P Ost


SMF 2.0.2
Event Registration Mod = 0.177 BETA




Any errors in the Admin Log?

No error in Admin log.

//O
Title: Re: Event Registration Mod
Post by: doughboy99 on December 27, 2011, 11:18:11 AM
Not so sure a fixed terms and conditions would be good for everyone. For a single 'club conditions' to guests useful but some of our members who organize also have their own conditions for each event.


Your right that the terms and conditions might change for individual event but in that case you could change the terms when they were shown in the Edit Event window. It just means for us at least that most of the time Terms and Conditions wouldnt need chamging/adding when creating an new event.
Title: Re: Event Registration Mod
Post by: pftq on December 27, 2011, 11:30:36 AM
I'm thinking of caching previous settings so whatever you set it last time will just be the default - same w/ other settings.
Title: Re: Event Registration Mod
Post by: doughboy99 on December 27, 2011, 12:34:46 PM
Is possible to write in "Comment" field but after post none comment shows.

I tried to change an event in sql and add one Commented there.
Then I could see a Comment in event.

Actually I'm seeing this behaviour too. Entered comments aren't being written to the calendar_reg table. Hadn't noticed before as I hadn't tried comments.
Title: Re: Event Registration Mod
Post by: pftq on December 27, 2011, 01:32:04 PM
They seem to be working here for me - can you give me more details (whether as a guest, signing up logged in, etc)?

I'm thinking it might be that the database columns haven't been set to lowercase for SMF2 - are you using MySQL or another database format?
Title: Re: Event Registration Mod
Post by: ostgardh on December 27, 2011, 01:48:27 PM
They seem to be working here for me - can you give me more details (whether as a guest, signing up logged in, etc)?

I'm thinking it might be that the database columns haven't been set to lowercase for SMF2 - are you using MySQL or another database format?

MySQL Server 5.0.51a-24
No guest.

Title: Re: Event Registration Mod
Post by: Omniverse on December 27, 2011, 01:56:37 PM
Liking this mod.

If I may add a couple suggestions...

I would prefer the comments to have their own column rather than being below the name. Makes the list look weird when some have comments, some don't. Makes the comments easier to read in my opinion as well.

I would also love to have the date they signed up shown in a column as well.

Just a couple thoughts.

I like your idea for caching settings and using it for the next.... perhaps even one step further and allow saving of 'template settings' where you could have several preset events to choose from to post. Just another thought. :)


Great job so far.
Title: Re: Event Registration Mod
Post by: hcfwesker on December 27, 2011, 02:10:16 PM
Thank you very much for fixing the "Undefined index: dateRegistered" error.  :)
Title: Re: Event Registration Mod
Post by: Fdrost on December 27, 2011, 06:03:28 PM
Hi,

Is it possible to create a print button (not the printscreen button) that prints the registered members (with information from the profile) so i can check that everybody is accounted for without any computer?

I want to use this for a dive roster like this :

(http://www.lpimg.info/Image/Product/Large/PDI60227.JPG)
Title: Re: Event Registration Mod
Post by: Kindred on December 28, 2011, 10:44:39 AM
very nice, pftq...   I had an old mod for early 1.1.5 that did something similar, but you've done a bang-up job of moving beyond what I even had planned. :)

question:
Is there an admin screen to set defaults for the registration fields?

I'd love to be able to set the basic defaults for my board in each of the ERM settings...
Max Attendants:
Ask Confirmations X Days Before Event:
Sort Signups X Days Before Event: 
Close Signups X Days Before Event:
One Member Can Sign Up Multiple Names:
Allow Guests:
Allow Comments:
Terms and Conditions:

I'd also like to be able to set the permissions per group.
(i.e. I have two groups that can create events, but only one of those groups should be able to create events with registration.)


Any chance?   lol....   I know how annoying it is for users to keep asking for more, so do note that I am just asking, not demanding or anything else. :)




edit/add-
Question ---   Several users say that they have left comments (and I tried as well) but I don't see the comments anywhere...    Where should comments be displayed?
Title: Re: Event Registration Mod
Post by: pftq on January 02, 2012, 06:02:07 PM
@Fdrost: I actually do that with my own sites but using another CMS I integrated with SMF.  I can set up a brief printview for the members data though on the next update.

I'm actually not sure how to implement the permissions per group, so I'm not putting that too high on the priority right now.  If someone wants to help or look into it, let me know.

The comments should show up under the signed up name on the list.  There have been several mentions already that comments aren't posting - not too sure why yet because I'm not able to replicate it on my end using a clean install of SMF2.

For default settings, I will start off with caching the most recent settings first and see how that works out - we can then move from there.
Title: Re: Event Registration Mod
Post by: Fdrost on January 03, 2012, 06:26:51 PM
That's very nice! thanks...that's is very helpfull!

Greetings,

Ferry

@Fdrost: I actually do that with my own sites but using another CMS I integrated with SMF.  I can set up a brief printview for the members data though on the next update.

I'm actually not sure how to implement the permissions per group, so I'm not putting that too high on the priority right now.  If someone wants to help or look into it, let me know.

The comments should show up under the signed up name on the list.  There have been several mentions already that comments aren't posting - not too sure why yet because I'm not able to replicate it on my end using a clean install of SMF2.

For default settings, I will start off with caching the most recent settings first and see how that works out - we can then move from there.
Title: Re: Event Registration Mod
Post by: floomp on January 10, 2012, 03:29:50 AM
Hey pftq, I think I introduced an embarrassing bug when I ported ERM to SMF 2. Starting at line 122 in modification.xml:

Code: [Select]
<add><![CDATA[ // function to compare confirmed attendants
function cmpCA($a, $b)
{
if ($a['dateConfirmed'] == $b['dateConfirmed']) {
return ($a['dateRegistered'] > $b['dateRegistered']) ? -1 : 1;
}

The second line from the bottom should be using a < instead of >, I think.
Title: Re: Event Registration Mod
Post by: Fdrost on January 10, 2012, 12:28:39 PM
Wich CMS did you use?

That's very nice! thanks...that's is very helpfull!

Greetings,

Ferry

@Fdrost: I actually do that with my own sites but using another CMS I integrated with SMF.  I can set up a brief printview for the members data though on the next update.

I'm actually not sure how to implement the permissions per group, so I'm not putting that too high on the priority right now.  If someone wants to help or look into it, let me know.

The comments should show up under the signed up name on the list.  There have been several mentions already that comments aren't posting - not too sure why yet because I'm not able to replicate it on my end using a clean install of SMF2.

For default settings, I will start off with caching the most recent settings first and see how that works out - we can then move from there.
Title: Re: Event Registration Mod
Post by: jan.van.gent on January 11, 2012, 07:59:26 AM
Is this mod available in different languages (dutch for example)?
Title: Re: Event Registration Mod
Post by: mad.cadter on January 13, 2012, 09:40:23 AM
I installed this mod (0.174) to SMF 1.1.13.  Looks like everything installed successful, but when I go to the calender to create an event or create a post, I am not seeing the option to enable registration.   It is probably something simple I am missing.

Suggestions?
Title: Re: Event Registration Mod
Post by: hcfwesker on January 13, 2012, 10:14:58 AM
Read the READ ME file, you have to change some settings in the Calendar setting in AdminCP to make it work properly.  And you have to assign a board that created events will post to.
Title: Re: Event Registration Mod
Post by: mad.cadter on January 13, 2012, 01:36:55 PM
Turns out it is because I was using "Classic YaBB SE Theme" instead of the "default" theme.   Thanks for the response.
Title: Re: Event Registration Mod
Post by: Zirc on January 15, 2012, 02:16:24 PM
How difficult would it be to add in a start and end time for each event?
Title: Re: Event Registration Mod
Post by: leratg on January 17, 2012, 08:23:16 AM
Damn, 2 bugs found in a few minutes.
- When you set Terms and Conditions, the comments are not saved.
- And the most annoying, you can insert html code in comment field and certainly sql orders...

It is a very annoying bug, it is recommend to set off the comments on this mod version.
Title: Re: Event Registration Mod
Post by: Kindred on January 25, 2012, 11:25:09 AM
ok... 

My first test event comes due this week.
I have users signed up and onto the waiting list.

Confirmation was supposed to be announced 10 days before the event and signup closed 5 days before the event.
No confirmation email or PM was sent.... and the ability to confirm got shut off once signup closed.

The first part is definitely a bug.



regarding comments - wow... that should have been caught in the mod review process.... if true, that is definitely a security issue.
pftq - please release  a security update which sanitizes the HTML code in comments ASAP...
(leratg... if you have evidence of this more than just a comment, please submit it here in this post or submit it to the customize team in a security report of the mod.)
Title: Re: Event Registration Mod
Post by: leratg on February 07, 2012, 08:41:07 AM
Sorry I have no time to do a correction on this mod at this time.
I only hide the selectbox with choices it makes a comment available (comment + multiple subscription).

I don't play with confirmation. I fixed confirmation to 0 day, and it seems to work as well.
Title: Re: Event Registration Mod
Post by: stefan_boy on February 26, 2012, 03:29:19 AM
Read the READ ME file, you have to change some settings in the Calendar setting in AdminCP to make it work properly.  And you have to assign a board that created events will post to.

I have just found this Mod and have the same problem not getting the register button, i have read the hole READ ME file like you said but it does not say anywhere that i have to change anything, there is only a changelog in the READ ME file i have for some reason.
I have tried different themes as well but no change.

Please tell me what i have to change to get it to work.
Title: Re: Event Registration Mod
Post by: pftq on February 26, 2012, 04:08:59 PM
You have to show linked posts to calendar events in your Admin settings.
Title: Move Event Section
Post by: IamJaysta on March 01, 2012, 06:02:11 PM
Is there a way to move the linked event registration to the left block section vs the top??  I have many registrations and it pushes the topic down.
Title: Re: Event Registration Mod
Post by: pftq on March 01, 2012, 06:08:46 PM
That's controlled by your theme - I believe it's in the Display.template file.
Title: Re: Event Registration Mod
Post by: IamJaysta on March 01, 2012, 06:12:11 PM
Is there a reference that you have that I can change this?  I am fairly new to this and do not know a lot of coding, but willing to learn if you point me to the right direction.

I am currently using the default theme.
Title: Re: Event Registration Mod
Post by: pftq on March 01, 2012, 09:34:14 PM
Hi - it's less coding and more HTML/CSS.  The exact part of the code where this mod is located can be found in Display.template where it says // pftq (I generally try to make the mod changes obvious).
Title: Re: Event Registration Mod
Post by: IamJaysta on March 09, 2012, 06:23:05 PM
I've tried many different things and asked on all over different forums.

I simply want to put the linked events into a left block portal.  Also, if you could add custom fields that registrants can add.  That would be great!

EX:

ShockTekJay (GOLD) (CLAN SHOCKTEK)

If we could just add custom fields that'll be awesome!
Title: Re: Event Registration Mod
Post by: Kindred on March 09, 2012, 08:25:27 PM
ummmm....   are you talking about these registered-signup events or general events?

If general events, then you should be asking in either the portal thread or the smf coding area. This thread is for support of the event registration mod, not general event coding.
Title: Re: Event Registration Mod
Post by: 72 454 on April 01, 2012, 06:53:41 PM
SMF 2.0 is not and will not be supported. Dont bother asking.

 Is this still in effect? The Mod site shows it supports version 2.02. Doesn't work with my 2.02...
Title: Re: Event Registration Mod
Post by: butchs on April 01, 2012, 07:54:13 PM
Bummer, and I was just about ready to get excited!

Such a cool sounding mod too...   :'(
Title: Re: Event Registration Mod
Post by: Kindred on April 01, 2012, 08:59:31 PM
There is Los another event registration mod, with similar option, but a different implemention style
Title: Re: Event Registration Mod
Post by: OCJ on April 02, 2012, 02:44:18 AM
That message was in 2009.... see the mod page:

Quote
Mod Name:
    Event Registration Mod
Created By:
    pftq
Type:
    New Feature
First Created:
    July 24, 2009, 08:48:12 AM
Last Modified:
    January 26, 2012, 12:57:18 AM
Latest Version:
    0.177
Compatible With:
    1.1.10, 1.1.14, 1.1.15, 1.1.16, 2.0.1, 2.0.2
Title: Re: Event Registration Mod
Post by: CraftyLion on July 15, 2012, 10:08:02 PM
This mod looks very promising and I uploaded it this morning. However, I'm having trouble activating it. I must be missing something here. How exactly does it work? 
Title: Re: Event Registration Mod
Post by: Kindred on July 15, 2012, 10:10:46 PM
kimba - which mod did you install? This one or the one from hoverclub? --- they are different mods.
Title: Re: Event Registration Mod
Post by: CraftyLion on July 16, 2012, 08:45:06 AM
This one.
Title: Re: Event Registration Mod
Post by: pftq on July 16, 2012, 10:39:16 PM
Make sure you have "Show linked events in topic display" enabled under Calendar settings.
Title: Re: Event Registration Mod
Post by: Abavagada on July 23, 2012, 08:42:16 AM
I had installed the Beta 174 version of this before, and uninstalled it today.
I tried to install this one on my 1.1.16 SMF board, and it gave me errors (which I expected.. my board is heavily modded).

However, one error is that it can't find Sources/Subs-Calender.php. Confused by this, I checked my server and local computer.. there is no such file. I downloaded the SMF 1.1.16 install zip, thinking I had somehow deleted that file. However, there is no such file in there either.

Where is Subs-Calendar.php?

Title: Re: Event Registration Mod
Post by: Kindred on July 23, 2012, 10:32:51 AM
I believe that is only in 2.0.x
Title: Re: Event Registration Mod
Post by: pftq on July 23, 2012, 11:15:07 AM
The latest version for smf1 is .174; the smf2 version is for smf2 but it is identical to .174 in features.
Title: Re: Event Registration Mod
Post by: Abavagada on July 23, 2012, 02:25:04 PM
Thanks.
I thought that might be the issue, but I know the beta version was number .174 and the page says the newest version is .177, so I figured that was the other file.
Title: Re: Event Registration Mod
Post by: pftq on July 25, 2012, 12:01:46 PM
Oh you're right. 177 is newest. I just have the zip badly named. I will change the name when I get home. Thanks
Title: Re: Event Registration Mod
Post by: kokett on August 28, 2012, 04:21:25 AM
In TermsAndConditions.template.php

after <input type="hidden" value="',$_POST['Registrant'],'" name="Registrant" />

insert <input type="hidden" value="',$_POST['Comment'],'" name="Comment" />

else no comments are written to database!

Version ERM_0.174.zip for SMF 1.1.16
Title: Re: Event Registration Mod
Post by: Bobn on October 10, 2012, 08:11:52 PM
Hi,

Have the mod installed but it looks different in the calendar and when I post an event it does not give used the option to sign up. an anybody help ,, please?
Title: Re: Event Registration Mod
Post by: Bobn on October 14, 2012, 02:38:29 PM
Anyone?
Title: Re: Event Registration Mod
Post by: Kindred on October 14, 2012, 04:44:06 PM
Which mod did you install? You have asked the same question in two different mod threads.
Title: Re: Event Registration Mod
Post by: Bobn on October 14, 2012, 05:42:56 PM
Which mod did you install? You have asked the same question in two different mod threads.

There are two different  Event Registration Mods, each has its own thread. I cannot get either to work. Thank you
Title: Re: Event Registration Mod
Post by: Kindred on October 14, 2012, 07:35:03 PM
If you install both, then neither will work.
Title: Re: Event Registration Mod
Post by: Deju on November 26, 2012, 09:53:12 PM
I know this is a long shot, but....   could someone build a payment option into this mod for me? 

Would love to integrate a Paypal protocol so if payment is required for that event registration it sends the user out to complete payment before adding their name to the list.

I'm willing to pay a few bucks.
Title: Re: Event Registration Mod
Post by: littlenicki on February 06, 2013, 02:04:17 PM
I know this is a long shot, but....   could someone build a payment option into this mod for me? 

Would love to integrate a Paypal protocol so if payment is required for that event registration it sends the user out to complete payment before adding their name to the list.

I'm willing to pay a few bucks.

I support this and would throw in USD 30.00 ! Would be great to have!
Title: Re: Event Registration Mod
Post by: littlenicki on February 08, 2013, 12:31:03 PM
Anybody else interested in getting a PayPal option for this mod?
Title: Re: Event Registration Mod
Post by: RustyBarnacle on February 19, 2013, 01:00:29 PM
I would be interested.  I'm not using this mod at the moment but I could definately see a use for it in one of my newer forums.  I'd put in a few bucks as well to have that added but I'm not here often.  The mod author can PM me and I'll get an email if they put this in.
Title: Re: Event Registration Mod
Post by: pftq on September 09, 2013, 12:06:27 AM
Sorry for the late reply.  Getting it integrated with Paypal is a bit beyond me (both what I'm familiar with coding and the time I have available).  If anyone else wants to work on the functionality, I'd more than welcome it.
Title: Re: Event Registration Mod
Post by: InsomniacP on September 15, 2013, 07:10:31 AM
We use this MOD on our site, we have done quite a few modifications to the code to suit our site better but it's a great addition and works very well..
Title: Re: Event Registration Mod
Post by: Yaya K 47 on October 22, 2013, 07:14:51 PM
Hi,
Sorry for my bad english.

SMF 2.0.5
My theme is : "lagusta"

Auto install by administration don't work.


I need instruction
Title: Re: Event Registration Mod
Post by: Kindred on October 22, 2013, 07:19:24 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Event Registration Mod
Post by: Yaya K 47 on October 23, 2013, 01:05:21 AM
Thx,
but I have new problem.

When somebody try for inscription, he is automaically back to home. And nothing is save.
Title: Re: Event Registration Mod
Post by: Yaya K 47 on October 24, 2013, 11:40:41 PM
Up,

If you don't understand my problem i can make a video... ?
Title: Re: Event Registration Mod
Post by: nogarth on November 14, 2013, 02:11:59 PM
Hi all.

im using SMF 2.0.6 and installed this mod but cant seem to get it working. i have ticked link to topic in the calendar and wonder is there anything else i am missing or is it not compatible with 2.0.6 the theme im using is a custom one that i have tweeked but original was "Love Theme".
Title: Re: Event Registration Mod
Post by: nogarth on November 14, 2013, 03:48:41 PM
worked it out have 0 for attendance and changed and it then updated it.
Title: Re: Event Registration Mod
Post by: pftq on November 30, 2013, 05:37:55 PM
worked it out have 0 for attendance and changed and it then updated it.
Thanks for the update - let me know if you still have trouble with it.
Title: Re: Event Registration Mod
Post by: Deju on January 16, 2014, 01:01:32 PM
Hello,

I have 2 questions if you have time. thankyou

1) How can I give Moderator Privilege to access? :  "Administrative [Show] [Hide] [Batch Signups]" and "Cancel Signup"

2) I have:  Event Registration Mod    0.177 BETA
w/  SMF 2.0.6 | SMF © 2013, Simple Machines
SimplePortal 2.3.5 © 2008-2012, SimplePortal . 

Should I install newer version?  If so, how do I do that without losing all current Events/Signups?
Title: Re: Event Registration Mod
Post by: pftq on February 02, 2014, 01:29:49 AM
I think #1 should already be the case.  The code I'm using checks if the user can moderate the forum the topic is in.

.177 is the latest.  It's a strange version naming scheme I admit.  It was already in place when I took over the mod.
Title: Re: Event Registration Mod
Post by: Deju on February 04, 2014, 08:46:54 AM
pftq,

I am using this mod in a forum with over 1000 members and many, many very important events.

How do I update safely and correctly?

Should I uninstall "0.177 BETA" first?   Will I lose current events?  I am very worried about this.

Thank so much for your time and help with this great mod.
Title: Re: Event Registration Mod
Post by: pftq on February 04, 2014, 09:14:02 AM
You have the latest already.  No worries. :)
Title: Re: Event Registration Mod
Post by: Deju on February 04, 2014, 09:58:00 AM
Ok. Because I don't seem to have functionality like:
 Fixed sorting of confirmed registrations going in the wrong order (early confirmations should be first, not last).
and
 Allow members with moderating permissions to administrate event sign ups.

What is normal safe upgrade procedure? 
Title: Re: Event Registration Mod
Post by: pftq on February 04, 2014, 11:32:59 AM
You can uninstall and reinstall without losing data.  It should be fine just doing this through the Package Manager.
Title: Re: Event Registration Mod
Post by: Leftie on May 07, 2014, 08:02:13 AM
I'm running SMF 2.0.7 with Event Registration Mod version 0.177 BETA installed.

Apparently, I'm getting a problem with reverse order of registrations, because if I unregister from a full event and then re-register, I'm not put on the Waitlist, but rather in spot #1.
Our users are having way too much fun with this behaviour and we obviously can't let them enjoy the forum like this. Is there a simple fix I can do myself?

[Edit]Just stating explicitly that the event in question is fully booked already.
Title: Re: Event Registration Mod
Post by: pftq on June 21, 2014, 06:10:32 PM
I will look at it this weekend.  Sorry for the late reply - the notifications emails are not coming to my inbox for some reason.
Title: Re: Event Registration Mod
Post by: 0Connors on July 22, 2014, 06:24:15 AM
Hi all,

Firstly, i want say to you thank you for this beautiful mod !

However, i have found an error when i try to unregister me to an event.

I have the message "Are you sure ?" and when i click on "Ok" i'm redirected to a forum page with this message :

FR : "Impossible de charger le modèle 'main'."
EN : "Impossible to charge the 'main' model."

And i don't know why... Some one can help me ?

Thank you,
Title: Re: Event Registration Mod
Post by: thtanner on August 19, 2014, 06:27:49 PM
I am trying to install this mod on 2.0.8 and I just don't see where user's can sign-up. The actual attendance signup and list do not show in the linked topic. I have enabled the "Show linked events in topic display" in hopes that would help, but it does not.

Any advice would be helpful. Also, your images are broken on the SMF Mod page.
Title: Re: Event Registration Mod
Post by: Kindred on August 19, 2014, 06:33:34 PM
did you install it into your custom theme?  by default mods only install into the default theme (in 2.0, there is a check to install into other themes, but if you missed that, then you will have to install manually)
Title: A way to email user that registered for event
Post by: bassackwards on September 18, 2014, 12:37:17 AM
Hi.

Thanks for the great mod. Just installed and looks like all is working. Two things:

1. Maybe I'm missing something but is there a way to have the mod email the person that registered for an event?
2. The Event Signup list would be extra great if it showed when the user registered ( Date & time ). Any way to do that?

Thanks again!
-Brian
Title: Re: Event Registration Mod
Post by: MWF on September 18, 2014, 02:07:10 PM
I also have a question: would it be possible to allow the administrator to register other users? Even better- multiple at once?
Title: Re: Event Registration Mod
Post by: bassackwards on September 19, 2014, 11:45:55 AM
@MWF:

I think you can do that using the "batch signups" at the bottom of the event.
Title: Re: Event Registration Mod
Post by: MWF on September 19, 2014, 12:51:01 PM
Thanks- turns out I was using the wrong mod :(.

I see that the registration entry in the db does include both the registration & confirmation timestamps, so it should be possible to show registration date & time.

The other mod (Event Registration for SMF2 by HoverClub) has a feature to PM all registered people- perhaps you can adapt the code from that one?
Title: Re: Event Registration Mod
Post by: lewism on September 24, 2014, 11:47:20 AM
I see replies from 2009 only, does this mean this is no longer supported and not to be used with 2.0.8?
Title: Re: Event Registration Mod
Post by: Kindred on September 24, 2014, 12:30:13 PM
seems to work on 2.0.8 for me
Title: Re: Event Registration Mod
Post by: luuuciano on December 05, 2014, 08:40:08 AM
For some odd reason I can not find the mod setup... can someone share the admin link to it?

Where it should be located? :-/d
Title: Re: Event Registration Mod
Post by: luuuciano on December 10, 2014, 02:08:45 PM
For some odd reason I can not find the mod setup... can someone share the admin link to it?

Where it should be located? :-/d

There is no option, all options are done in the post/event creation (I hidden them, and did not rembered where it was, lol!)
Title: Re: Event Registration Mod
Post by: Deju on February 04, 2015, 03:36:36 PM
Having the same problem on SMF 2.0.9

I'm running SMF 2.0.7 with Event Registration Mod version 0.177 BETA installed.

Apparently, I'm getting a problem with reverse order of registrations, because if I unregister from a full event and then re-register, I'm not put on the Waitlist, but rather in spot #1.
Our users are having way too much fun with this behaviour and we obviously can't let them enjoy the forum like this. Is there a simple fix I can do myself?

[Edit]Just stating explicitly that the event in question is fully booked already.
Title: Re: Event Registration Mod
Post by: pftq on August 19, 2015, 01:26:21 AM
Sorry for the late reply.  It's been a busy year, and this slipped my radar.  If anyone else wants to help maintain the mod, more than fine with me.

Regarding reverse order, I looked into this several times and wasn't able to reproduce the issue (signed up pftq first, then reregistered, did the same with test1, etc).  See the test board below:
http://www.pftq.com/smf/smf2/index.php?topic=3.0

If someone can let me know more details on the steps or try it on the test forum above, that would be helpful.

Quote
1. Maybe I'm missing something but is there a way to have the mod email the person that registered for an event?
2. The Event Signup list would be extra great if it showed when the user registered ( Date & time ). Any way to do that?

For #1, there is a PM Confirmed/Unconfirmed button under the list for mods/admins.  (Click [show] under Admin options)

For #2,
Added a quick update to include registration/confirmation date time on the list next to the name.
http://custom.simplemachines.org/mods/index.php?mod=2024

It's just a theme update.. for those that just want the change made to their theme, replace the line in Display.template.php:
Code: [Select]
echo '<td>',($reg['name']&&$reg['name']!=$reg['user_name']? $reg['name'].($reg['user_name']? ' / ':''):''),'<a href="',$scripturl,'?action=profile;u=',$reg['id'],'">',$reg['user_name'],'</a>';with
Code: [Select]
echo '<td>',($reg['name']&&$reg['name']!=$reg['user_name']? $reg['name'].($reg['user_name']? ' / ':''):''),'<a href="',$scripturl,'?action=profile;u=',$reg['id'],'">',$reg['user_name'],'</a>, ', timeformat($reg['dateConfirmed'] == 0? $reg['dateRegistered']:$reg['dateConfirmed']);
Title: Re: Event Registration Mod
Post by: Kindred on August 19, 2015, 06:16:12 AM
Sorry for the late reply.  It's been a busy year, and this slipped my radar.  If anyone else wants to help maintain the mod, more than fine with me.


ptftq -- Can you clearly state the mod license, please (edit the mod page and include a license file in the mod package itself)
(I suggest MIT, or BSD)



Also, your mod screenshots all just show an advert for an itunes giftcard. Please correct them or they will be removed.
Title: Re: Event Registration Mod
Post by: Deju on August 19, 2015, 04:50:08 PM
Try setting date of event earlier than current date.  I have found the reverse order glitch happens when the date passes the event date.

Regarding reverse order, I looked into this several times and wasn't able to reproduce the issue (signed up pftq first, then reregistered, did the same with test1, etc).  See the test board below:
http://www.pftq.com/smf/smf2/index.php?topic=3.0

If someone can let me know more details on the steps or try it on the test forum above, that would be helpful.
Title: Re: Event Registration Mod
Post by: pftq on August 20, 2015, 09:29:19 PM
I looked into that and it's a behavior that perhaps isn't well explained in the readme.  When you first sign up, you have a date registered time.  When you get near or past the event, however, it starts sorting by confirmation date, so those who confirm sooner can jump ahead of those who signed up but did not confirm yet.  I'm not quite sure how you're getting the signups to occur after the event date though.

@Kindred: I'll include a MIT license.  Thanks for catching the screenshots.  There's been a lot of passing the torch on this mod, so I was not aware they were in the page.
Title: Re: Event Registration Mod
Post by: Yasudia on September 06, 2015, 07:56:06 AM
Hello!  :) Just installed your mod, and it works fine until the point where I can click on it in the forum. There it leads to nowhere / blank page  ???
Also I have the Terms and Conditions twice in my event creation page.

Can you help a noobie here and tell me what I can do to fix this?

Thanks
Title: Re: Event Registration Mod
Post by: Deju on September 06, 2015, 08:54:18 AM
Is there anyway I could disable this sorting?  We don't use confirmation function and I'd like the registered time list to stay the same.

I looked into that and it's a behavior that perhaps isn't well explained in the readme.  When you first sign up, you have a date registered time.  When you get near or past the event, however, it starts sorting by confirmation date, so those who confirm sooner can jump ahead of those who signed up but did not confirm yet.  I'm not quite sure how you're getting the signups to occur after the event date though.
Title: Re: Event Registration Mod
Post by: pftq on September 06, 2015, 10:03:58 AM
Is there anyway I could disable this sorting?  We don't use confirmation function and I'd like the registered time list to stay the same.

I looked into that and it's a behavior that perhaps isn't well explained in the readme.  When you first sign up, you have a date registered time.  When you get near or past the event, however, it starts sorting by confirmation date, so those who confirm sooner can jump ahead of those who signed up but did not confirm yet.  I'm not quite sure how you're getting the signups to occur after the event date though.

Leave "Ask Confirmations X Days Before Event" set to zero.

Hello!  :) Just installed your mod, and it works fine until the point where I can click on it in the forum. There it leads to nowhere / blank page  ???
Also I have the Terms and Conditions twice in my event creation page.

Can you help a noobie here and tell me what I can do to fix this?

Thanks

Do you have a custom theme? You'll need to adjust your theme files manually.
Title: Re: Event Registration Mod
Post by: Yasudia on September 06, 2015, 10:32:42 AM
Do you have a custom theme? You'll need to adjust your theme files manually.

I do indeed, it's Greeny from SMF Tricks. But I applied all changes to Display.template.php as you stated in the read me files.
Title: Re: Event Registration Mod
Post by: Deju on September 06, 2015, 10:42:14 AM
That's not it.  We have all events set to 0 for confirmations/sort. I'm 98% sure this is a glitch in the programming.  As the event date passes (or equals) the current real date the registration list is flipped. 

See images below.

Leave "Ask Confirmations X Days Before Event" set to zero.
Title: Re: Event Registration Mod
Post by: pftq on September 06, 2015, 12:02:36 PM
I just rewrote the sorting mechanism as I'm not sure where the offending piece might be.  Please reinstall the mod and let me know if it helps.
Title: Re: Event Registration Mod
Post by: pftq on September 06, 2015, 12:05:04 PM
Do you have a custom theme? You'll need to adjust your theme files manually.

I do indeed, it's Greeny from SMF Tricks. But I applied all changes to Display.template.php as you stated in the read me files.

I don't have instructions for that in the readme.  Do you mind sharing your Display.template.php? Then I can see what might be wrong.
Title: Re: Event Registration Mod
Post by: Deju on September 06, 2015, 12:39:41 PM
pftq, thank you for your help on this.

I'm going to uninstall and get this.  Should I continue?
Title: Re: Event Registration Mod
Post by: pftq on September 06, 2015, 01:02:47 PM
Hi, after the uninstallation, I'd go through the Display.template.php and look for anything with "pftq" labeled near it to remove.  Feel free to send me your file via PM or email (pftq@pftq.com) and I'd be happy to clean it up for you.
Title: Re: Event Registration Mod
Post by: Deju on November 21, 2015, 09:18:53 PM
We've modded this mod to include an "Open On" timed signup opening option and "Membergroup selectivity" so you can choose only certain regular groups.

Would you like to add this to the public one?
Title: Re: Event Registration Mod
Post by: ttaattaa on December 01, 2015, 05:09:59 PM
Hi pftq!

I am installed successful your mod on our new 2.0.11 SMF forum.We use it in other forum (1.1) from many years. Our best mod, thank you.

Could you help me? On the new forum works the mod prefectly in calendar view and admin (in all the 4 theme), but we can't see the registration block on topic view... Where shoul I debug anz errors?

Cheers:
Attila from Hungary
Title: Re: Event Registration Mod
Post by: b-machinery on December 29, 2015, 08:06:16 AM
Hey pftq,

at first, thanks for the great mod, just the thing I was always looking for! I have it running on my test machine and it works perfect, except for a few things I am currently working on. One is that I want to give the event creator the ability to administrate the list by himself except of batch adding. Works. Next are a few texts that are not internationalized yet and a few changes when creating an event. Just simple things for now, but I am sure there are things to come ;)

Greetings from sunny bavaria ;)

PS: The bug with no comments when you have to agree to terms and conditions is still in the package for SMF2!
Title: Re: Event Registration Mod
Post by: GL700Wing on February 28, 2017, 05:57:50 AM
How to add AutoSuggest to the Registrant name field (handy when the option 'One Member Can Sign Up Multiple Names:' is set to 'Yes' as it means the forum member name entered should be correct).

In ./Themes/default/Display.template.php
Find:
Code: [Select]
echo "<input type='text' size='20' value='",($context['user']['is_guest']? '':$context['user']['name']),"' name='Registrant' /> </td>";

Replace with:
Code: [Select]
echo "<input type='text' size='20' value='",($context['user']['is_guest']? '':$context['user']['name']),"'
name='Registrant' id='Registrant' class='input_text' />";
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/suggest.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var oAddRegistrant = new smc_AutoSuggest({
sSelf: \'oAddRegistrant\',
sSessionId: \'', $context['session_id'], '\',
sSessionVar: \'', $context['session_var'], '\',
sSuggestId: \'Registrant\',
sControlId: \'Registrant\',
sSearchType: \'member\',
sTextDeleteItem: \'', $txt['autosuggest_delete_item'], '\',
bItemList: false
});
// ]]></script>';

echo '
</td>';

Title: Re: Event Registration Mod for 2.1RC2
Post by: PoML on April 21, 2019, 11:18:42 PM
Hi!

I have made this mod work on a 2.1RC2 forum with tinyportal installed.
It took some changes vs what is in the "manual install instructions", as there has been some major overhauls of the event functions.
If anybody can help me go from the edited files (using 'diff', I presume) to make a suggested mod for others to use than I am happy to share.
Title: Re: Event Registration Mod
Post by: Abavagada on April 29, 2019, 09:48:04 PM
I installed this on SMF 2.0.15 and it installed fine. I can add events and post them on the forum.

It sounds like people should be able to sign up for the event, but I can't find how that is done.

Clicking on the event from the calendar lets a person edit the event, but not sign up for it.

Am I missing something?
Title: Re: Event Registration Mod
Post by: GL700Wing on April 29, 2019, 10:03:48 PM
I installed this on SMF 2.0.15 and it installed fine. I can add events and post them on the forum.

It sounds like people should be able to sign up for the event, but I can't find how that is done.

Clicking on the event from the calendar lets a person edit the event, but not sign up for it.

Am I missing something?
Check the following:
Start date is later than today;
Maximum places is greater than 0;
'Event registration close' value allows registrations after today; and
One or more membergroups are selected.

Title: Re: Event Registration Mod
Post by: Abavagada on April 30, 2019, 07:35:15 AM
Thanks GL700Wing! I hadn't seen those options under the posting of the event.