MyBB Community Forums

Full Version: Found the templates of Quick Edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I´m trying of edit the templates of Quick edit post but It didn´t work xmlhttp_inline_post_editor

<br />
		<div style="clear: both;">
			<div>
				<textarea style="width: 99%; padding: 4px; margin: 0;" rows="4" cols="80" id="quickedit_{$post['pid']}" tabindex="999">{$post['message']}</textarea>
			</div>
			<div class="editor_control_bar" style="width: 99%; padding: 4px; margin-top: 3px; text-align: right;">
				<input type="button" class="button" onclick="Thread.quickEditSave({$post['pid']});" value="{$lang->save_changes}" tabindex="1000" />
				<input type="button" class="button" onclick="Thread.quickEditCancel({$post['pid']});" value="{$lang->cancel_edit}" tabindex="1001" />
			</div>
			<br style="clear: both;" />
		</div>

but doesn´t work, the code in html is this

<form><!-- start: xmlhttp_inline_post_editor -->
<br>
		<div style="clear: both;">
			<div>
				<textarea style="width: 99%; padding: 4px; margin: 0;" rows="12" cols="80" id="quickedit_126" tabindex="999">Hola como estas?c:</textarea>
			</div>
			<div class="editor_control_bar" style="width: 99%; padding: 4px; margin-top: 3px; text-align: right;">
				<input type="button" class="button" onclick="Thread.spinner = new ActivityIndicator('body', {image: imagepath+'/spinner_big.gif'}); new Ajax.Request('xmlhttp.php?action=edit_post&amp;do=update_post&amp;pid=126&amp;my_post_key='+my_post_key, {method: 'post', postBody: 'value='+encodeURIComponent($('quickedit_126').value).replace(/\+/g, '%2B'), onComplete: function(request) { Thread.quickEditSaved(request, 126); }});" value="Guardar cambios" tabindex="1000">
				<input type="button" class="button" onclick="Thread.quickEditCancel(126);" value="Cancelar edición" tabindex="1001">
			</div>
			<br style="clear: both;">
		</div>
<!-- end: xmlhttp_inline_post_editor --></form>

Why?:/

Quick edit
So basically your quick reply is not working, is that correct?
I want to modify the Quick edite template to this

<textarea style="width: 99%; padding: 4px; margin: 0;" rows="4" cols="80" id="quickedit_{$post['pid']}" tabindex="999">{$post['message']}</textarea>

but it doesn´t work :/

i´m modifiyng xmlhttp_inline_post_editor template