Author Topic: New Modul >> Registrationmanager  (Read 17370 times)

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
New Modul >> Registrationmanager
« on: May 31, 2010, 12:32:19 AM »
Hello friends,

I wrote a new modul with the odd name registrationmanager and furthermore i hope you can use it.

The primarily goal of the modul is that you can save events in the backend and the visitor can book it in the frontend.

The modul comes along with the following features:

Add Events with:
title
place description
max. of registrations
start & end definition
info url
some notices for the visitor
a signature that appears in the confirmation mail if the visitor has successfully booked a event
mail address that receives the confirmation mail
cc of the mail adress that receives the confirmation mail

You can separate the event in workshops.
Such a workshop is specified by:
title
start & end definition
description
max. of the registrations
info url
and a keyname which identifies the workshop in registrationlists

The workshops can grouped in workshop-groups
With workshop-groups you have the possibility to order the workshops in the frontend (in my case it is meaningful to group parallel workshops).
Moreover you can add a entrance fee.

If you have special entrance fee option you can give the visitors discount if he booked more than one workshop. To realise that you can arrange sets of workshop-groups including a special price. That gives you the flexibility to save every price-structure you have.

Last but not least you have an overview of the bookings in the backend. The modul contains a registration list and supports a print- and a excel export. In addition to that you can mark the registration as paid to get an overview the bookings of your event.

The module is designed for institutions which offers events such as seminars or conferences which are divided in workshops on more then one day. But you can use it also as booking module for a simple event.  

hoping that you can use the module feel free to leave a comment.

bye alexander

ps: if there is any need I can add a language file but at the moment there is only german version available.


UPDATE
Jun 09: Some bugfixes in view.php
Jun 10: do not generate some error messages if the log file is not writeable



[gelöscht durch Administrator]
« Last Edit: June 10, 2010, 12:10:41 AM by spawnferkel »

Offline quinto

  • Posts: 103
    • http://www.clubnumeric.org/
Re: New Modul >> Registrationmanager
« Reply #1 on: May 31, 2010, 01:18:28 AM »
Very nice features !
an english version would be great !

Then i'll translate it in french !


snark

  • Guest
Re: New Modul >> Registrationmanager
« Reply #2 on: May 31, 2010, 08:14:28 AM »
wow, this is great, I see a lot of use for this

I will do a dutch translation

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #3 on: May 31, 2010, 09:07:32 AM »
thanks for your response.

It will take a while adding the language files because the text is hard implemented in code in the current state and the next days I am going to the Rock am Ring Festival. :-)

here are system requirements:

mysql 4.0 and above (my costumer had that old version and it was very tricky because it does not support Subqueries. I think I can improve the speed extremely for higher versions)

PHP 5.2 and above

WebsiteBaker 2.7 and above


Offline oeh

  • Posts: 190
  • Gender: Male
  • German Pischer's, what's life without them?
Re: New Modul >> Registrationmanager
« Reply #4 on: May 31, 2010, 04:10:57 PM »
I'll do the Norwegian translation.
oeh ;-}>

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: New Modul >> Registrationmanager
« Reply #5 on: June 09, 2010, 12:08:25 PM »
Hello Alexander,

just giving try to install that module and I am getting this warning while installation:

Warning: file_put_contents(C:\xampp\htdocs\designthings\temp\unzip/data/log.php) [function.file-put-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\designthings\temp\unzip\info.php on line 30


The module is installed anyway.

Trying to add an event, I put all the Info into the form and then do SAVE, results in the following warning:
Warning: file_put_contents(C:\xampp\htdocs\designthings\modules\registration4events/data/log.php) [function.file-put-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\designthings\modules\registration4events\info.php on line 30

The created Event is shown in frontend anyway.

The Module is very interesting.

Some hints and questions:
- is there a double opt in used with this module? (means: the user registers and recieves a confirmation email and after putting the confirmation link he is added into the list)
- is there a way to easily change the output HTML in frontend as the css?
- is there a way where I can change (add / delete / change) required fields?

Nice work so far.
I really like the idea behind it and will have a further look into the code shortly.

Best regards,
Stefek
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline crnogorac081

  • Posts: 1882
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #6 on: June 09, 2010, 01:40:20 PM »
I am wondering why there are 2 same .zip files in first post..

I am looking forward to test this..

cheers
no bb in signature

Offline BlackBird

  • Posts: 2573
Re: New Modul >> Registrationmanager
« Reply #7 on: June 09, 2010, 03:28:01 PM »
I think the larger one is the corrected one?

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #8 on: June 10, 2010, 12:04:42 AM »
Hi folks,

thanks for responding.

I thought that the new file will overwrite the old file if both have the same name. Now you can download only the new version.

The present version generates no error while installing or uninstalling the modul.

You can find a frontend.css in the folder as in every other modul i know.

TODOs:
- Make an english language file
- Mark the fields in the personal data section if they are required or not
- Seperate the layout from the code

@Stefek: Thanks for the interesting ideas. I will concentrate primarily in the TODOs above although the double-opt mechanism is a beautiful way preventing some wrong email inputs.

bye for now

alexander

Offline seagull

  • Posts: 79
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #9 on: June 12, 2010, 03:42:49 PM »
I like to test and use this module but i get the following error at the frontend and the page is not showing:

Quote
Notice: Undefined variable: registration4events in /var/www/vhosts/***.nl/httpdocs/modules/registration4events/view.php  on line 54

Fatal error: Call to a member function getEvents() on a non-object in /var/www/vhosts/***.nl/httpdocs/modules/registration4events/view.php on line 54

php 5.3  mysql 5 wb 2.8.1
Backend works perfect with no errors.

Jan

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #10 on: June 13, 2010, 12:55:49 PM »
Hi Jan,
thanks for testing. I will have a look to that problem but it is really an evil one. What kind of error do you get if you press the magnifying glass in the overview of the events in the backend?

bye

alex

Offline seagull

  • Posts: 79
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #11 on: June 13, 2010, 01:27:25 PM »
Alex,
Then i get the same error:
Quote
Notice: Undefined variable: registration4events in /var/www/vhosts/d***.nl/httpdocs/modules/registration4events/view.php on line 54

Fatal error: Call to a member function getEvents() on a non-object in /var/www/vhosts/d***.nl/httpdocs/modules/registration4events/view.php on line 54

thanks, Jan

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #12 on: June 13, 2010, 02:37:22 PM »
hi. that is somehow impossible. look your frontend url look like:
http://xyz.de/pages/a-page.php?action=personalinformation&event=1


bye

alex

Offline seagull

  • Posts: 79
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #13 on: June 13, 2010, 03:13:34 PM »
Alex,
one thing i learned that nothing is impossible :-D
Sure, the same error on the front and backend.

I figured out that the problem is in my template.
I called page_content(1) in my index.php and also with ob_get() in a include.php(a file with additional settings)
Somehow registrationmanager does not like that, for the other modules worked properly.

I changed my template and now registrationmanager is OK!
i'll keep on testing, it looks very good, nice job!
thanks, Jan

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #14 on: June 14, 2010, 10:11:41 AM »
nice to hear.

bye

alex


Btw: I also use ob_get() and the other stuff in my template with no errors. I cannot imagine that this causes the problem.

Offline pcwacht

  • Posts: 2923
  • Gender: Male
    • Dutch ICT info
Re: New Modul >> Registrationmanager
« Reply #15 on: July 06, 2010, 08:42:22 AM »
to correct :
Quote
Notice: Undefined variable: registration4events in /var/www/vhosts/***.nl/httpdocs/modules/registration4events/view.php  on line 54

Fatal error: Call to a member function getEvents() on a non-object in /var/www/vhosts/***.nl/httpdocs/modules/registration4events/view.php on line 54

I think you need to change lines 33+34:
Code: [Select]
require_once(dirname(__FILE__)."/info.php");
require_once(dirname(__FILE__)."/init.php");
to
Code: [Select]
require_once(WB_PATH."/info.php");
require_once(WB_PATH."/init.php");
Couldn't test it due to not getting same error ;)

The dirname(__FILE__) might be the culprit when used with ob_get


Have fun,
John
http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....

Offline spawnferkel

  • Posts: 96
  • Gender: Male
  • With my heart an my keyboard
Re: New Modul >> Registrationmanager
« Reply #16 on: July 06, 2010, 09:25:50 AM »
Hi John,

thanks for your response.

The error also occurs in my installation and I worte already a bugfix for that problem and update the version if my template system is runnig.

bye

alex

Offline BlackBird

  • Posts: 2573
Re: New Modul >> Registrationmanager
« Reply #17 on: August 31, 2010, 05:24:11 PM »
This module does not work with WB Portable here, because it doesn't regard the mySQL port. Please check registration4events .class.php, function __construct(), new PDO()

In my case, there's a local mySQL database running on port 3306, while the mySQL database that comes with WB Portable uses port 7188.

If someone has the same problem, try to change line 21:

$dbh = new PDO(DB_TYPE.':host='.DB_HOST.';dbname='.DB_NAME.';port=7188', DB_USERNAME, DB_PASSWORD);

Offline BlackBird

  • Posts: 2573
Re: New Modul >> Registrationmanager
« Reply #18 on: August 31, 2010, 05:38:13 PM »
Found another one... line 655:

Code: [Select]
$sql = "SELECT mod_registration4events_events_workshops.* FROM ".TABLE_PREFIX."mod_registration4events_anmeldung_workshops LEFT JOIN ".TABLE_PREFIX."mod_registration4events_events_workshops ON ".TABLE_PREFIX."mod_registration4events_events_workshops.id = workshop WHERE anmeldung = ".$value['id'];
Should be:

Code: [Select]
$sql = "SELECT ".TABLE_PREFIX."mod_registration4events_events_workshops.* FROM ".TABLE_PREFIX."mod_registration4events_anmeldung_workshops LEFT JOIN ".TABLE_PREFIX."mod_registration4events_events_workshops ON ".TABLE_PREFIX."mod_registration4events_events_workshops.id = workshop WHERE anmeldung = ".$value['id'];
Same in line 627.

Offline BlackBird

  • Posts: 2573
Re: New Modul >> Registrationmanager
« Reply #19 on: August 31, 2010, 05:49:38 PM »
And another one... There's a closing </div> with no opening <div> in view.php. I'm still searching for it, but "count" says 39 opening, 40 closing. Kills my layout. :roll:

Offline web-based-media

  • Posts: 100
  • Gender: Male
    • http://www.web-based-media.com
Re: New Modul >> Registrationmanager
« Reply #20 on: December 22, 2010, 07:19:33 AM »
Hi,
I just tried to install this module, as it could be exactly what I am looking for, but nothing happened. No error message, no success message. And it is not listed under modules.
But if I look on the server, I see the files in the modules directory on the server.
Any ideas?
I am using WB 2.8.1

Offline BlackBird

  • Posts: 2573
Re: New Modul >> Registrationmanager
« Reply #21 on: December 22, 2010, 12:16:22 PM »
Have you tried to upload via FTP and call the install.php from the backend?

Edit: This can be a timeout problem that may occur on big modules or modules with many actions in the install.php.

Offline iradj

  • Posts: 353
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #22 on: December 22, 2010, 03:58:41 PM »
Hi

I have not managed to install. I normally try to module installation and FTP transfer, and call the index.php in the backend. Both times I get a white screen.

Iradj

Offline web-based-media

  • Posts: 100
  • Gender: Male
    • http://www.web-based-media.com
Re: New Modul >> Registrationmanager
« Reply #23 on: December 22, 2010, 04:01:08 PM »
Well I had the same problem, but finally I managed to get it working. I uses the admin interface and called the install.php and uninstall.php several times. And then it worked.

Offline iradj

  • Posts: 353
  • Gender: Male
Re: New Modul >> Registrationmanager
« Reply #24 on: December 22, 2010, 05:40:22 PM »
The module is installed after your description yet. But now when I create a page with this module, I get the message:
Code: [Select]
Block: Hauptblock Modul: registration4events ID: 101
Error!: could not find driver