The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Auto save posts/topics

View previous topic View next topic Go down

In progress Auto save posts/topics

Post by luiz1877 on 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
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 on December 30th 2013, 10:05 pm

There a draft option:

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


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


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Auto save posts/topics

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

Im not sure its working

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 on 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.


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


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Auto save posts/topics

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

Oh, ok let me try again.

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 on 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.


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


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 on 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
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 on 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

Guest
Guest


Back to top Go down

In progress Re: Auto save posts/topics

Post by luiz1877 on 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
Forumember

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

http://everyonesblog.net

Back to top Go down

View previous topic View next topic Back to top


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