inherit
159278
0
Feb 25, 2015 7:19:37 GMT -8
Emerald
Member Since 2010
348
October 2010
emeraldx
|
Post by Emerald on Nov 2, 2015 13:26:51 GMT -8
I would like to alter the size of videos posted please, so they are posted at 300x300 and no bigger. I know there is an option default, small, med, large in there >> but members can sometimes forget to use it. I don't want a plug in or to alter templates, thank you, so may I add code into my header/footer please if okay to ask? Emerald
|
|
inherit
159278
0
Feb 25, 2015 7:19:37 GMT -8
Emerald
Member Since 2010
348
October 2010
emeraldx
|
Post by Emerald on Nov 3, 2015 15:41:31 GMT -8
Bump
|
|
inherit
159278
0
Feb 25, 2015 7:19:37 GMT -8
Emerald
Member Since 2010
348
October 2010
emeraldx
|
Post by Emerald on Nov 5, 2015 3:36:20 GMT -8
Can anyone assist me with a code, please? Or perhaps it is too difficult a task and if so no worries.
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 24, 2024 11:21:01 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 6, 2015 15:09:18 GMT -8
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 21, 2015 18:17:23 GMT -8
If you add a CSS rule such as
article .message video, article .message iframe { max-width: 300px; }
to your theme's stylesheet you should be able to reduce the size of a posted video to a maximum width of 300px.
I'm not familiar with the HTML output for all the supported video types but the trend has been away from flash embeds and towards HTML5 video or iframes if support for older browsers is necessary. The selector should work on the majority of videos but that is just a guess. If you find one that it doesn't work on or if you have a plugin that uses iframes in the post then you'll need to link me to an example so a more specific rule could be created to either ignore or include for that specific case.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 21, 2015 19:54:53 GMT -8
@joecool111 , this should default to 'small' on both full reply and quick reply
<script> (function(){ var wysiwyg = jQuery.ui.wysiwyg.prototype, iVP = wysiwyg._insertVideoPrompt; wysiwyg._insertVideoPrompt = function(){ var ret = iVP.apply(this, arguments); // currently no return value but future proof //now that the dialog has been created we can modify it this.dialog.find('#wysiwyg-input-size').val('small') .parent().find('.selectMenuButton .ui-selectMenu-box .status').html('small'); return ret; } })() </script>
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 24, 2024 11:21:01 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 22, 2015 12:42:41 GMT -8
@joecool111 , this should default to 'small' on both full reply and quick reply <script> (function(){ var wysiwyg = jQuery.ui.wysiwyg.prototype, iVP = wysiwyg._insertVideoPrompt; wysiwyg._insertVideoPrompt = function(){ var ret = iVP.apply(this, arguments); // currently no return value but future proof //now that the dialog has been created we can modify it this.dialog.find('#wysiwyg-input-size').val('small') .parent().find('.selectMenuButton .ui-selectMenu-box .status').html('small'); return ret; } })() </script>
thank u, i didnt get an alert for this thread for some reason. been happinening a few threads the past 2 weeks idk why.
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 24, 2024 11:21:01 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 22, 2015 12:52:33 GMT -8
its worked this thank u.
|
|