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 four + three?

Go back

Topic review (newest first)

rainbow
08-31-2008 21:08:08

Waccoon wrote:

I got your e-mail and sent a reply, but maybe it didn't go through.  I'll send it again.

Alrighty! I did a lot of tests through my test account to see if the oekaki was functioning and it seems that the oekaki is doing okay now after the upgrade with the exception of a few bugs found elsewhere on the oekaki that still need to be worked out. But it'll eventually have to be worked out one by one. smile

Waccoon
08-30-2008 02:32:59

I got your e-mail and sent a reply, but maybe it didn't go through.  I'll send it again.

rainbow
08-29-2008 14:19:46

Umm, Wac. I need help again. I'm stuck. sad

A couple of days ago, when I added the functionality to toggle between [Thumb] and [Unthumb] I wound up with a parse error on line 555 of index.php in which that was corrected, but now I wound up with a parse error on line 1395:

Parse error: syntax error, unexpected '}' in /home/rainbow/public_html/index.php on line 1395

I've been trying so hard to find ways to correct the problem using various text editors, including having to add the <? and ?> and remove it, but it seems that it's no help at all and I believe that attempting to remove the } on lines 1395 and 1398 will cause the main page of the oekaki to be malformed.

I was hoping that there would a way to correct this error somehow...

I tried to e-mail you the other day, but I haven't got a response yet.

rainbow
08-26-2008 14:03:28

Waccoon wrote:

I'm not upgrading to Wax Poteto 1.3.0.

I admit this is confusing, but as of Wax Poteto version 5.7.0, the board is now using the Wacintaki 1.3.0 database and config file.  So, the updater says it is updating to 1.3.0.  After you click "Next", however, it will update normally.

The problem is that there are version numbers in the boot.php file, the config file, and the database.  If those numbers are modified manually, the updater can get confused.  I don't think the updater will damage anything since it has a number of sanity checks, but it's pretty clear that one of the version numbers is missing.  You are allowed to put a new value in the "$mod_version" variable, but all other variables must be left alone.

To fix this, you will have to send me a copy of your boot.php file and your config file.  If you have made changes to your common.php and functions.php files, you should send those, too.  Once I patch in the correct version numbers, the updater should work as normal.  The only file that is modified by the updater is the config file.

Basically, the boot.php file should have these version numbers:

$version       = '5.7.1';
$cfg_ver_check = '1.3.0';
$cfg_db_check  = '1.3.12';


But, the config file needs to have this number:

$wax_cfg_ver = "5.5.6";

When making mods to any codebase, it's highly recommended that you group together your changes into blocks when possible, and copy them into the latest version of the code.  Trying to copy the new code into your modified code is a maintenance nightmare.

The oekaki is working again, but I'm gonna be posting a list of bugs once I'm all finished making modifications to my remaining files in my new forum thread. wink

Waccoon
08-26-2008 06:42:38

I'm not upgrading to Wax Poteto 1.3.0.

I admit this is confusing, but as of Wax Poteto version 5.7.0, the board is now using the Wacintaki 1.3.0 database and config file.  So, the updater says it is updating to 1.3.0.  After you click "Next", however, it will update normally.

The problem is that there are version numbers in the boot.php file, the config file, and the database.  If those numbers are modified manually, the updater can get confused.  I don't think the updater will damage anything since it has a number of sanity checks, but it's pretty clear that one of the version numbers is missing.  You are allowed to put a new value in the "$mod_version" variable, but all other variables must be left alone.

To fix this, you will have to send me a copy of your boot.php file and your config file.  If you have made changes to your common.php and functions.php files, you should send those, too.  Once I patch in the correct version numbers, the updater should work as normal.  The only file that is modified by the updater is the config file.

Basically, the boot.php file should have these version numbers:

$version       = '5.7.1';
$cfg_ver_check = '1.3.0';
$cfg_db_check  = '1.3.12';


But, the config file needs to have this number:

$wax_cfg_ver = "5.5.6";

When making mods to any codebase, it's highly recommended that you group together your changes into blocks when possible, and copy them into the latest version of the code.  Trying to copy the new code into your modified code is a maintenance nightmare.

rainbow
08-25-2008 09:20:14

Um, Wac. I have a problem here. There seems to be some sort of a version conflict here. I'm getting an error message when I try to access my oekaki:

Please run the updater.

Config required: v1.3.0
Config present: v

The current version of my heavily modified Wax Poteto is version 5.7.1 and I appearently got this message, when I tampered with the boot.php file, cpanel.php file and the config.php file where the $wax_cfg_ver = "5.5.6"; variable existed.

