EB registered user not bringing up details

  • Mike
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #29213 by Mike
Hi, I have 2 little queries.

(1) When I try to register for an event, and am already registered on the website, but NOT signed on to the website, my details are not populated in the registration screen, even though the message "If you have an account already, just enter username and the system will assign this registration to your account " is displayed.

If I log onto the website, the detais DO appear properly, and the message "If you have an account.. etc", does NOT appear, which of course is good.

So my issue is at (1) above.

My OTHER issue is on validation of a custom field date on the registration screen.

(2) I have defined a Custom Field (eb_Date_Of_Birth ) which is a datetime field.

The calendar selection for this field works fine, but I want to validate it in the case where the user does not use the calendar, and just keys it in. (if a bad date is entered, the component accepts it, but it causes problems in the database, as you would expect).

I cannot find where to put the code for validation... could you please give me a hint on which scripts, and where to put this code?

I can maybe come up with the code myself (I think)

regards
Mike

.....and society inscribe on its banners...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #29237 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: EB registered user not bringing up details
HI

1 => The extension could not populate the detail on registration if you just only enter username, it can only populate the data if you are logged in. Anyway, I have an idea to improve the registration process and will implement it , have it available in the extension in less than two weeks from today and that will solve your issue. So we won't discuss more about it, just wait for me, please.

2=> The solution is editing custom field class. The steps are :

- Open the file components/com_eventbooking/helper/fields.php

- Find the function _renderDateTime

- Find the code below :
Code:
<?php echo JHTML::_('calendar', $row->default_values, $row->name, $row->name) ; ?>

- Change it to :
Code:
<?php echo JHTML::_('calendar', $row->default_values, $row->name, $row->name, '%Y-%m-%d', array('readonly' => 'true')) ; ?>

By doing that, users won't be able to enter the date into the textbox. They can only choose the date by clicking on calendar icon and that will solve the issue .

Hope this help

Tuan

Please Log in or Create an account to join the conversation.

  • Mike
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #29273 by Mike
Tuan,
Thank you so much.... No 2... worked like magic of course.

Interested to see what change you make for No 1.

thanks again!

Mike

I

Tuan Pham Ngoc wrote: HI

1 => The extension could not populate the detail on registration if you just only enter username, ....... SNIP SNIP SNIP........ just wait for me, please.

2=> The solution is editing custom field class. The steps are :

- Open the file components/com_eventbooking/helper/fields.php

....... SNIP SNIP SNIP........... They can only choose the date by clicking on calendar icon and that will solve the issue .
Tuan


.....and society inscribe on its banners...

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #40459 by Andrew
Hi Tuan,

How does this work in the latest EB? Can't seem to find that line in this file.

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #40460 by Andrew
Sorry, please ignore that. I however cannot get it to force only selection from the drop down calendar. It is still allowing input in checkbox, which in turn is allowing people to enter all sorts of date formats.

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #40481 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: EB registered user not bringing up details
Hi

Submit support ticket sending us admin and FTP account of your site. I will edit the code to make it works for you !

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 2 weeks ago #40562 by Emma Richardson
Replied by Emma Richardson on topic Re: EB registered user not bringing up details
I need this too but my site does not as yet have outside world access - can you post the code change?

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc