I'm using a code to add a video sharing button to vbox7, but the code stopped working.
I have not made any changes to the admin panel.
Pressing the vbox7 button and adding a video link generates a code without quotation marks and can not display a video in the forum.
The code appears like this.
[table class=vbox7hotro][tr][td]ee70f0ca49[/td][/tr][/table]
It must be so.
The code must be quoted (""), but it is generated without them.
[table class=vbox7hotro][tr][td]ee70f0ca49[/td][/tr][/table]
Why did you get this problem? Before the code worked without problems.
I have not made any changes to the admin panel.
Pressing the vbox7 button and adding a video link generates a code without quotation marks and can not display a video in the forum.
The code appears like this.
[table class=vbox7hotro][tr][td]ee70f0ca49[/td][/tr][/table]
It must be so.
The code must be quoted (""), but it is generated without them.
[table class=vbox7hotro][tr][td]ee70f0ca49[/td][/tr][/table]
Why did you get this problem? Before the code worked without problems.
- Code:
$(window).load(function() {
$('.sceditor-group:last').append('<a title="vbox7 bbcode" class="sceditor-button sceditor-button-vbox7" style="text-indent: 0px;"><img src="http://i97.servimg.com/u/f97/16/34/78/03/p9lwnr10.png" ></a>');
$('body').append('<div id="bbcodevbox7" style="display:none;position:absolute;z-index:50000;-moz-background-clip:padding;-moz-border-radius:2px;-moz-box-shadow:1px 2px 4px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-webkit-border-radius:2px;-webkit-box-shadow:1px 2px 4px rgba(0,0,0,.2);background:#fff;background-clip:padding-box;border:1px solid #ccc;border-radius:2px;box-shadow:1px 2px 4px rgba(0,0,0,.2);color:#333;line-height:1;padding:10px;position:absolute;z-index:4000"><input id="inputFieldvbox7" type="text"><br><input id="enterContentvbox7" type="submit" value="enter" style="margin-top: 5px;"></div>');
$('.sceditor-button-vbox7').click(function() {
if ($('#bbcodevbox7').css('display') == 'none') {
var y = $('.sceditor-button-vbox7').offset().top +25;
var x = $('.sceditor-button-vbox7').offset().left;
$('#bbcodevbox7').show().css('top',y + 'px').css('left',x + 'px');
}
else $('#bbcodevbox7').hide();
});
$('#enterContentvbox7').click(function() {
if ($('#inputFieldvbox7').val().length > 0) $('#text_editor_textarea').sceditor('instance').insertText('[table class=vbox7hotro][tr][td]' + $('#inputFieldvbox7').val(),'[/td][/tr][/table]');
else $('#text_editor_textarea').sceditor('instance').insertText("[table class=vbox7hotro][tr][td]", "[/td][/tr][/table]");
$('#inputFieldvbox7').val('');
$('#bbcodevbox7').hide();
});
$('.sceditor-button:not(.sceditor-button-vbox7), .sceditor-container textarea, .sceditor-container vbox7').click(function() { $('#bbcodevbox7').hide() });
});
$(document).on('ready', function() {
$('.vbox7hotro td').each(function() {
var davhotrofmvbox7 = $(this).text();
$(this).prepend('<iframe width="560" height="315" src="https://www.vbox7.com/emb/external.php?vid=' + davhotrofmvbox7 + '" frameborder="0" allowfullscreen></iframe><style>.vbox7hotro{font-size: 0px;}</style>');
});
});
Last edited by smurfavr on June 22nd 2017, 1:16 pm; edited 2 times in total