ISSUE SUMMARY:
screencast.com/t/K1QGgrbIm
STEPS TO REPLICATE:
1 create group discussion
2 title, text, html editor
3 embed iframe code of youtube video
4 toggle to text view, video appears
5 save, video and iframe script disappears
6 tinyMCE plugin set to allow iframe
RESULT
EXPECTED RESULT to embed Youtube videos in group discussions
BROWSER chrome
Hi Stephen,
By default we disabled the embed code on any our text editor..
to enable it you need hack the code, this is the pointer look file components/com_community/libraries/core.php this function getInputFilter() and components/com_community/controllers/group.php this code :
$inputFilter = CFactory::getInputFilter(true, array('b','u','i','li','ul','ol', 'br', 'div', 'p', 'img', 'a', 'strong', 'em'));
Hi, Stephen.
Thank you for contacting us.
I'm sorry but iframes are not allowed in group discussions post.
Editor that is used on JomSocial pages is not TinyMCE but our own editor. And as iframes are potentially dangerous (they may load pages with malicious scripts) are not allowed. Rather add just link to a YT video (using chain icon from editor toolbar).
Hi Stephen,
#1 you can add iframe paramater on array variable $safeTags
#2 if you want to allow super user to use iframe, you can give the super admin condition on controller file groups.php like this :
if(COwnerHelper::isCommunityAdmin()){
$inputFilter = CFactory::getInputFilter(true, array('b','u','i','li','ul','ol', 'br', 'div', 'p', 'img', 'a', 'strong', 'em','iframe'));
}
else{
$inputFilter = CFactory::getInputFilter(true, array('b','u','i','li','ul','ol', 'br', 'div', 'p', 'img', 'a', 'strong', 'em'));
}
ehm, for quick solution find this code :
$discussion->message = $inputFilter->clean($discussion->message);
if(!COwnerHelper::isCommunityAdmin()){
$discussion->message = $inputFilter->clean($discussion->message);
}
1. I tried doing exactly as you said in groups.php,
2. please take a look at the screen shot.
screencast.com/t/R6fWGPWfKLn
3. Another problem we are have is that we can't delete the test discussions we are creating. Only through our database.
what is FTP access? I will help with it :)
regarding deleting issue, please you create new topic :)
Hi,
Is there any group which I can test? because I use login "Support" I cant access any group on your site, seems this is caused by 3rd party configuration, right ?
thank you!
ehm weird, my code is not working on your server, anwyay would you mind provide me phpmyadmin as well, please?