Welcome Guest, Not a member yet? Register   Sign In
[solved] Finding a bug when you don't find the right action to make a situation when bug appears
#5

[eluser]SPeed_FANat1c[/eluser]
@cimet yeah, I like your idea, but I hate redoing things Smile my way is messy, I need to keep the filenames in the hidden input field and on save click I have to put them in db. But still my way should work and it works when I test. Just for some reason later on those filenames dissappear. But maybe I will redo it quicker in your way than find the real reason why filenames dissappiear from table..

I guess I will do it in the blank article way - because it might be annoying for the user when he will have to save an empty article just to upload images.

edit:

[quote author="toopay" date="1302187855"]use drafting... So admin can have a bunch of draft articles, admin can write then save then continue to write again then publish it.

With that scenario, now you can apply some rules, like give a warning that draft article(include all file which associated with it) will be deleted in 1x24 hours, if not published. Then, make some a cron to take care the rest of them Smile[/quote]

I think I don't need a bunch of them, just one - when admin clicks "create article" I will save it in db instatnly and later when he will be able to save changes whenever he clicks save button. If he will close the browser, the artivle still will be unpublished until he deletes it or publish. I think this way will be OK.


Edit2: so I made it using this

Quote:create a new blank article, this way if the admin leaves the site, he leaves the files uploaded with empty article, which he will later finish.


method. And I delete teh file rows from database using soft delete. We will see how will it go now. Thanks for the ideas Smile


Messages In This Thread
[solved] Finding a bug when you don't find the right action to make a situation when bug appears - by El Forum - 04-07-2011, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB