The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Auto save posts/topics

2 posters

Go down

In progress Auto save posts/topics

Post by luiz1877 December 30th 2013, 9:57 pm

Is there a auto save code that works on forumotion forums that saves posts/topics while you are writing them? I think i use phpbb3 and my forum is everyonesblog.net(Its forumotion)
luiz1877
luiz1877
Forumember

Male Posts : 155
Reputation : 2
Language : English | Portuguese

http://everyonesblog.net

Back to top Go down

In progress Re: Auto save posts/topics

Post by SLGray December 30th 2013, 10:05 pm

There a draft option:  

Administration Panel > General > Messages & Emails > Configuarion
Messages Section
Activate drafts messages functionality:


Auto save posts/topics Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50871
Reputation : 3490
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 December 30th 2013, 10:19 pm

Im not sure its working
luiz1877
luiz1877
Forumember

Male Posts : 155
Reputation : 2
Language : English | Portuguese

http://everyonesblog.net

Back to top Go down

In progress Re: Auto save posts/topics

Post by SLGray December 30th 2013, 10:20 pm

Have you tried it? It will not work when you first create a new topic. It will work on the replies.


Auto save posts/topics Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50871
Reputation : 3490
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 December 30th 2013, 10:21 pm

Oh, ok let me try again.
luiz1877
luiz1877
Forumember

Male Posts : 155
Reputation : 2
Language : English | Portuguese

http://everyonesblog.net

Back to top Go down

In progress Re: Auto save posts/topics

Post by SLGray December 30th 2013, 10:25 pm

For an example, press the preview on this topic, and you should see the draft button between the preview button and send button.


Auto save posts/topics Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50871
Reputation : 3490
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 December 30th 2013, 10:29 pm

Oh i see it! Thanks! s there any chance you could make it auto save so if you accidently change pages it will be auto manically saved. Or/and add this to new topics?
luiz1877
luiz1877
Forumember

Male Posts : 155
Reputation : 2
Language : English | Portuguese

http://everyonesblog.net

Back to top Go down

In progress Re: Auto save posts/topics

Post by Guest December 31st 2013, 9:59 am

luiz1877 wrote:Oh i see it! Thanks! s there any chance you could make it auto save so if you accidently change pages it will be auto manically saved. Or/and add this to new topics?

Yes you can do it,
Put all pages
Code:
        function save_message() {
            ('Copyright © AvacWeb. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.');
            my_setcookie('saved_msg', escape(document.post.message.value), false);
            var note = document.createElement('div');
            note.id = 'saved_note';
            note.innerHTML = 'Your message has been saved automatically.';
            document.body.appendChild(note);
            setTimeout(function() { document.body.removeChild(document.getElementById('saved_note')); }, 3000);
        }
        $(function() {
            if(document.post && document.post.message && document.post.id !== 'quick_reply') {
                var saved_msg = my_getcookie('saved_msg');
                if(saved_msg && confirm('Do you want to restore your previous message?')) document.post.message.value += unescape(saved_msg);
                delete_cookie('saved_msg');
                setInterval(save_message, 30000);
                $(document.post.post).click(function() { delete_cookie('saved_msg'); });
            }
        });
In css
Code:
        #saved_note {
            position: fixed;
            bottom: 10px;
            right: 10px;
            padding: 5px 10px;
            border: 1px solid;
            color: #c05;
            background: #E1EBF2;
        }

Source: Avacweb
avatar
Guest
Guest


Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 December 31st 2013, 8:58 pm

Yeah i've seen that code but the little message made with css doesnt work on my forum for some reason. It might be because i probably have a few errors in the CSS that i dont know how to fix. (i dont even know if the javascript is working because the message wont pop-up)
luiz1877
luiz1877
Forumember

Male Posts : 155
Reputation : 2
Language : English | Portuguese

http://everyonesblog.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum