vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Insert Video Clip (https://vborg.vbsupport.ru/showthread.php?t=310655)

DemOnstar 04-21-2014 12:58 PM

Insert Video Clip
 
1 Attachment(s)
When clicking on the film strip icon in the editor, it opens up the insert video clip box but the right hand side goes right off the screen..

https://vborg.vbsupport.ru/attachmen...1&d=1398088673

Any ideas on this one?

Thanks...

tbworld 04-21-2014 08:14 PM

1 Attachment(s)
-------------------------------------------------------------
Simplistic fix
--------------------------------------------------------------

Modify the ckeditor plugin: /clientscript/ckeplugins/videotag/dialogs/videotag.js

Find: Line 34
Code:

dialog_html += '<a target="_blank" href="'+url+'">'+name+'</a>&nbsp;';
Replace: Line 34
Code:

dialog_html += '<a target="_blank" href="'+url+'">'+name+'</a><br />';
--------------- Added 21 Apr 2014 at 17:34 ---------------


-------------------------------------
Better fix, two column format.
-------------------------------------
Modify the ckeditor plugin: /clientscript/ckeplugins/videotag/dialogs/videotag.js

Find: Line 34 and 35
Code:

dialog_html += '<a target="_blank" href="'+url+'">'+name+'</a>&nbsp;';
}

Replace:
Code:

                    if (Math.abs(i + 1) % 2 == 1) {
                        dialog_html += '<span style="width:50%;float:left;"><a style="float:left;margin-left:10px;" target="_blank" href="'+url+'">'+name+'</a></span>';
                    } else {
                        dialog_html += '<span style="width:50%;clear:right;float:right"><a style="float:left;" target="_blank" href="'+url+'">'+name+'</a></span><br />';
                    }
                }
                dialog_html = '<div style="width:300px;clear:both;"' + dialog_html + '</div>';


DemOnstar 04-22-2014 05:10 AM

Not sure how you guys seem to know all the answers but good job tbworld, worked a treat..

Only one minor issue. The box opens up correctly with it's 2 columns but some of the text spills out at the bottom. This is simply corrected by using the drag handle on the box to resize it.

If a person doesn't understand the function of the drag handle (bottom left) then it will be a little distracting..
Opening the box automatically at full height would be better...

I am using the fix anyway... It is a good one...

Cheers fella...

tbworld 04-22-2014 05:50 AM

You can easily increase the size of the default container to handle that, depending on what screen devices you are using with vbulletin.

Search for (near the bottom of the code):
Code:

            minWidth : '300',
            minHeight: '200',

Adjust 'minHeight' in pixels accordingly. :)

DemOnstar 04-22-2014 06:09 AM

All done!
Prompt response....

Much obliged and may well prove useful to many others as a very good guide on how to do....

Thanks again.....


All times are GMT. The time now is 09:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02312 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete