Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » event calendar - signups

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4460 Views
  • janulka
    Avatar
    Community Member
    80 Posts

    event calendar - signups Link to this post

    Hello,

    Would it be possible for visitors on a website to signup for events created in event calendar?

    Since this is for a website which provides courses, ideally with max number of signups allowed per event.

    Also, the dream would be, if the signup form and corresponding user group/mailing list would automatically be created for each event.

    I have minimum knowledge of PHP, so if anybody would help me with snippets, this would be awesome

    Thanks a lot in advance for help.

  • UncleCheese
    Avatar
    4085 Posts

    Re: event calendar - signups Link to this post

    Yeah, I do this all the time. I'll send you some code when I get a chance.

  • mi3ll
    Avatar
    Community Member
    23 Posts

    Re: event calendar - signups Link to this post

    I would also like to see the code for this... I tried to accomplish this but my code didn't work...

  • UncleCheese
    Avatar
    4085 Posts

    Re: event calendar - signups Link to this post

    Hello, sorry it took me a while to post this. I've attached some example code for a site I built with event registration. Here is the link to the site for reference:

    http://vmec.org/workshops

    I've taken out some of the things that you won't need. Should still work okay. I figure you can customize it the way you like and just use this code as a model. Let me know how it works. Good luck!

    Attached Files
  • janulka
    Avatar
    Community Member
    80 Posts

    Re: event calendar - signups Link to this post

    awesome, I will try it, thanks a lot!!

  • janulka
    Avatar
    Community Member
    80 Posts

    Re: event calendar - signups Link to this post

    Hello,

    Finally, the website is good to go, and I am working on signups for events

    I am testing your original code, some small things like removing dataobjects or includes which i didnt have, went ok..

    But then I am running into this error after i flushed templates:

    [Notice] Trying to get property of non-object
    GET /testworkshop/2010-02-09

    Line 34 in /home/dinhurlg/public_html/mysite/code/Workshop.php

    Source

    25       $f->addFieldToTab("Root.Content.Main", new TextField('WorkshopCost','Workshop Cost'),'Content');
    26       $f->addFieldToTab("Root.Content.Main", new TextField('WorkshopDiscount','Workshop Discount'),'Content');
    27       
    28       
    29       return $f;
    30    }
    31
    32    public function RegisterLink()
    33    {
    34       return DataObject::get_one("RegistrationPage")->URLSegment . "/" . $this->ID;
    35    }
    36    
    37    
    38 }
    39
    40 class Workshop_Controller extends CalendarEvent_Controller

    Trace

    * Workshop->RegisterLink()
    * call_user_func_array(Array,Array)
    Line 550 of Object.php
    * Object->__call(RegisterLink,Array)
    * Workshop_Controller->RegisterLink()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(RegisterLink,,1)
    Line 171 of .cache.home.dinhurlg.public_html.themes.din-hundeskole.templates.Layout.Workshop.ss
    * include(/tmp/silverstripe-cache-home-dinhurlg-public_html/.cache.home.dinhurlg.public_html.themes.din-hundeskole.templates.Layout.Workshop.ss)
    Line 357 of SSViewer.php
    * SSViewer->process(Workshop_Controller)
    Line 349 of SSViewer.php
    * SSViewer->process(Workshop_Controller)
    Line 172 of Controller.php
    * Controller->handleAction(HTTPRequest)
    Line 129 of RequestHandler.php
    * RequestHandler->handleRequest(HTTPRequest)
    Line 119 of Controller.php
    * Controller->handleRequest(HTTPRequest)
    Line 29 of ModelAsController.php
    * ModelAsController->handleRequest(HTTPRequest)
    Line 277 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(/testworkshop/2010-02-09)
    Line 118 of main.php

    And i have to admit that I have no idea what this error means..

    Help is appreciated ..

  • UncleCheese
    Avatar
    4085 Posts

    Re: event calendar - signups Link to this post

    Umm... are there any RegistrationPage records in the database?

  • janulka
    Avatar
    Community Member
    80 Posts

    Re: event calendar - signups Link to this post

    I am not quite sure what I am looking for.. yes, there is RegistrationPage table in the database, with fields ID and ThankYouMessage, but thats it, I guess..

    Anywhere else I should be looking?

    Attached Files
    4460 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.