Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Falk
    Post made: 1
  • SnakeEye
    Post made: 2
  • dimki
    Post made: 2
  • zizub
    Post made: 1

Related Threads

403 Access denied Shoutbox Admin
updated 2 months ago

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

Adding Videos in News Admin

This forum is for questions regarding the addition of content to your site

5 Replies 255 Views Last Updated on 19 days ago

SnakeEye


Junior Member

#1

Posted 29 days ago

I am having a problem when I try to use the tinymce in the news admin for adding videos into news stories using v7.02.07 It appears to be a browser plugin issue. See images below:
www.jollyrogersgaming.com/images/newspost-error1.jpg

www.jollyrogersgaming.com/images/newspost-error2.jpg

www.jollyrogersgaming.com/images/newspost-error3.jpg

No matter what I do it will not embed a youtube video or a video with a direct link to the .flv or .swf file.
If I select to embed an mp4 video it wants to use a plugin for quicktime and Chrome doesn't support pretty much any plugins so it is not view-able in Chrome and in fact if I try to add the video while using Chrome, the system removes the coding so the only thing that can be seen is whatever text was included with the news post. If I use IE or Firefox when making the news post, it will keep the coding and I can see the video when I go read the post in IE or Firefox but if I try to read the news post in Chrome I can see the news text but only shows a place marker for the video and tells me "This plugin is not supported" because it wants to use a Quicktime plugin to display the video.

I need to know if there is a way to make changes so that any video embedded into a news post will either use our sites own video player instead of relying on a plugin or make it so that it will at the very minimum use html5 to display the video. We have a video gallery addon that we use for adding videos that uses it's own video player and will play youtube videos or videos from a direct file source and use the addons video player to display the videos. There should be a way to make it so you can do the same thing when adding videos into news posts from the news admin.

Posts: 40

Joined: 22/01/2011

dimki


Senior Member

#2

Posted 29 days ago

hm update this sometimes to become

maybe somewhere here
or trick here from
/includes/jscripts/tiny_mce/plugins/media/js
Edited by dimki on 25-03-2017 02:09

Posts: 267

Joined: 29/04/2011

SnakeEye


Junior Member

#3

Posted 22 days ago

The problem is not the use of tinymce although that could play a part in the problem. The problem is that the code for adding and displaying the news when you add videos into the news post it uses plugins. This is a problem because as I stated, Chrome does not support any plugins. The code needs to be edited so that when you post news, it is cross browser friendly and doesn't rely on the use of plugins.

Posts: 40

Joined: 22/01/2011

dimki


Senior Member

#4

Posted 22 days ago

https://github.co...in-youtube


```html
###Configuration
Code Gist: Download source  



<script type="text/javascript">
tinymce.init({
   selector: "textarea",
   plugins: [
         "advlist autolink lists link image charmap print preview anchor",
         "searchreplace visualblocks code fullscreen",
         "insertdatetime media table contextmenu paste youtube"
         ],
   toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image| youtube",
   extended_valid_elements: "+iframe[src|width|height|name|align|class]",
   });
</script>

Edited by dimki on 01-04-2017 15:35

Posts: 267

Joined: 29/04/2011

Falk


Super Admin

#5

Posted 19 days ago

Id use an iframe if nothing else works. perhaps a colorbox / fancybox solution to it. But naturally you would need to make the HTML your self and not use Tiny for editing the news items.

Merged on Apr 04 2017 at 08:45:16:
Here is a standard iframe example for video sharing ,

Code Gist: Download source  

<iframe width="560" height="315" src="https://www.youtube.com/embed/9qoqcEB6_D8" frameborder="0" allowfullscreen></iframe>

Edited by Falk on 04-04-2017 08:45

Posts: 3662

Joined: 27/09/2005

zizub


Member

#6

Posted 19 days ago

I'm currently studying these methods of inserting videos on the my site:
Responsive way with jQuery: https://schoberg.net/2015/08/fast-agile-youtube...th-jquery/
There is also another way, but in it, the video is not expanded to full screen: https://www.sitepoint.com/faster-youtube-embeds...avascript/

Posts: 91

Joined: 02/05/2012

Jump to Forum:
6 users are online
0 member and 6 guests