How do we post videos ( youTube ) ect on the forums?
Hi,
It's not possible to do this yet, but you can post a link.
Regards,
Max
It's not possible to do this yet, but you can post a link.
Regards,
Max
Find /components/com_chronoforums/chronoforums/helpers/bbcode.php
after line 132 add:
after line 154 add:
This will interpret the BB code tage of [youtube]VIDEO ID[/youtube]
Give me a few more mins and ill post the changes needed to add corresponding button to the editor.
after line 132 add:
'/\[youtube\](.*?)\[\/youtube\]/msi',
after line 154 add:
'<iframe width="560" height="315" src="https://www.youtube.com/embed/\1?showinfo=0" frameborder="0" allowfullscreen></iframe>',
This will interpret the BB code tage of [youtube]VIDEO ID[/youtube]
Give me a few more mins and ill post the changes needed to add corresponding button to the editor.
as promised the code to add the button to the editor:
Find /components/com_chronoforums/chronoforums/helpers/bbeditor.php
line 39 replace with:
[code]var bbtags = new Array('','','','','','','
Insert after line 56:
You are responsible for providing and setting your own button icon.
Find /components/com_chronoforums/chronoforums/helpers/bbeditor.php
line 39 replace with:
[code]var bbtags = new Array('','','','','','','
','
','','[ /code]','[list]','[/list]','[list=]','[/list]','
','','','[flash=]', '[/flash]','','','This is private content
','[youtube]','[/youtube]');
- please remove the space in [ /code]
Insert after line 56:
<a title="<?php echo l_('CHRONOFORUMS_INSERT_YOUTUBE'); ?>: [youtube]youtube_video_id[/youtube]" onclick="bbstyle(24); return false;" name="addbbcode24" accesskey="v" class="btn btn-default btn-sm gcoreTooltip"><i class="fa fa-youtube-o fa-fw fa-lg"></i></a>
You are responsible for providing and setting your own button icon.
and based on the last post apparently these is a bug to report regarding escaping special chars in this forum....
line 39 that has the list of tags, just add '[youtube]','[/youtube]' to the end.
And the font they use to supply the button icons has a youtube icon already included so if you change the class from fa-youtube-o to read fa-youtube-play it will automatically add the buttons icon. If you add other video services icon class names can be found here: http://astronautweb.co/snippet/font-awesome/
Thanks for the changes, I have added this to the next update!
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.