- Posts: 121
- Thank you received: 1
Video in Event Description
- ozwest
- Topic Author
- Offline
- Premium Member
-
Less
More
13 years 9 months ago #10383
by ozwest
Video in Event Description was created by ozwest
I have downloaded the latest Event Booking 1.4.0 and created a new event.
In the description I wanted to embed a YouTube video as it explains more than many words can do.
I am using the latest JCE editor to do so but the video does not show at all. When I go back and open up the document again, there is no trace of the video I just embedded.
Can you help please?
Regards,
Petra
In the description I wanted to embed a YouTube video as it explains more than many words can do.
I am using the latest JCE editor to do so but the video does not show at all. When I go back and open up the document again, there is no trace of the video I just embedded.
Can you help please?
Regards,
Petra
Please Log in or Create an account to join the conversation.
- joemiller
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
13 years 9 months ago #10398
by joemiller
Replied by joemiller on topic Re: Video in Event Description
I'm having exactly the same problem using the TinyMCE editor. I have disabled HTML filtering for superusers, so I can add Youtube video to articles, but the problem still appears when editing events.
Please Log in or Create an account to join the conversation.
- ozwest
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 1
13 years 9 months ago #10401
by ozwest
Replied by ozwest on topic Re: Video in Event Description
I too have disabled HTML filtering for Super Users ... but this has to be done in the articles section, so I can not see how this might apply to Event Booking component.
I add the YouTube video and it shows but when I save and reopen the event it is completely gone!!!
Same happens even when I change the editor to TinyMCE.
I add the YouTube video and it shows but when I save and reopen the event it is completely gone!!!
Same happens even when I change the editor to TinyMCE.
Please Log in or Create an account to join the conversation.
- ozwest
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 1
13 years 9 months ago #10402
by ozwest
Replied by ozwest on topic Re: Video in Event Description
I came up with the idea to create a module and place the video in there.
Then I reference the module by using {loadposition xxx} but this also does not work.
Finally I placed a simple article link to the video on YouTube which sort of helps in this emergency but is not an elegant solution.
Then I reference the module by using {loadposition xxx} but this also does not work.
Finally I placed a simple article link to the video on YouTube which sort of helps in this emergency but is not an elegant solution.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 9 months ago #10403
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Video in Event Description
That's not good solution. Could you try the solution below :
1. Open the file administrator/components/com_eventbooking/controller.php
2. Looks at save_event function (at line 306 if you are using latest version) .
3. Find the line of code below (at line 307):
Change it to :
After that, it should work !
Please try that and let me know the result !
Regards,
Tuan
1. Open the file administrator/components/com_eventbooking/controller.php
2. Looks at save_event function (at line 306 if you are using latest version) .
3. Find the line of code below (at line 307):
Code:
$post = JRequest::get('post' , JREQUEST_ALLOWHTML);
Change it to :
Code:
$post = $_POST ;
After that, it should work !
Please try that and let me know the result !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- ozwest
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 1
13 years 9 months ago #10404
by ozwest
Replied by ozwest on topic Re: Video in Event Description
OK, I found the following on line 310:
function save_event() {
$post = JRequest::get('post' , JREQUEST_ALLOWHTML);
$model = $this->getModel('event') ;
$cid = $post;
$post = (int) $cid[0];
$ret = $model->store($post);
if ($ret) {
$msg = JText::_('EB_EVENT_SAVED');
} else {
$msg = JText::_('EB_EVENT_SAVE_ERROR') ;
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_events', $msg);
}
and I have changed it to:
function save_event() {
$post = $_POST ;
$model = $this->getModel('event') ;
$cid = $post;
$post = (int) $cid[0];
$ret = $model->store($post);
if ($ret) {
$msg = JText::_('EB_EVENT_SAVED');
} else {
$msg = JText::_('EB_EVENT_SAVE_ERROR') ;
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_events', $msg);
}
Now some window displays but not the YouTube Video, here is a link to the event in question. bodyawarenessandenergy.com/component/eve...vent_id=1&Itemid=435
function save_event() {
$post = JRequest::get('post' , JREQUEST_ALLOWHTML);
$model = $this->getModel('event') ;
$cid = $post;
$post = (int) $cid[0];
$ret = $model->store($post);
if ($ret) {
$msg = JText::_('EB_EVENT_SAVED');
} else {
$msg = JText::_('EB_EVENT_SAVE_ERROR') ;
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_events', $msg);
}
and I have changed it to:
function save_event() {
$post = $_POST ;
$model = $this->getModel('event') ;
$cid = $post;
$post = (int) $cid[0];
$ret = $model->store($post);
if ($ret) {
$msg = JText::_('EB_EVENT_SAVED');
} else {
$msg = JText::_('EB_EVENT_SAVE_ERROR') ;
}
$this->setRedirect('index.php?option=com_eventbooking&task=show_events', $msg);
}
Now some window displays but not the YouTube Video, here is a link to the event in question. bodyawarenessandenergy.com/component/eve...vent_id=1&Itemid=435
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 9 months ago #10405
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Video in Event Description
Hi
I am sorry . We will have to modify the code alitle . The final solution is :
1. Open the file administrator/components/com_eventbooking/controller.php
2. Looks at save_event function (at line 306 if you are using latest version) .
3. Find the line of code below (at line 307):
Change it to :
I did the modification on your site and It works well now !
Regards,
Tuan
I am sorry . We will have to modify the code alitle . The final solution is :
1. Open the file administrator/components/com_eventbooking/controller.php
2. Looks at save_event function (at line 306 if you are using latest version) .
3. Find the line of code below (at line 307):
Code:
$post = JRequest::get('post' , JREQUEST_ALLOWHTML);
Change it to :
Code:
$post = JRequest::get('post' , JREQUEST_ALLOWRAW);
I did the modification on your site and It works well now !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- joemiller
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
13 years 9 months ago #10406
by joemiller
Replied by joemiller on topic Re: Video in Event Description
Hi, thanks for that suggestion. It works, but the problem now is that ANY user can now insert any raw HTML into an event, which kind of makes the user level filtering useless. Is there no way that this component can use the built-in Joomla filtering instead of filtering its own code?
Please Log in or Create an account to join the conversation.
- ozwest
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 1
13 years 9 months ago #10407
by ozwest
Replied by ozwest on topic Re: Video in Event Description
Hi Tuan
Wonderful, it does work well AND it has added bonuses.
I now can justify the text ... was not taking it before either.
The style of the basic template is copied over and extends to your component.
Thank you. I assume you will update the component soon and make it available for download?
Petra
Wonderful, it does work well AND it has added bonuses.
I now can justify the text ... was not taking it before either.
The style of the basic template is copied over and extends to your component.
Thank you. I assume you will update the component soon and make it available for download?

Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.