NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 10-06-2008 01:59:22

rainbow
Member

Location bug under Wax Poteto 5.7.1...

Wac, almost 2 1/2 years ago, I wrote a forum thread regarding the location bug that failed to read "Animated NoteBBS" or "Animated PaintBBS":

http://www.ninechime.com/forum/viewtopic.php?id=223

Now since I've upgraded the Wax Poteto to version 5.7.1 the Who's Online popup window once again doesn't say that the user is doing a animation drawing at all and it doesn't even tell that the user is using Shi-Painter Pro also. sad

This is what I got in the boot.php file so far:

Code:

            'noteBBS'=>$langop_online_palpaintbbs,
            'noteBBS'=>$langop_online_aninbbs,
            'oekakiBBS'=>$langop_online_nmrlobbs,
            'oekakiBBS'=>$langop_online_aniobbs,

Code:

            'shiBBS'=>$langop_word_shipainter,
            'shiBBS'=>$langop_word_anishipainter,
            'shiBBS'=>$langop_word_shipainterpro,
            'shiBBS'=>$langop_word_anishipainterpro,

I already got the following in the english.php file:

Code:

$langop_word_anishipainter = "Animated Shi-Painter"
$langop_word_shipainterpro = "Shi-Painter Pro"
$langop_word_anishipainterpro = "Animated Shi-Painter Pro"

How can I fix this without causing anymore parse errors referencing the boot.php file?

Last edited by rainbow (10-06-2008 02:00:05)

Offline

#2 10-06-2008 05:08:24

Waccoon
Administrator

Re: Location bug under Wax Poteto 5.7.1...

You can't easily do this, because the location is determined by the name of the script.  ShiPainter "Pro" and animation are sent to the script as parameters.

If you really want to change this:

{code}(OBSOLETE){/code}

Last edited by Waccoon (10-07-2008 04:31:59)

Offline

#3 10-06-2008 06:27:35

rainbow
Member

Re: Location bug under Wax Poteto 5.7.1...

Waccoon wrote:

You can't easily do this, because the location is determined by the name of the script.  ShiPainter "Pro" and animation are sent to the script as parameters.

If you really want to change this:

Code:

$loc = $langop_word_view;
foreach ($loc_list as $loc_key=>$loc_val) {
    if (strpos ($my_script, $loc_key) !== FALSE) {
        $loc = $loc_val;
        break;
    }
}

if ($my_script == 'shiBBS' && w_gpc('anim', 'i') == 1) {
    $loc = 'ShiPainter Animated';
}
if ($my_script == 'shiBBS' && w_gpc('tools') == 'pro') {
    $loc = 'ShiPainter Pro';
    if (w_gpc('anim', 'i') == 1) {
        $loc = 'ShiPainter Pro Animated';
    }
}
if ($my_script == 'chibipaint' && w_gpc('anim', 'i') == 1) {
    $loc = 'Chibi Paint Animated';
}

It didn't work. This is what I got so far locals for animated PaintBBS/NoteBBS/OekakiBBS applets as well as animated Shi-Painter and Shi-Painter Pro.

Code:

            if ($my_script == 'paintBBS' && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if ($my_script == 'noteBBS' && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if ($my_script == 'oekakiBBS' && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aniobbs;
            }

            if ($my_script == 'shiBBS' && w_gpc('anim', 'i') == 1) {
                $loc = $langop_word_anishipainter;
            }

            if ($my_script == 'shiBBS' && w_gpc('tools') == 'pro') {
                $loc = $langop_word_shipainterpro;
                if (w_gpc('anim', 'i') == 1) {
                    $loc = $langop_word_anishipainterpro;
                }
            }

Despite the title names of the applets being "Animated NoteBBS", "Animated OekakiBBS", "Animated Shi-Painter", Normal and Animated Shi-Painter Pro,  the locals in the Who's Online status turned out as "Normal PaintBBS", "Palette PaintBBS", "Normal OekakiBBS" and "Shi-Painter". How can I get this fixed without having the paintBBS, noteBBS, oekakiBBS and shiBBS variables interfering with the locals for animated versions of the applets as well as locals for ShiPainter Pro?

Offline

#4 10-07-2008 04:30:51

Waccoon
Administrator

Re: Location bug under Wax Poteto 5.7.1...

Try this.

Code:

            if (strpos ($my_script, 'paintBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if (strpos ($my_script, 'noteBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if (strpos ($my_script, 'oekakiBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aniobbs;
            }

            if (strpos ($my_script, 'shiBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_word_anishipainter;
            }

            if (strpos ($my_script, 'shiBBS') !== FALSE && w_gpc('tools') == 'pro') {
                $loc = $langop_word_shipainterpro;
                if (w_gpc('anim', 'i') == 1) {
                    $loc = $langop_word_anishipainterpro;
                }
            }

Offline

#5 10-07-2008 05:11:01

rainbow
Member

Re: Location bug under Wax Poteto 5.7.1...

Waccoon wrote:

Try this.

Code:

            if (strpos ($my_script, 'paintBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if (strpos ($my_script, 'noteBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aninbbs;
            }

            if (strpos ($my_script, 'oekakiBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_online_aniobbs;
            }

            if (strpos ($my_script, 'shiBBS') !== FALSE && w_gpc('anim', 'i') == 1) {
                $loc = $langop_word_anishipainter;
            }

            if (strpos ($my_script, 'shiBBS') !== FALSE && w_gpc('tools') == 'pro') {
                $loc = $langop_word_shipainterpro;
                if (w_gpc('anim', 'i') == 1) {
                    $loc = $langop_word_anishipainterpro;
                }
            }

It worked! big_smile

I'm pretty glad that the location bug has been taken care of now. smile

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB