Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: digger on November 21, 2011, 03:48:30 PM

Title: Sisyphus
Post by: digger on November 21, 2011, 03:48:30 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3256)

Imagine you're filling a complex form on site, or typing effervescent and extensive comment. And when you're almost done with that browser is crashed, or you closed tab mistakenly, or electricity is turned off, or something else break your efforts. Disgusting, huh? With Sisyphus on site you just reopen page in your modern (with HTML5 support) browser and see all your changes at that forms. It's lightweight jQuery plugin uses Local Storage to prevent your work being lost. Sisyphus mod will restore entered text in the Quick Reply form and Reply form, after browser crash/closing.
The text entered in the Quick Reply field is saved when moving between pages of the same topic, which allows you to reply to messages located in a different places of the current topic.

GitHub repo: https://github.com/realdigger/SMF-Sisyphus


Мод автоматически восстанавливает данные введенные в форму быстрого/полного ответа и личного сообщения, утраченные после вылета браузера, случайного закрытия вкладки или отключения электричества. При следующем открытии страницы потерянные данные вернутся на свои места.
Текст, введенный в поле ответа, сохраняется при перемещении между страницами одной темы, что позволяет ответить на сообщения находящиеся в разных местах темы.
Можно переходить между страницами текущей темы и цитировать или писать ответы, переключаться в полный ответ и редактировать сообщение там, а потом возвращаться назад в тему - пока ответ не будет отправлен или стерт, его текст будет сохраняться. Можно перемещаться по форуму или, вообще, закрыть браузер, а потом снова вернуться в эту тему - незаконченный ответ будет снова в редакторе.

Гитхаб репозиторий: Github repo: https://github.com/realdigger/SMF-Sisyphus


This mod is licensed under The MIT License (MIT).
Title: Re: Sisyphus
Post by: ~DS~ on November 21, 2011, 03:52:28 PM
It's simliar to a Draft mod, no?
Title: Re: Sisyphus
Post by: digger on November 21, 2011, 04:38:10 PM
Quote from: ~DS~ on November 21, 2011, 03:52:28 PM
It's simliar to a Draft mod, no?

It's not quite simliar the drafts mod. There is no any list of the stored data.
Although you can use it as a drafts too.
Title: Re: Sisyphus
Post by: Sheda on November 22, 2011, 05:02:21 AM
Doesn't firefox do this already?
Title: Re: Sisyphus
Post by: samurai-lupin on December 27, 2011, 11:06:07 PM
Hello, this looks like a great mod! Could you please also do a version for SMF 1.1 ? Thank you
Title: Re: Sisyphus
Post by: samurai-lupin on December 29, 2011, 03:08:12 PM
Helllo digger, I really hope you woll consider doing a SMF 1.1 Version of this great mod. I have been looking for such a mod for a long time. Thanks!
Title: Re: Sisyphus
Post by: digger on December 29, 2011, 03:17:47 PM
Quote from: samurai-lupin on December 29, 2011, 03:08:12 PM
Helllo digger, I really hope you woll consider doing a SMF 1.1 Version of this great mod. I have been looking for such a mod for a long time. Thanks!

Ok. I will do it.
Title: Re: Sisyphus
Post by: samurai-lupin on December 29, 2011, 03:59:14 PM
This is great news! Thank you very much!
Title: Re: Sisyphus
Post by: funkythemunky on January 25, 2012, 09:20:13 AM
Thank You for this great mod! =)

Is there by chance a way to make it work in quick-reply as well? (with WYSIWYG quick reply (http://custom.simplemachines.org/mods/index.php?mod=1299)?)
Title: Re: Sisyphus
Post by: littlenicki on September 09, 2012, 03:21:09 PM
Hello, any chance of backporting this to SMF 1.1? This owuld be great to have. Thank you, Nicole
Title: Re: Sisyphus
Post by: Sudhakar Arjunan on March 12, 2013, 06:38:13 PM
very useful mod.
Title: Re: Sisyphus
Post by: littlenicki on March 16, 2013, 10:03:16 AM
Does not work for me on SMF 1.1. What a pitty. Would be a great mod otherwise
Title: Re: Sisyphus
Post by: T3CHN0 on May 10, 2013, 10:55:39 AM
I love this mod, thanks heaps. this always happens to me, time out when sending and other things
and now I get my message back SWEET
Title: Re: Sisyphus
Post by: littlenicki on June 04, 2013, 12:22:56 PM
Quote from: littlenicki on March 16, 2013, 10:03:16 AM
Does not work for me on SMF 1.1. What a pitty. Would be a great mod otherwise

Bump. Thank you
Title: Re: Sisyphus
Post by: digger on June 04, 2013, 02:38:56 PM
Quote from: littlenicki on June 04, 2013, 12:22:56 PM
Quote from: littlenicki on March 16, 2013, 10:03:16 AM
Does not work for me on SMF 1.1. What a pitty. Would be a great mod otherwise

Bump. Thank you
Mod tested with SMF 1.1.18 default theme and it worked like a charm.
Title: Re: Sisyphus
Post by: littlenicki on June 05, 2013, 11:02:58 AM
Hello Digger, just to be sure there is no misunderstanding: SHould this mod constantly safe an autodraft like VBulletin does? Regards
Title: Re: Sisyphus
Post by: digger on June 05, 2013, 11:09:26 AM
Quote from: littlenicki on June 05, 2013, 11:02:58 AM
Hello Digger, just to be sure there is no misunderstanding: SHould this mod constantly safe an autodraft like VBulletin does? Regards
I do not know what VBulletin does.
Original Sisyphus plugin developed to save html forms data to LocalStorage to restore them after browser crashes, tabs closings and other disasters.
Title: Re: Sisyphus
Post by: Ninja ZX-10RR on September 04, 2014, 02:22:30 AM
Howdy, a tiny bump for this awesome mod! Thanks!
Title: Re: Sisyphus
Post by: NekoJonez on October 07, 2014, 03:42:29 PM
Is it possible that Simple Portal makes this mod not work?
Title: Re: Sisyphus
Post by: digger on October 07, 2014, 05:34:30 PM
Quote from: NekoJonez on October 07, 2014, 03:42:29 PM
Is it possible that Simple Portal makes this mod not work?
Maybe some jQuery conflict.
Title: Re: Sisyphus
Post by: NekoJonez on October 08, 2014, 01:07:02 PM
Can it be fixed?
Title: Re: Sisyphus
Post by: J.A.F.O. on October 29, 2015, 09:11:28 PM
I'm getting some strange behaviour from Sisyphus..

Sisyphus 1.2. SMF 2.0.11. Firefox 41.0.2.

Whenever I try to edit a post, mine or somebody else's, Sisyphus causes the text from the last post I made to be re-loaded into the editor, instead of the text I'm trying to edit. Are there any configuration settings I've missed seeing, or is something borked?
Title: Re: Sisyphus
Post by: JerzyLS on July 06, 2016, 02:24:14 PM
Quote from: J.A.F.O. on October 29, 2015, 09:11:28 PM
I'm getting some strange behaviour from Sisyphus..

Sisyphus 1.2. SMF 2.0.11. Firefox 41.0.2.

Whenever I try to edit a post, mine or somebody else's, Sisyphus causes the text from the last post I made to be re-loaded into the editor, instead of the text I'm trying to edit. Are there any configuration settings I've missed seeing, or is something borked?

The same here.

How can we to solve it?
Title: Re: Sisyphus
Post by: digger on July 06, 2016, 07:38:21 PM
Quote from: JerzyLS on July 06, 2016, 02:24:14 PM
Quote from: J.A.F.O. on October 29, 2015, 09:11:28 PM
I'm getting some strange behaviour from Sisyphus..

Sisyphus 1.2. SMF 2.0.11. Firefox 41.0.2.

Whenever I try to edit a post, mine or somebody else's, Sisyphus causes the text from the last post I made to be re-loaded into the editor, instead of the text I'm trying to edit. Are there any configuration settings I've missed seeing, or is something borked?

The same here.

How can we to solve it?
Try 1.3 version from github https://github.com/realdigger/SMF-Sisyphus/releases
Title: Re: Sisyphus
Post by: blunted on October 08, 2016, 11:07:30 AM
almost positive this mod the issue, it loads at the top correct when it saves?
Anyways Ive removed it yet still it persists with the sliding load causing issues
Title: Re: Sisyphus
Post by: profzelonka on February 19, 2017, 07:51:15 PM
Quote from: digger on July 06, 2016, 07:38:21 PM
Quote from: JerzyLS on July 06, 2016, 02:24:14 PM
Quote from: J.A.F.O. on October 29, 2015, 09:11:28 PM
I'm getting some strange behaviour from Sisyphus..

Sisyphus 1.2. SMF 2.0.11. Firefox 41.0.2.

Whenever I try to edit a post, mine or somebody else's, Sisyphus causes the text from the last post I made to be re-loaded into the editor, instead of the text I'm trying to edit. Are there any configuration settings I've missed seeing, or is something borked?

The same here.

How can we to solve it?
Try 1.3 version from github https://github.com/realdigger/SMF-Sisyphus/releases

Same issue.
Title: Re: Sisyphus
Post by: Steve on February 20, 2017, 09:42:39 AM
Did you try the version from github?
Title: Re: Sisyphus
Post by: profzelonka on February 20, 2017, 11:56:10 PM
Yes, that's 1.3.

1. Write post
2. Crash browser
3. Reopen page and post the "saved" post.
4. Make new post

Bug: Previously posted text is in post box again.
Title: Re: Sisyphus
Post by: brynn on October 01, 2017, 11:13:04 AM
I looked into this mod some time ago, and wanted to install it.  But I heard somewhere that it doesn't work with one of the 3 most-used browsers (I don't even remember which one now).

But now, looking at it again, I don't see any comments to that effect.  Does it work with all browsers?

Thanks :)
Title: Re: Sisyphus
Post by: digger on October 01, 2017, 11:16:24 AM
Quote from: brynn on October 01, 2017, 11:13:04 AM
I looked into this mod some time ago, and wanted to install it.  But I heard somewhere that it doesn't work with one of the 3 most-used browsers (I don't even remember which one now).

But now, looking at it again, I don't see any comments to that effect.  Does it work with all browsers?

Thanks :)
I think modern browsers already have this feature.
Title: Re: Sisyphus
Post by: brynn on October 05, 2017, 08:08:56 PM
It doesn't work for me with Firefox.  And a member reported the other day that they lost their message, after browsing away and back.

Would this mod sort of take up the slack for browsers where it doesn't work?
Title: Re: Sisyphus
Post by: digger on October 06, 2017, 12:22:35 AM
Quote from: brynn on October 05, 2017, 08:08:56 PM
It doesn't work for me with Firefox.  And a member reported the other day that they lost their message, after browsing away and back.

Would this mod sort of take up the slack for browsers where it doesn't work?
Just install this mod and try.
Title: Re: Sisyphus
Post by: brynn on October 09, 2017, 02:48:08 PM
Just some feedback.

Now that I think about it, you must mean that the browser saves the message in the browser, if you have it set to save the form history.  But I don't use that option.  Otherwise, I've never heard of browsers saving forum messages.

Sisyphus does save the message.  It saves it in both Quick Reply and the full editor!  But it saves it so well that it's still there after the message is posted.  In fact, it's still there even after I browse to another topic!  And another.  And another, and another, and, well I didn't try restarting the browser.  But I don't see any reason for the message to persist after it's posted.

So I don't think I'll be able to use this.  After I go to a new topic, I need the text box to be empty.  Actually, I think posting the message should clear out both quick and full reply fields, because no one needs the message after they've already posted it.  If they do, it's easy enough to click Modify, to copy it.  But definitely both text fields should be empty when a new topic is opened.

If there's any chance of this mod being updated to avoid this problem, I'll be glad to help with testing  :-)  (I'm no good with codes.)

Thank you very much!

Edit
And there's another problem.  Because the message is never removed from the editor (I'm guessing that's the reason) whenever I go to a new topic, it shows the warning that a new message has been posted while I was typing.  No matter which topic I'm looking at, and even if I refresh the page and immediately click Reply, it tells me a new message was posted already.
Title: Re: Sisyphus
Post by: confuseamuse on October 20, 2017, 12:58:58 PM
Is a fix gonna be considered at any point?
Title: Re: Sisyphus
Post by: digger on October 20, 2017, 01:27:21 PM
Quote from: confuseamuse on October 20, 2017, 12:58:58 PM
Is a fix gonna be considered at any point?
I don't use this mod myself. And I have no spare time to rewrite it now.
Title: Re: Sisyphus
Post by: brynn on October 23, 2017, 12:12:56 AM
I suppose SMF's development goals do not necessarily include competing with phpBB (or other forum sw), but phpBB does a beautiful job of this (from the user point of view - I wouldn't know beautiful code if I looked at it.)

Maybe someone else will pick it up and either fix, or re-write?  Keeping my fingers crossed!  And as I said before, I'll be ready to help with testing, if I'm aware (via subscribing to this topic) that it's happening.
Title: Re: Sisyphus
Post by: digger on November 08, 2017, 06:28:31 PM
Quote from: brynn on October 23, 2017, 12:12:56 AM
I suppose SMF's development goals do not necessarily include competing with phpBB (or other forum sw), but phpBB does a beautiful job of this (from the user point of view - I wouldn't know beautiful code if I looked at it.)

Maybe someone else will pick it up and either fix, or re-write?  Keeping my fingers crossed!  And as I said before, I'll be ready to help with testing, if I'm aware (via subscribing to this topic) that it's happening.
Try SMF-Sisyphus v2.0 release.
https://github.com/realdigger/SMF-Sisyphus/releases/tag/v2.0
Title: Re: Sisyphus
Post by: confuseamuse on November 09, 2017, 02:57:54 PM
Quote from: digger on November 08, 2017, 06:28:31 PM
Quote from: brynn on October 23, 2017, 12:12:56 AM
I suppose SMF's development goals do not necessarily include competing with phpBB (or other forum sw), but phpBB does a beautiful job of this (from the user point of view - I wouldn't know beautiful code if I looked at it.)

Maybe someone else will pick it up and either fix, or re-write?  Keeping my fingers crossed!  And as I said before, I'll be ready to help with testing, if I'm aware (via subscribing to this topic) that it's happening.
Try SMF-Sisyphus v2.0 release.
https://github.com/realdigger/SMF-Sisyphus/releases/tag/v2.0

Sounds good. Do I need to remove the existing version before installing this one?
Title: Re: Sisyphus
Post by: digger on November 09, 2017, 02:59:38 PM
Quote from: confuseamuse on November 09, 2017, 02:57:54 PM
Do I need to remove the existing version before installing this one?
Yes
Title: Re: Sisyphus
Post by: digger on November 14, 2017, 10:09:56 AM
Fixed bug with edit messages https://github.com/realdigger/SMF-Sisyphus/releases/tag/v2.0.1
Title: Re: Sisyphus
Post by: brynn on November 14, 2017, 09:22:31 PM
Downloaded the zip file from - https://github.com/realdigger/SMF-Sisyphus/releases/tag/v2.0.1

When upload was attempted via Package Manager > Download Package > Upload a Package, received this error:

"Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty.  ......"

I'll try the tar.gz and report shortly.

Edit
Ps - why isn't in the SMF mod site?
Title: Re: Sisyphus
Post by: brynn on November 15, 2017, 12:34:05 AM
Ok, the tar.gz file worked, and installed without any problems.

On testing, I find that sometimes the message field doesn't get cleared, and sometimes it does.  It has not been happening consistently, so it's hard to test.

Will keep it installed until I can gather some concrete facts.

Thank you very much for working on this!!
Title: Re: Sisyphus
Post by: brynn on November 21, 2017, 09:20:42 AM
Ok, after a week of testing, the only time the message doesn't get cleared, is if you type into the text field, but decide not to post.  The next time you go to reply, you have to delete what you decided not to post last time.

All in all, I'm going to keep it installed.  It doesn't happen very often that I start to type, but then change my mind about posting.

Thank you very much!  Happy Camper  :D
Title: Re: Sisyphus
Post by: brynn on January 14, 2018, 07:00:17 AM
Hi again,
I've run into a case where this mod is not saving the message.  I have a 60 second delay on posting, to help prevent spam.  But I also have a member who is part roadrunner.

So if the next post is made in less than 60 seconds, an error message is displayed, and the message isn't saved.  Would it be possible to have the message saved, in this situation?

I don't think this would allow spammers to obfuscate the time limit.  Even though their message would be saved, they still would not be able to post for another 60 sec.  But yet my speedy members could retrieve the message which they had previously composed.

I looked through Permissions, and I might have missed it, but I didn't find where this might be changed for different membergroups.  That would actually be my preferred solution.  Because really, spammers are always newbies.  I've never seen an established member suddenly turn into a spammer.  But afaict, it doesn't exist.  Not unless it's using some language that I don't comprehend.


Specifically, this option is Admin Panel > Forum > Posts and Topics > Post settings > Time required between posts from the same IP address.
The Sisyphus version is 2.0.1.  SMF just upgraded to 2.0.15.  Let me know if any further info is needed.

Would this kind of change be possible for this mod?

Thank you very much  :)
Title: Re: Sisyphus
Post by: digger on January 14, 2018, 11:16:37 AM
Quote from: brynn on January 14, 2018, 07:00:17 AM
Hi again,
I've run into a case where this mod is not saving the message.  I have a 60 second delay on posting, to help prevent spam.  But I also have a member who is part roadrunner.

So if the next post is made in less than 60 seconds, an error message is displayed, and the message isn't saved.  Would it be possible to have the message saved, in this situation?

I don't think this would allow spammers to obfuscate the time limit.  Even though their message would be saved, they still would not be able to post for another 60 sec.  But yet my speedy members could retrieve the message which they had previously composed.

I looked through Permissions, and I might have missed it, but I didn't find where this might be changed for different membergroups.  That would actually be my preferred solution.  Because really, spammers are always newbies.  I've never seen an established member suddenly turn into a spammer.  But afaict, it doesn't exist.  Not unless it's using some language that I don't comprehend.


Specifically, this option is Admin Panel > Forum > Posts and Topics > Post settings > Time required between posts from the same IP address.
The Sisyphus version is 2.0.1.  SMF just upgraded to 2.0.15.  Let me know if any further info is needed.

Would this kind of change be possible for this mod?

Thank you very much  :)

I don't think that it's easy to do in mod, because the form is already sent when the required time is checked.
I believe that this is the wrong behavior of the SMF itself. In this case, it should show an error and the message text should be restored, not dropped.

You can turn on this option, then when you return back after error, the text you typed will remain in the form from browser cache
Admin - Configuration  - Server Settings - Cookies and Sessions -  Allow browsers to go back to cached pages
Title: Re: Sisyphus
Post by: brynn on January 14, 2018, 01:35:36 PM
QuoteI don't think that it's easy to do in mod, because the form is already sent when the required time is checked.

I don't understand what you mean by the form being already sent, because I don't understand the technical side of how the forum works.  I just know what I observe when I click.  Do you mean since the Post button was clicked, the message is gone and you can't get it back?

QuoteI believe that this is the wrong behavior of the SMF itself. In this case, it should show an error and the message text should be restored, not dropped.

Are you saying this should be a bug?  Or more of a non-existant new feature? Or other?

QuoteYou can turn on this option, then when you return back after error, the text you typed will remain in the form from browser cache
Admin - Configuration  - Server Settings - Cookies and Sessions -  Allow browsers to go back to cached pages

As I said, I don't understand how the forum works in a technical way.  So please forgive the ignorance.  But somehow I have the impression that whatever might be typed in the text fields, whether in Quick Reply or the full editor, doesn't get to be part of the cache, until it's posted.  Doesn't text have to be actually posted, to become cached?

I'm probably wrong about that.  But what about the help info associated with that option:

QuoteTurning this on will decrease the bandwidth your forum uses, and make it so clicking back will not reload the page - the downside is that the (new) icons won't update, among other things. (unless you click to that page instead of going back to it.)

I'm not sure what "(new) icons" are, or the "among other things" either.  But doesn't that mean that anytime someone uses the browser back button, it will re-load the cached page (instead of only for this error)?  It seems a little bit like overkill.  Plus I would worry about getting complaints -- if not about "(new) icons" whatever they are, then "other things" whatever they are.

"(new) icons" -- The icon which tells you there are new messages on a board?  Or the icon that tells you there are new messages in a topic?  I'm not sure I could do without either....  Hhm....Oh, does it mean if I use the Back button, it won't be showing any new messages which might have been posted since I left that page?

Actually, I think I might have used a forum once which was set to show cached pages on Back, and it drove me nuts.  It was always Back and Refresh, instead of just Back.

Title: Re: Sisyphus
Post by: digger on January 18, 2018, 07:14:29 PM
Quote from: brynn on January 14, 2018, 01:35:36 PM
QuoteI don't think that it's easy to do in mod, because the form is already sent when the required time is checked.

I don't understand what you mean by the form being already sent, because I don't understand the technical side of how the forum works.  I just know what I observe when I click.  Do you mean since the Post button was clicked, the message is gone and you can't get it back?
Message is considered to be sent when the Post button was clicked. Mod doesn't know what happened next, message already sent in any case.

Quote
QuoteI believe that this is the wrong behavior of the SMF itself. In this case, it should show an error and the message text should be restored, not dropped.

Are you saying this should be a bug?  Or more of a non-existant new feature? Or other?
It's a non-existant feature. Message shouldn't be dropped if a not crirical error occurred.

Title: Re: Sisyphus
Post by: adapa on November 08, 2018, 10:46:26 AM
Quote from: digger on January 18, 2018, 07:14:29 PM
Message is considered to be sent when the Post button was clicked. Mod doesn't know what happened next, message already sent in any case.
It's a non-existant feature. Message shouldn't be dropped if a not crirical error occurred.

Thanks for your work on this mod. it's a life saver. imo it should be in the top 20 mods for smf- maybe i'll do a list ;)
Title: Re: Sisyphus
Post by: Grammy on January 24, 2021, 07:33:58 PM
So, just wondering.....   I understand that this functions in the event of a browser crash but our problem has been people getting logged out and forgetting to save their work, then when they log back in, it's all gone.  Should this also work in that scenario?

Thanks.   :)
Title: Re: Sisyphus
Post by: vbgamer45 on January 24, 2021, 07:51:41 PM
Also any chance for WYSIWYG support?
Title: Re: Sisyphus
Post by: Mick. on January 24, 2021, 08:39:21 PM
Quote from: Grammy on January 24, 2021, 07:33:58 PM
So, just wondering.....   I understand that this functions in the event of a browser crash but our problem has been people getting logged out and forgetting to save their work, then when they log back in, it's all gone.  Should this also work in that scenario?

Thanks.   :)
See the first post...
Title: Re: Sisyphus
Post by: Mick. on January 24, 2021, 08:45:48 PM
Quote from: Grammy on January 24, 2021, 07:33:58 PM
So, just wondering.....   I understand that this functions in the event of a browser crash but our problem has been people getting logged out and forgetting to save their work, then when they log back in, it's all gone.  Should this also work in that scenario?

Thanks.   :)
Not to Ninja this support thread but see this, one of mine...... you can add a message to the post window. https://custom.simplemachines.org/mods/index.php?mod=1484
Title: Re: Sisyphus
Post by: Grammy on January 24, 2021, 09:14:20 PM
Quote from: Mick. on January 24, 2021, 08:45:48 PMNot to Ninja this support thread but see this, one of mine...... you can add a message to the post window. https://custom.simplemachines.org/mods/index.php?mod=1484


Awesome, thanks, Mick!   :D  (And my message will say, 'SAVE your work!')