NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

Post a reply

Write your message and submit
Options
Humanity test

What is eight + one?

Go back

Topic review (newest first)

Ashass_Lazy
02-06-2009 10:52:03

Sorry for the late reply, works perfect, thanks!

ekaki
02-04-2009 18:29:34

Very good, it's a shame that when a user submits an image
the 'warning' dialogue still appears, so a new user may end
up confused & click the wrong option, but it's still very handy.

smile

Trunksi
01-07-2009 13:05:16

w00t thx that works big_smile
(also edited notebbs.php for paintbbs with palette thing)

thank you so much smile now I hope I'll not lose any more pictures by closing the window or clicking on links by accident D:

Waccoon
01-07-2009 04:14:07

It should be added only to the applet screen, which means being put directly into "chibipaint.php", "paintBBS.php", and "shiBBS.php".  It would be inserted as follows:

Code:

    <link rel="stylesheet" type="text/css" href="<?=$cssinclude?>" title="<?=$template_name?>" />

    <script type="text/javascript" src="Poteto.js">
    </script>
    <script type="text/javascript">
        function goodbye(e) {
            if(!e) e = window.event;

            //e.stopPropagation works in Firefox.
            if (e.stopPropagation) {
                e.stopPropagation();
                e.preventDefault();
            } else {
                //e.cancelBubble is supported by IE - this will kill the bubbling process.
                e.cancelBubble = true;
                e.returnValue = 'Are you sure you want to leave?'; //This is displayed on the dialog
            }
        }
        window.onbeforeunload=goodbye;
    </script>
</head>
Twighlight
01-06-2009 18:00:36

where exactly would one add the code?

Trunksi
10-05-2008 04:55:35

It's okay big_smile just take you time :3
I was just curious because I don't want to lose all the pictures and members.
So then big_smile I'm looking forward to the new version

Waccoon
10-05-2008 01:22:58

@Trunksi

Yes, but the new board is quite a while off in the future...  a year at least.  I haven't done much coding, lately.

Trunksi
10-04-2008 11:04:31

big_smile woot sounds great *clap*
will this be implented in the future versions?
(since I don't know which files to edit with this code and I don't want to destroy everything ><)


oh btw OffTopic @Waccoon
I read you're planning a completly new version of an oekaki board thingy
will we be able to update wacintaki to this new version?

Waccoon
08-16-2008 04:12:17

Oh, very good!  I never knew there was a way to stop the unload event.

Ashass
08-15-2008 11:30:49

Alt + R (refresh)
F5 (refresh)
backspace (when clicked on the web page and not the applet, this is go back)
Mouse...4 (generally intercepted as back)


Back button
Closing the window


Those are about all I can think of, all of which should have a warning -- something like "You are about to navigate away from the page, are you sure you want to do this? Yes/no"

Something like this should work (http://www.openjs.com/scripts/events/ex … mation.php)

Code:

function goodbye(e) {
    if(!e) e = window.event;
    //e.cancelBubble is supported by IE - this will kill the bubbling process.
    e.cancelBubble = true;
    e.returnValue = 'You sure you want to leave?'; //This is displayed on the dialog

    //e.stopPropagation works in Firefox.
    if (e.stopPropagation) {
        e.stopPropagation();
        e.preventDefault();
    }
}
window.onbeforeunload=goodbye;

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB