EMBEDDING ISSUE

When I create a topic in forums I can select "html" icon and paste embed code from my video that is in dolphin and it does not work or remain after I hit submit but when I paste a YouTube embed code it remains and works fine. Can anyone tell me why I cannot embed video with the embed link generated by my Dolphine site?

 

Secondly, how do I get my Dolphin embed codes to work in the forums on the the Dolphine site?

Thanks.

Quote · 8 Aug 2009

Houston, should I tell him how to do it?  I mean, that would just open the door for him to add it to his e-mail and everywhere else then. 

 

Maybe I could tell him 1/2 the instructions.

 

Perhaps I can tell him a 1/4 or an 1/8...

 

Oh what the heck...  I'll let him make a mess out of it and tell him... I'm sure it will work, until someone uploads corrupt code on him!!

 

Here you go:

 

go into your server and find: 

 

templates/base/BxBaseConfige.php

 

Locate this section of code (It's about 100 lines or so long)

 

 //theme_advanced_disable : "link,unlink,insertanchor,image,subscript,superscript,help,anchor,code,styleselect",
  $this -> sTinyMceEditorJS = '
 <!-- tinyMCE gz --> 
 <script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
 <script type="text/javascript">
 tinyMCE_GZ.init({
  plugins :          "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
 </script>
 <!-- tinyMCE -->
 <script language="javascript" type="text/javascript">
 // Notice: The simple theme does not use all options some of them are limited to the advanced theme
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  //content_css : "' . $site['css_dir'] . 'editor.css",
  editor_selector : "blogText|guestbookTextArea|story_edit_area|comment_textarea|classfiedsTextArea",


  plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",

  theme_advanced_buttons1_add : "fontselect,fontsizeselect",
  theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,image,separator,search,replace,separator",
  theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
  theme_advanced_buttons3_add : "emotions",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",

  plugi2n_insertdate_dateFormat : "%Y-%m-%d",
     plugi2n_insertdate_timeFormat : "%H:%M:%S",
  paste_use_dialog : false,
  theme_advanced_resizing : false,
  theme_advanced_resize_horizontal : false,
  theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
  paste_auto_cleanup_on_paste : true,
  paste_convert_headers_to_strong : false,
  paste_strip_class_attributes : "all",
  paste_remove_spans : false,
  paste_remove_styles : false

  });
 </script>
 <!-- /tinyMCE -->
 ';
 
  $this -> sTinyMceEditorCompactJS =
'<!-- tinyMCE gz -->
<script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
 tinyMCE_GZ.init({
  plugins :          "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
</script>

<script language="javascript" type="text/javascript">
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  
  editor_selector : "group_edit_html|guestbookTextArea|story_edit_area|comment_textarea|classfiedsTextArea|blogText",
  
  plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,visualchars,nonbreaking,xhtmlxtras",
  
  theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "forecolor,backcolor,|,bullist,numlist,|,outdent,indent,|,link,unlink,image,hr,|,sub,sup,|,insertdate,inserttime,|,styleprops",
  theme_advanced_buttons3 : "charmap,emotions,|,cite,abbr,acronym,attribs,|,preview,removeformat",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "center",
  extended_valid_elements : "a[name|href|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
 });
</script>';

  $this -> sTinyMceEditorMiniJS =
' <!-- tinyMCE gz --> 
 <script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
 <script type="text/javascript">
 tinyMCE_GZ.init({
  plugins :          "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
 </script>
 <!-- tinyMCE -->
 <script language="javascript" type="text/javascript">
 // Notice: The simple theme does not use all options some of them are limited to the advanced theme
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  //content_css : "' . $site['css_dir'] . 'editor.css",
  editor_selector : "comment_textarea|classfiedsTextArea",


  plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,visualchars,nonbreaking,xhtmlxtras",

  theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor",
  theme_advanced_buttons2 : "link,unlink,image,hr,insertdate,inserttime,|,charmap,emotions,|,cite,preview,removeformat",
  theme_advanced_buttons3 : "",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_disable : "insertanchor,image,help,anchor,code,styleselect",
  plugi2n_insertdate_dateFormat : "%Y-%m-%d",
     plugi2n_insertdate_timeFormat : "%H:%M:%S",
  paste_use_dialog : false,
  theme_advanced_resizing : false,
  theme_advanced_resize_horizontal : false,
  theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
  paste_auto_cleanup_on_paste : true,
  paste_convert_headers_to_strong : false,
  paste_strip_class_attributes : "all",
  paste_remove_spans : false,
  paste_remove_styles : false

  });
 </script>
 <!-- /tinyMCE -->
 ';

 

Now, that you have found it, replease all of that with this (it's only about 170 lines of code rougly):

 

<!-- tinyMCE gz --> 
 <script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
 <script type="text/javascript">
 tinyMCE_GZ.init({
  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,youtube,imagess",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
 </script>
 <!-- tinyMCE -->
 <script language="javascript" type="text/javascript">
 // Notice: The simple theme does not use all options some of them are limited to the advanced theme
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  content_css : "' . $site['css_dir'] . 'editor.css",
  editor_selector : "blogText|guestbookTextArea|story_edit_area|comment_textarea|classfiedsTextArea",


  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,youtube,images",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_disable : "link,unlink,insertanchor,image,subscript,superscript,help,anchor,code,styleselect",
  plugi2n_insertdate_dateFormat : "%Y-%m-%d",
     plugi2n_insertdate_timeFormat : "%H:%M:%S",
  paste_use_dialog : false,
  theme_advanced_resizing : false,
  theme_advanced_resize_horizontal : false,
  theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
  paste_auto_cleanup_on_paste : true,
  paste_convert_headers_to_strong : false,
  paste_strip_class_attributes : "all",
  paste_remove_spans : false,
  paste_remove_styles : false

  });
 </script>
 <!-- /tinyMCE -->
 ';
 
  $this -> sTinyMceEditorCompactJS =
'<!-- tinyMCE gz -->
<script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
 tinyMCE_GZ.init({
  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,youtube,images",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
</script>

<script language="javascript" type="text/javascript">
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  
  editor_selector : "group_edit_html|guestbookTextArea|story_edit_area|comment_textarea|classfiedsTextArea|blogText",
  
  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,youtube,images",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "center",
  extended_valid_elements : "a[name|href|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
 });
</script>';

  $this -> sTinyMceEditorMiniJS =
' <!-- tinyMCE gz --> 
 <script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
 <script type="text/javascript">
 tinyMCE_GZ.init({
  plugins :          "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,youtube,imagess",
  themes : "simple,advanced",
  languages : "en",
  disk_cache : true,
  debug : false
 });
 </script>
 <!-- tinyMCE -->
 <script language="javascript" type="text/javascript">
 // Notice: The simple theme does not use all options some of them are limited to the advanced theme
 tinyMCE.init({
  mode : "textareas",
  theme : "advanced",
  content_css : "' . $site['css_dir'] . 'editor.css",
  editor_selector : "comment_textarea|classfiedsTextArea",
  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,youtube,images",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",

  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_disable : "insertanchor,image,help,anchor,code,styleselect",
  plugi2n_insertdate_dateFormat : "%Y-%m-%d",
     plugi2n_insertdate_timeFormat : "%H:%M:%S",
  paste_use_dialog : false,
  theme_advanced_resizing : false,
  theme_advanced_resize_horizontal : false,
  theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
  paste_auto_cleanup_on_paste : true,
  paste_convert_headers_to_strong : false,
  paste_strip_class_attributes : "all",
  paste_remove_spans : false,
  paste_remove_styles : false

  });
 </script>
 <!-- /tinyMCE -->
 
 
 ';

The tricky part is that D6 will strip out the embed and object tags and you'll have to edit \plugins\safehtml\safehtml.php to remove the object and embed tag stripping (about lines 146-151).  The big trouble with this, is that it will allow the object and embed tags to be used in html site wide. 

Your going to need to do your homework on this:

You can read more about the media plugin here: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media

Here's a list of all the TinyMCE bundled plugins: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins
 
 
Special thanks to Houstonlively who gave me all of this information.
Use this at your own risk, it will probably just open the door to hackers if you don't do it right.
Did I just create the longest single post ever?

Quote · 8 Aug 2009

Hey Man thanks a ton for that reply! I found a bug in Ray that seems to be a pretty significant one. I duplicated it on Boonex.us demo site. I am trying to work around it but I have not found a way that would be simple and consistent for my users. Here is the problem in short form: When a person logs into RAY Chat, when he closes the browser or goes to, let's say classifieds and then comes back to RAY Chat, RAY just sits there connecting. It seems RC does not dump the user when he leaves and seems to still think the user is still in Chat. therefore when RMS sees the user "still" in and trying to get in at the same time connection never takes place.

 

I have found when leaving chat if you click on the tab of the room you are in and the lobby, you can see the user "exited" from all rooms and he can easily log into chat again. Anything short of this "dance" RMS does not clear the user and there is then no-more access to chat until who knows when because a "ghost" instance of user is sitting there.

 

Admin portion of RAY module will not kick off the ghost user if you are accessing admin from the same machine the locked-in user logged in on. Once admin is in the chat room, if he exits buy closing browser or clicking another tab, he can't get back in either.

 

How can this be fixed?

Quote · 10 Aug 2009

The tiny MCE above does not work.

Quote · 24 Aug 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.