And when I tried to update the oekaki, it claimed that it was OekakiPoteto 5.0.0 and it was upgrading to Wax Poteto 1.3.0. I'm not upgrading to Wax Poteto 1.3.0.

Wax Poteto updater: v1.3.0

Detected version of OekakiPoteto: 5.0.0

When when I attempted to update the oekaki, I wound up with this error message:

Update from OekakiPoteto 5.x to Wax 5.5.6...
MySQL: Table 'rainbow_ppg.op_oekakichatmodusers' doesn't exist
MySQL: Table 'rainbow_ppg.op_oekakichatmod' doesn't exist
MySQL: Table 'rainbow_ppg.op_oekakichatmod' doesn't exist
MySQL: Table 'rainbow_ppg.op_oekakichatmod' doesn't exist

STOP: Cannot add avatar field to database. Check the database connection and run the updater again

If problems persist, try visiting the NineChime Support Forum.

How can I get the oekaki updated to Wax Poteto 5.7.1 without having to damage the MySQL database?

I worked so hard having to fix up my oekaki from the day where I upgraded it to version 5.7.1 and I'm almost finished.

Waccoon
08-20-2008 02:12:09

You're using both "$row" and "$rows" in that code, but "ldelpics.php" now uses "$main_row" as the result array.  In each file you're modifying, check for the "mysql_fetch_array()" function to see if the names of the result arrays has changed.  I had to change some names because some parts of the board now deal with images by any member, rather than just the current member, to aid administration.

Also, you might want to consolidate some of the expressions into variables to make things easier, such as $my_image = $p_pic.$row['PIC_ID'].'.'.$row['ptype'];  Just make sure that the variable is cleared or overwritten if you're in a loop, so images are not accidentally printed more than once.

Feel free to e-mail me any files you like.  I can check for some other "gotchas".

rainbow
08-19-2008 12:53:01

The paintsave.php file remains unmodified. In order to read the images and thumbnails, would I have to modify the paintsave.php file too?

I did modify the ldelpics.php file and replaced the code between lines 100 and 109 with:

Code:

<? if (($imagewidth) < 64) { ?>
    <img src="<?=$p_pic.$rows['PIC_ID'].'.'.$rows['ptype']; ?>" class="imghover" alt="pic" />
    <?=nifty2_convert($row['title']);?>
<? } else { ?>
    <img src="<?=$p_pic.$rows['PIC_ID'].'.'.$rows['ptype']; ?>" class="imghover" width="64" alt="pic" />
    <?=nifty2_convert($row['title']);?>
<? } ?>
<? $charactercount = nifty2_convert(strlen($rows['title'])); ?>
<? $wordcount = count(explode(" ", nifty2_convert($rows['title']))); ?>
<acronym title="<? echo 'Characters: ', (number_format($charactercount)), ', ', 'Words: ', (number_format($wordcount)); ?>"><a href="<?= $p_pic.$rows['PIC_ID'].'.'.$rows['ptype']; ?>" class="imghover" alt="pic" /><?=nifty2_convert($rows['title']);?></a></acronym>

And I still got this warning message. sad

Do you mind if I send you the ldelpics.php file or not? If so, I'll take a look at it and try modifying the remaining two files as well.

(I evidently got a couple more things to fix before my oekaki is fully functional again.)

Waccoon
08-19-2008 06:01:57

Oh yeah, I tried to send a picture, and it won't let me.  Did you modify the picture save code or "paintsave.php" a lot so you could collect information for your statistics page?  That might be troublesome to fix.

Waccoon
08-19-2008 05:56:42

Newer versions of the oekaki support more than just PNG files.  However, this extra flexibility comes at the price of complexity.  If you're trying to get extra information about the pictures (such as filesize), then you must change how the filename is being sent to the getimagesize() function.

To properly use images, you must use the $p_pic, $t_pic, and $r_pic variables, which control the path for pictures, tiny thumbnails, and large thumbnails, respectively.

Also, you must use the correct file extension.  Old versions of Wax just use PNG.  New versions must use the extension saved in the database.

To read an image, you would use:

Code:

$p_pic . $row['PIC_ID'] . '.' . $row['ptype']

WHERE

          $row = (info about picture slot)
        $p_pic = './pictures/';
        $r_pic = './pictures/r';
        $t_pic = './pictures/t';
$row['PIC_ID'] = (picture number);
           '.' = (dot in filename);
 $row['ptype'] = (file extension for picture);

To read thumbnails, you must use the correct variable names:

Code:

if (!empty ($row['ttype']) {
     $t_pic . $row['PIC_ID'] . '.' . $row['ttype']
}
if (!empty ($row['ttype']) {
     $r_pic . $row['PIC_ID'] . '.' . $row['rtype']
}

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB