I wouldn't describe it as heavy, but it's not required.brunoais wrote:Can become too much data for a single thread. This means to the browser to download the double of the information for editable posts which can become heavy.AliasM2K wrote:Ok. Just tried out implementing what I thought would be good...DavidIQ wrote:Go look at our customisations database and try editing a post. That is what Quick Edit should be doing, not some modal. That makes it less quick and it blocks other posts which you could be basing your edit on.
Anyway, what about an inline text area that is hidden, which fades in on clicking the edit button? I think that would do for a quick edit...
[RFC] AJAX Quick Edit
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] AJAX Quick Edit
Re: [RFC] AJAX Quick Edit
That have be done... The text area should be filled with the post's bbcode. Else, what could be edited?callumacrae wrote:You should send an AJAX request requesting the BBCode, then create the textarea and insert the BBCode into it.
I think so too... An inline editor, using a bit of AJAX to load bbcode won't be that heavy.callumacrae wrote:I wouldn't describe it as heavy, but it's not required.
Personally, I'd love to implement this patch on phpBB... I know this is not the right place to ask, but how am I to contribute to the code?
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] AJAX Quick Edit
Create a ticket on the tracker. Then clone the phpbb repo from GitHub, and branch the develop branch into ticket/ticketid. Make your changes, commit them, and then push them and send a PR.
http://wiki.phpbb.com/Git
http://wiki.phpbb.com/Git
Re: [RFC] AJAX Quick Edit
Thanks... Attempting the patch now.callumacrae wrote:Create a ticket on the tracker. Then clone the phpbb repo from GitHub, and branch the develop branch into ticket/ticketid. Make your changes, commit them, and then push them and send a PR.
http://wiki.phpbb.com/Git
Re: [RFC] AJAX Quick Edit
And, here is a live demo of my implementation plan.
Using markItUp jQuery plugin for fun, and also the buttons Full Editor and Submit are dummies. The idea is to hide the post and display the editor.
The demo is not a big deal... I am just posting it to see if that is what you expected.
Using markItUp jQuery plugin for fun, and also the buttons Full Editor and Submit are dummies. The idea is to hide the post and display the editor.
The demo is not a big deal... I am just posting it to see if that is what you expected.
Re: [RFC] AJAX Quick Edit
That kind of behaviour is what I'm after.AliasM2K wrote:The demo is not a big deal... I am just posting it to see if that is what you expected.
Check this too:
http://userscripts.org/scripts/show/11064
It also has the same idea.
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] AJAX Quick Edit
Demo doesn't appear to be working properly (or I'm getting confused).AliasM2K wrote:And, here is a live demo of my implementation plan.
Using markItUp jQuery plugin for fun, and also the buttons Full Editor and Submit are dummies. The idea is to hide the post and display the editor.
The demo is not a big deal... I am just posting it to see if that is what you expected.
Take a look at this, it is kinda what I'm expecting (although obviously this is only a very basic example): http://jsfiddle.net/ZabMY/
Re: [RFC] AJAX Quick Edit
Got the idea... Thanks...callumacrae wrote: Demo doesn't appear to be working properly (or I'm getting confused).
Take a look at this, it is kinda what I'm expecting (although obviously this is only a very basic example): http://jsfiddle.net/ZabMY/
Re: [RFC] AJAX Quick Edit
I've been working on more than one Quickedit MOD for a while now.
That's what it currently looks like:
http://www.youtube.com/watch?v=X8AkYLQTwO4
BBCode is not necessary but a lot of people asked for it, which is why I added it.
I pasted the code that is running all that here:
https://gist.github.com/2352689
Not sure if I missed something but that should be all.
I also pasted the whole jquery_functions.php (unnecessary parts have been stripped) so you can actually see what the variables are doing what.
It's definitely not perfect but should do the job.
That's what it currently looks like:
http://www.youtube.com/watch?v=X8AkYLQTwO4
BBCode is not necessary but a lot of people asked for it, which is why I added it.
I pasted the code that is running all that here:
https://gist.github.com/2352689
Not sure if I missed something but that should be all.
I also pasted the whole jquery_functions.php (unnecessary parts have been stripped) so you can actually see what the variables are doing what.
It's definitely not perfect but should do the job.
Re: [RFC] AJAX Quick Edit
Very nice mod indeed my favorite part of jquery base is the quick reply without refresh.marc1706 wrote:I've been working on more than one Quickedit MOD for a while now.
That's what it currently looks like:
http://www.youtube.com/watch?v=X8AkYLQTwO4
BBCode is not necessary but a lot of people asked for it, which is why I added it.
I pasted the code that is running all that here:
https://gist.github.com/2352689
Not sure if I missed something but that should be all.
I also pasted the whole jquery_functions.php (unnecessary parts have been stripped) so you can actually see what the variables are doing what.
It's definitely not perfect but should do the job.
-Jonah