Anyone know of a MOD that will allow the embeding of videos from Youtube, Porn Hub, X-Videos, and other places so they can be posted into the site directly?
I know Rayzz has a plugin that will allow me to link to those sites and watch the vids on my site, but the users are questing embedable content.
You don't need a mod, you just have to change a few things in 2 files. This is NOT the best way to do this and you should visit TinyMCE's web site and read up on filters and whitelisting. If you make the changes below, it allows all kinds of potentially unsafe content to be posted. The right way to do things is to add filters to TinyMCE so that embedded content is allowed only from sites that you trust. In my opinion, you are asking for big trouble if you allow embedded content from porn sites.
1. plugins/safehtml/safehtml.php
Find This:
var $deleteTags = array(
'applet', 'base', 'basefont', 'bgsound', 'blink', 'body',
'embed', 'frame', 'frameset', 'head', 'html', 'ilayer',
'iframe', 'layer', 'link', 'meta', 'object', 'style',
'title', 'script',
);
Change To This:
var $deleteTags = array(
'applet', 'base', 'basefont', 'bgsound', 'blink', 'body',
'frame', 'frameset', 'head', 'html', 'ilayer',
'iframe, 'layer', 'link', 'meta', 'style',
'title', 'script',
);
This will stop safeHTML from stripping out any embed and object tags when editing posts with TinyMce.
2. templates/base/scripts/BxBaseConfig.php
This is the file that comntains TinyMCE.init
Edit line 239 so it looks like this:
theme_advanced_buttons3_add : "emotions,media",
and line 285 so it looks like this:
theme_advanced_buttons3 : "charmap,emotions,media,|,cite,abbr,acronym,attribs,|,preview,removeformat",
These 2 edits will add a media icon to the TinyMCE lower toolbar. I highly recommend you make a backup copy of these 2 files befor editing.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.