Attachment for Events

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 years 3 months ago #13870 by Roger
Attachment for Events was created by Roger
In each event you can send an attachment to the registrant. The tool tip tells me I have to put these documents into media/com_eventbooking. Is this folder supposed to be created automatically or do I have to do that on my own?
Could it be a problem since I'm using a German translation?

Thanks

Roger

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

More
12 years 3 months ago #13895 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Attachment for Events
Hi Roger

The folder will be created automatically during installation price. You can see it in ROOT_FOLFDER_OF_YOURSITE/media/com_eventbooking.

Regards,

Tuan

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 years 3 months ago #13898 by Roger
Replied by Roger on topic Re: Attachment for Events
Hi Tuan

Thanks for the quick answer. I found the folder. Unfortunately it is not visible from the media menu in the backend of the page, so all the files you want to use as attachments have to be moved to the site by FTP.

Roger

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

More
12 years 3 months ago #13926 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Attachment for Events
Yes, you are correct. For now, you will need to use FTP to upload the files to that folder !

Regards,

Tuan

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

  • Roger
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 years 3 months ago #13935 by Roger
Replied by Roger on topic Re: Attachment for Events
Hi Tuan

Ok, I will take it like that.

Thanks for your support

Roger

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

More
12 years 1 month ago #14980 by koldhands
Replied by koldhands on topic Re: Attachment for Events
Hi Tuan,

Is it possible to quickly change this folder configuration so it just uses the /image folder instead? Then the admin's of the sites can upload files themselves. It seems impossible for them to use it otherwise unless I provide FTP access for them.

Thanks,


Sean.

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

More
12 years 1 month ago #14982 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Attachment for Events
Hi Sean

If you want to change the folder, you will need to edit the code alitle :

1. Open the file components/com_eventbooking/helper/helper.php

2. Find the code below :
Code:
$path = JPATH_ROOT.DS.'media'.DS.'com_eventbooking' ;

3. Change it to :
Code:
$path = JPATH_ROOT.DS.'images';

After that, it will list all files in images folder .

Regards,

Tuan

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

More
12 years 1 month ago #14983 by koldhands
Replied by koldhands on topic Re: Attachment for Events
Perfect! Thanks for the quick answer!

Sean.

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

More
12 years 1 month ago #14984 by koldhands
Replied by koldhands on topic Re: Attachment for Events
Actually, one thing, does it also need changing in the email utility section for sending the attachment too? I assume so...

Thanks.

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

More
12 years 1 month ago #14985 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Attachment for Events
Ah, correct. You will need to edit the code in sendMails function as well . Find the line of code below (in the same file) :
Code:
JPATH_ROOT.DS.'media'.DS.'com_eventbooking'.DS.$event->attachment

Change it to :
Code:
JPATH_ROOT.DS.'images'.DS.$event->attachment

After that, it will work well .

Tuan

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

Moderators: Tuan Pham Ngoc