Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Months, 3 Days ago Template mess up
#21
Solved: 4 Months, 3 Days ago
Most welcome.

I have informed dvz. You should do at your side as well. This is something very bad to see and I'm sure you will also not like people stare at you being a legit customer. If you know what I mean ....
[Image: logo.svg.svg]
Reply
#22
Solved: 4 Months, 3 Days ago
(06-12-2019, 03:51 PM)effone Wrote: Most welcome.

I have informed dvz. You should do at your side as well. This is something very bad to see and I'm sure you will also not like people stare at you being a legit customer. If you know what I mean ....

Sure.
Thank you Effone.

Hi effone,
Sorry to disturb you again.

<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/editor_themes/{$theme['editortheme']}" type="text/css" media="all" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1821"></script>
{$quickquote}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1821"></script>
<script type="text/javascript">
var partialmode = {$mybb->settings['partialmode']},
MYBB_SMILIES = {
	{$smilies_json}
},
opt_editor = {
	plugins: "undo",
	format: "bbcode",
	style: "{$mybb->asset_url}/jscripts/sceditor/styles/jquery.sceditor.{$theme['editortheme']}?ver=1821",
	rtl: {$lang->settings['rtl']},
	locale: "mybblang",
	width: "100%",
	enablePasteFiltering: true,
	autoUpdate: true,
	emoticonsEnabled: {$emoticons_enabled},
	emoticons: {
		// Emoticons to be included in the dropdown
		dropdown: {
			{$dropdownsmilies}
		},
		// Emoticons to be included in the more section
		more: {
			{$moresmilies}
		},
		// Emoticons that are not shown in the dropdown but will still be converted. Can be used for things like aliases
		hidden: {
			{$hiddensmilies}
		}
	},
	emoticonsCompat: true,
	toolbar: "{$basic1}{$align}{$font}{$size}{$color}{$removeformat}{$basic2}image,{$email}{$link}|video{$emoticon}|{$list}{$code}quote|maximize,source",
};
{$editor_language}

if({$mybb->settings['quickadveditorplus_qedit']}!=0) {
	($.fn.on || $.fn.live).call($(document), 'click', '.quick_edit_button', function () {
		$.jGrowl('<img src="images/spinner_big.gif" />');
		ed_id = $(this).attr('id');
		var pid = ed_id.replace( /[^0-9]/g, '');
		$('#quickedit_'+pid).height('{$mybb->settings['quickadveditorplus_qued_heigh']}px');
		setTimeout(function() {
			$('#quickedit_'+pid).sceditor(opt_editor);
			if ($('#quickedit_'+pid).sceditor('instance')) {
				$('#quickedit_'+pid).sceditor('instance').focus();
			}
			offset = $('#quickedit_'+pid).next().offset().top - 60;
			setTimeout(function() {
				$('html, body').animate({
					scrollTop: offset
				}, 700);
				setTimeout(function() {
					$('#pid_'+pid).find('button[type="submit"]').attr( 'id', 'quicksub_'+pid );
				},200);
				if($(".jGrowl-notification:last-child").length) {
					$(".jGrowl-notification:last-child").remove();
				}
			},200);
			if('{$sourcemode}' != '') {
				$('textarea[name*="value"]').sceditor('instance').sourceMode(true);
			}
		},400);
	});
}

($.fn.on || $.fn.live).call($(document), 'click', 'button[id*="quicksub_"]', function () {
	ed_id = $(this).attr('id');
	pid = ed_id.replace( /[^0-9]/g, '');
	$('#quickedit_'+pid).sceditor('instance').updateOriginal();
});

($.fn.on || $.fn.live).call($(document), 'click', 'input[accesskey*="s"]', function () {
    localStorage.removeItem(location.href + 'quickreply');
});

$(document).ready(function() {
	$('#message').height('{$mybb->settings['quickadveditorplus_qurp_heigh']}px');
	var link_can = document.querySelector("link[rel='canonical']");
	$('#message').sceditor(opt_editor);
	MyBBEditor = $('#message').sceditor('instance');
	{$sourcemode}
	if({$mybb->settings['quickadveditorplus_autosave']}!=0) {
		setInterval(function() {
			if (MyBBEditor) {
				if (MyBBEditor.val() != localStorage.getItem(link_can + 'quickreply')) {
					if (MyBBEditor.val()) {
						if(!$('#autosave').length) {
							$('<div/>', { id: 'autosave', class: 'bottom-right' }).appendTo('body');
						}
						setTimeout(function() {
							$('#autosave').jGrowl('{$mybb->settings['quickadveditorplus_save_lang']}', { life: 500 });
						},200);
						localStorage.setItem(link_can + 'quickreply', MyBBEditor.val());
					}
					else {
						localStorage.removeItem(link_can + 'quickreply');
					}
				}
			}
		},15000);

		setTimeout(function() {
			restitem = localStorage.getItem(link_can + 'quickreply');
			if (restitem) {
				var restorebut = [
					'<a class="sceditor-button" title="{$mybb->settings['quickadveditorplus_restore_lang']}" onclick="MyBBEditor.insert(restitem);">',
						'<div style="background-image: url(images/rest.png); opacity: 1; cursor: pointer;">{$mybb->settings['quickadveditorplus_restore_lang']}</div>',
					'</a>'
				];

				$(restorebut.join('')).appendTo('.sceditor-group:last');
			}
		},600);
		MyBBEditor.blur(function(e) {
			if (MyBBEditor.val()) {
				localStorage.setItem(link_can + 'quickreply', MyBBEditor.val())
			}
			else {
				localStorage.removeItem(link_can + 'quickreply');
			}
		});
	}
});

/**********************************
 * Thread compatibility functions *
 **********************************/
if(typeof Thread !== 'undefined')
{
	var quickReplyFunc = Thread.quickReply;
	Thread.quickReply = function(e) {
		var link_can = document.querySelector("link[rel='canonical']").href;
		if(MyBBEditor) {
			MyBBEditor.updateOriginal();
			if({$mybb->settings['quickadveditorplus_autosave']}!=0) {
				localStorage.removeItem(link_can + 'quickreply');
			}
			$('form[id*="quick_reply_form"]').bind('reset', function() {
				MyBBEditor.val('').emoticons(true);
			});
		}

		return quickReplyFunc.call(this, e);
	};
};
	$(function() {
	$("#{$bind}").sceditor(opt_editor);

	MyBBEditor = $("#{$bind}").sceditor("instance");
	{$sourcemode}
});
</script>
This is my codebutquick template.
I modified it a bit, but the quick reply looks horrible even now.
Could you please help?
Reply
#23
Solved: 4 Months, 3 Days ago
Hi Effone,
Could you please help?
I have made the similar changes in dark themes as well, by modifying the codebutton and showthread_quickreply but nothing worked. I have saved the default editor in default dark green theme as well.
Regards,
Claraviolet.
Reply
#24
Solved: 4 Months, 3 Days ago
Hi Effone,
Could you please help?
I have made the similar changes in dark themes as well, by modifying the codebutton and showthread_quickreply but nothing worked. I have saved the default editor in default dark red theme as well.
Regards,
Claraviolet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)