Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2014, 12:58 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Insert Video Clip

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..



Any ideas on this one?

Thanks...
Attached Images
File Type: jpg Vid.jpg (40.2 KB, 0 views)
Reply With Quote
  #2  
Old 04-21-2014, 08:14 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-------------------------------------------------------------
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>';
Attached Images
File Type: jpg two_column_videotag_tbworld.jpg (37.7 KB, 0 views)
Reply With Quote
Благодарность от:
CAG CheechDogg
  #3  
Old 04-22-2014, 05:10 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 04-22-2014, 05:50 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-22-2014, 06:09 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04119 seconds
  • Memory Usage 2,227KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete