[SOLVED] a couple of questions/issues

More
13 years 10 months ago - 13 years 10 months ago #9841 by hgi
After installing and testing Events Booking I have to admit that this is an awesome component. But there are still a few questions:

1. The Terms&Conditions-Popup doesn't work in FireFox 4 (but it is working in IE, Safari and in Chrome). Firebug brings up the following error:
Code:
uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOM3Node.compareDocumentPosition]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://DOMAIN/media/system/js/mootools-core.js :: <TOP_LEVEL> :: line 1" data: no]
mootools-core.js sounds like a javascript-conflict. Any ideas how I can resolve this? I use Joomla! 1.6.3 with the template "Nano" from Yootheme

2. I'm desperately looking for an upload-field in registration info. Is there a way to implement this?

3. Is it possible to change the sorting of the fields in registration info? I need the coupon-field to be one of the last fields.

Thank you in advance for any help/hints
Last edit: 13 years 10 months ago by hgi.

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

More
13 years 10 months ago #9849 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: a couple of questions/issues

1. The Terms&Conditions-Popup doesn't work in FireFox 4 (but it is working in IE, Safari and in Chrome). Firebug brings up the following error:


=> I think there is a javascript conflict between mootools and one of javascript file in your site template . To be honest, I am not good at javascript, so fixing this conflict is difficult and time-cosuming. Could we modify the code alitle so that it will open the article in a new window instead of a popup ? That would save me much time .

2. I'm desperately looking for an upload-field in registration info. Is there a way to implement this?


=> Basically, we will need to implement a new custom field type . That's one of the new feature which I will implement in the next version (need to wait for 2 weeks to have it) . It is not available for now .

3. Is it possible to change the sorting of the fields in registration info? I need the coupon-field to be one of the last fields.


=> Sorry, It is not posible . If you want to change the fields positon, you will need to edit the code alitle . Looks at the code at components/com_eventbooking/views/register/tmpl folder, you will see the code and should be able to modify the code easily to change the position of coupon fields .

Regards,

Tuan

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

More
13 years 10 months ago #9855 by hgi
Replied by hgi on topic Re: a couple of questions/issues
to 1.: The popup is a 'nice-to-have', nothing more. T&C in a new window is fine for me. So how can we fix this?

to 2.: So I guess I'll have to wait :-) These 2 weeks - is this a fixed release date or rather a rough estimation?

to 3.: I found and fixed that. Thank you very much!

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

More
13 years 10 months ago #9857 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: a couple of questions/issues
Hi

1=> Open the files in components/com_eventbooking/views/confirmation/tmpl (there are serveral files) . Find the code below :
Code:
<a class="modal" title="<?php echo JText::_('EB_TERM_AND_CONDITION'); ?>" href="index.php?option=com_content&view=article&id=<?php echo $articleId; ?>&tmpl=component&format=html">

Change it to
Code:
<a target="_blank" title="<?php echo JText::_('EB_TERM_AND_CONDITION'); ?>" href="index.php?option=com_content&view=article&id=<?php echo $articleId; ?>&tmpl=component&format=html">

After that, it should works fine .

2 => My estimation . But it won't change much .

3 => Great :) .

Tuan

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

More
13 years 10 months ago #9861 by hgi
Replied by hgi on topic Re: a couple of questions/issues
is there a way to resize that new window to - let's say - 400 x 400 px?

I know this could be done by JS but my JS-knowledge is, uhm, non-existent....

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

More
13 years 10 months ago #9923 by hgi
Replied by hgi on topic Re: a couple of questions/issues
Just to close this topic:
I solved the thing with the js-t&c-popup and the code looks like this:
Code:
<tr> <td colspan="2"> <input type="checkbox" name="accept_term" value="1" class="inputbox" /><?php echo JText::_('EB_ACCEPT'); ?><a href="javascript: void(0)" onclick="window.open('index.php?option=com_content&view=article&id=<?php echo $articleId; ?>&tmpl=component&format=html', '','width=500, height=600, scrollbars=1');return false;"><strong>Terms & Conditions</strong>.</a> </td> </tr> <?php } ?>

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

More
13 years 10 months ago #10001 by cork
Replied by cork on topic Re: a couple of questions/issues
hgi wrote:

Just to close this topic:
I solved the thing with the js-t&c-popup and the code looks like this:

Code:
<tr> <td colspan="2"> <input type="checkbox" name="accept_term" value="1" class="inputbox" /><?php echo JText::_('EB_ACCEPT'); ?><a href="javascript: void(0)" onclick="window.open('index.php?option=com_content&view=article&id=<?php echo $articleId; ?>&tmpl=component&format=html', '','width=500, height=600, scrollbars=1');return false;"><strong>Terms & Conditions</strong>.</a> </td> </tr> <?php } ?>


Which file in which directory is this code?

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

More
13 years 7 months ago #11535 by BorderC
Replied by BorderC on topic Re: [SOLVED] a couple of questions/issues
Any answer to the last post???

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

More
13 years 7 months ago #11543 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: [SOLVED] a couple of questions/issues
Hi

The files are on components/com_eventbooking/views/confirmation/tmpl folder. Depend on your settings :

1. If you set Enable Multiple Booking to Yes, the file need to be modified is cart.php (in the above folder) .

2. If you don't use Multiple Booking, the file need to be modified is default.php and group.php

Hope this help !

Tuan

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

More
13 years 7 months ago #11544 by BorderC
Replied by BorderC on topic Re: [SOLVED] a couple of questions/issues
A last question to hgl:

You write:

I solved the thing with the js-t&c-popup and the code


What are you referring to (js-t&c-popup)? A plugin?

Your advise is most welcome!

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

Moderators: Tuan Pham Ngoc