Forumlar / Cotonti / Extensions / Quick Edit

<<<123>>>

Edit posts/comments without leaving the page.

esclkm
#16 2009-02-20 00:06
I think it must be ajax plugin.
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Dayver
#17 2009-02-20 00:24
# oc : No.
Actually all basic release pack should be basic HTML, not AJAX.
Why you do not want to see Ajax? I fear that your personal opinion may not coincide with ideas of everyone else .... so enough negatively speak about the Ajax.

There is a forum ideas for the possibility to create polls .... create a poll to see the opinion of all the other people
Pavlo Tkachenko aka Dayver
Trustmaster
#18 2009-02-20 01:12
I'll be short:
[list=1]
  • It must be a plugin. Easy to do and no need to bloat the core.
  • It would be better if it operated with AJAX: you click Edit then post text turns into a form, then you click submit and it turns back into updated text. Just see some popular bulletin boards like IPB.
  • May the Source be with you!
    m_ogz
    #19 2009-02-20 02:04
    Yes!
    Ne hasta bekler sabahı, ne taze ölüyü mezar, ne de şeytan bir günahı, seni beklediğim kadar;<br /><br />
    Geçti istemem gelmeni, yoklugunda buldum seni, bırak vehmimde gölgeni, gelme artık neye yarar...
    oc
    #20 2009-02-20 03:05
    What I meant was what Trustmaster said, otherwise, the idea is nice.

    @Dayver: If you want to use AJAX, you can write plugins, or even modules for later. But core should never ever be written AJAX.

    It is like we solved everything in our list and this is the last thing to do, well it is not at all. And talking about it, if you just check admin/banlist you can see how bad is ajax operations are performed, but even if it was an excellent use, I would say no. We have bugs to fix and tasks to be completed, if anyone wants to do something, admin panel hardcoded to tpl files is a very busying task.

    And about publics common opinion, I can't change what I think because of what everyone thinks, which happens to be wrong. I will never code core or basic module ajax. If anyone wants to catch up with new web tech, web 2.0 does not only mean ajax.

    You want to add ajax everywhere, Trustmaster says 50/50. I believe it should be strict html. We have a lot of oppurtunities with PHP/MySQL, of course plugins like markItUp! must have JQuery, but other than that, core should be ajax-free.

    And I was the one that pressed Trustmaster and everybody else to use Ajax at first. But now I see it was a big mistake, I just wonder how much time should pass that you realize that fact too, hopefully soon, because every new move is another mistake (index polls-i started that mistake, i accept i was wrong/administration enhancements/rating system...)
    TwistedGA
    #21 2009-02-20 03:34
    I would love for it to operate using AJAX, but I not a professional webdesigner, and lack the needed skills to make it happen this way at the present momment.

    I agree that this shouldn't require corehacking, it should have been implemented into the core already and removed the need for the standard editing method of switching to a new page. I can revert it back to a plugin and make it keep working as it does I'm sure, but I really thought it better to be in the core(so that it could be released in future cotonti releases, and work towards removing the typical editing method since its 1990 status.
    [color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
    Trustmaster
    #22 2009-02-20 03:58
    There are many reasons not to do so (in the core). One of them is editpost hooks which are used by plugins. Another one is that it might be very annoying to see those edit forms for every message all the time, if you just want to read something. Etc, etc.
    May the Source be with you!
    TwistedGA
    #23 2009-02-20 04:16
    You should install it and see how it works. You don't actually see those edit forms for any message until you click "Edit". The form is hidden using <div> tags and jscript. Which reminds me that I totally forgot to include the stupid header.tpl which allows them to unhide. Yikes. I'll upload a new release that includes it in just a little while.

    Until Then the code for the header.tpl is:

    <head>
    	<script language="javascript">
    		$(document).ready(function(){
    		    
    		    $(".edit").click(function () {
    		    var divname= this.name;
    		      $("#"+divname).show();
    		    });
    		$(".cancel").click(function () {
    		    var divname= this.name;
    		      $("#"+divname).hide();
    		    });
    		  });
    	</script> 
    </head>
    

    What plugins are already converted, and using the editpost hook? I'll kindly update them for support as mentioned in the readme.

    I'm thinking about other ways to make this happen and be less invasive to the core, I just really don't think it should be a plugin.
    [color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
    Trustmaster
    #24 2009-02-20 04:25
    Tags for example. Attachments too. Any plugin which maintains some data linked to a post.
    May the Source be with you!
    biro
    #25 2009-02-20 04:28
    # oc : No.

    Actually all basic release pack should be basic HTML, not AJAX.
    y?
    Be sure to check out<br /><br /><br />
    My site-<a href="http://www.iso-center.co.cc">http://www.iso-center.co.cc</a><br />
    My plugins;TPL Editior 1.2 &amp; Mobile site
    esclkm
    #26 2009-02-20 12:50
    # TwistedGA : The form is hidden using <div> tags and jscript.
    So bad variation - in this method size of forum page will grow in 1.5 - 2.
    Only ajax - click - it load form and hide primary message - next click it save message.
    If you don't know ajax - see plugins which use this technology
    littledev.ru - мой маленький зарождающийся блог о котонти.
    снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
    TwistedGA
    #27 2009-02-20 13:16
    Your right, it does cause forum and comment pages to double in size. However, if someone is showing that many posts per page, that a user notices the difference, the number of posts/comments per page should be reduced.

    I had already thought about this and decided it wouldn't be a big enough issue to be concerned with.

    It really seems to me, that rather than making useful suggestions and postive comments towards helping me use better implementation, you guys want to ride your high horses around like you started out your coding career/hobby knowing the best way to do everything.

    Give me some slack here and help me improve it, not bash me for the methods I used accompolished my goal. A week ago, I couldnt have written a single function in PHP, and here I am today, trying to understand the far more ocmplex methods being suggested(and not very clearly at that).

    Thanks I guess... We'll just forget I made this thread. :(
    [color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
    esclkm
    #28 2009-02-20 14:01
    TwistedGA, guy, don't worry) (be happy) You are clever You have great Ideas!
    Lets begin remake your hack into powerful plugin! and I will help you! You begin remake it to plugin and write to me your questions. And We, both, make Your first powerful plugin.
    Again, No offense, If your topic have so many posts - your idea really great
    littledev.ru - мой маленький зарождающийся блог о котонти.
    снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
    NovoKain
    #29 2009-02-20 20:39
    quick edit everywhere - sounds awersome! :)
    Trustmaster
    #30 2009-02-20 23:18
    Nobody says it is a bad idea. We like the idea but we say it is better if done as a plugin and it is more comfortable to use if it updates data with AJAX.

    So you need to take a look on how the plugins are made and as for AJAX, there is nice documentation for it. You can always look at existing plugins like indexpolls and markitup to see how things are done.
    May the Source be with you!

    <<<123>>>