MyBB Community Forums
Quick edit [1.6] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: Quick edit [1.6] (/thread-40943.html)

Pages: 1 2


Quick edit [1.6] - Ryan Loos - 2008-11-25

You all know the quick edit box that appears when you use quick edit in threads.. The one with the two options "Save Changes" and "Cancel Edit".

Any idea how I would go about adding another button down there? I've looked for quite some time at templates and even some javascript files in search of this.


Any help is much appreciated.


RE: Quick edit - x-Treme - 2008-11-25

Wouldn't it be in the postbit_edit template?


RE: Quick edit - Ryan Loos - 2008-11-25

I looked in there, I don't see any reference to the "Save Changes" or "Cancel Edit" buttons in that template. That's what I need to change.

Thanks. Smile


RE: Quick edit - x-Treme - 2008-11-25

Found it...I think. It's the "inline_edit.js" file.

Scrap that...I don't think that's the one you need.


RE: Quick edit - Yumi - 2008-11-26

I believe the template is under XMLHTTP Templates -> xmlhttp_inline_post_editor
(note, "XMLHTTP" in MyBB refers to AJAX)

Is that what you want?


RE: Quick edit - Ryan Loos - 2008-11-26

*sigh* - I thought I looked in there!

Thanks Zinga (Yumi) - I think that's exactly what I wanted.

Too late to play around now though, will do in the morning. Smile

Thank you again, everyone.


RE: Quick edit - Ryan Loos - 2008-11-30

Well the reason I wanted to change that is because one of my members wanted to have quick edit as the default edit style when you click the edit button (I got that part right) - and then have the option to go to full edit from the quick edit box. So I added the button, but then he complained that if you typed stuff in the quick edit and then decided to go full edit it did not keep the text you added in quick edit. Sad

I tried to make the Full Edit button do the same thing that Preview Post would, as it made sense in my head, but it didn't seem to do anything.

Any ideas?


RE: Quick edit - Matt - 2008-11-30

I've always wanted the option to go to full edit and have it save the text as sometimes I realise I need to add an attachment half way through typing and it just saves having to copy and paste.


RE: Quick edit - Ryan Loos - 2008-12-02

(2008-11-30, 09:26 AM)Matt_ Wrote: I've always wanted the option to go to full edit and have it save the text as sometimes I realise I need to add an attachment half way through typing and it just saves having to copy and paste.
That's exactly what I am talking about. Smile


RE: Quick edit - Martin M. - 2008-12-08

Problem with that is that html doesn't support multiple actions within an form - if that was the case it would only be to send it through post request. You could probably do it with javascript though - making another form and getting the content from the other form when submitting.