NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 07-16-2006 14:37:10

lain
New member

Multiple/Forced Templates and Thumbnail of Most recent image.

I have a multi-board oekaki, I was wondering if It was possible to give each board a seperate template (fitting to it's theme.) and make it so the template cannot be changed. I guess deleting all the other templates would work, but.. Whenever the template is changed it seems to effect all boards. Is it possible to make a different one for each?

Also, I'm curious how they get the thumbnail of the recent drawing on a seperate page. Like Oekaki Central and Ochikaki. The former is more important.. but I'm curious about this one, as it could be useful.

Offline

#2 07-17-2006 01:38:27

Waccoon
Administrator

Re: Multiple/Forced Templates and Thumbnail of Most recent image.

It's not possible to choose a different template for each board, since all boards share the same user profile.  The only way to get around this is to delete all templates but one, and give the board-specific template the same name.  So, your templates might both be called "default.php", but they are actually different templates.

Also, I'm curious how they get the thumbnail of the recent drawing on a seperate page.

That's a pain, because you have to hard-code all the table names of each board, as well as the paths to each board's pictures folder, in the script that shows the thumbnails.

Here's a basic query system, though it is non-functional in its present form:

Code:

<?php

// Create a loop that sets $prefix, $t_pic, and $p_pic

$rec_result = mysql_query ("SELECT * FROM {$prefix}oekakidta ORDER BY postdate DESC LIMIT 1");

if ($rec_result) {
    $rec_row = mysql_fetch_array ($rec_result);

    if (!empty ($rec_row['ttype'])) {
        $name = $t_pic.$rec_row['PIC_ID'].'.'.$rec_row['ttype'];
    } else {
        $name = $p_pic.$rec_row['PIC_ID'].'.'.$rec_row['ptype'];
    }
}

// Print link here w/formatting
echo "<img src=\"{$name}\" height=\"100\" />\n";

// Loop here

?>

Also note that this does not handle adult images or links.  How that is done depends on where and how you want the thumbnails to be displayed.

Offline

#3 07-17-2006 15:37:51

lain
New member

Re: Multiple/Forced Templates and Thumbnail of Most recent image.

Thanks for the help, but I have one more question -- Is it possible to change the cursor in shi pro? Sorry for asking so much.

Last edited by lain (07-17-2006 16:36:43)

Offline

#4 07-18-2006 04:32:49

Waccoon
Administrator

Re: Multiple/Forced Templates and Thumbnail of Most recent image.

Sure.  To change the cursor, open "cursor.gif" into a paint program that supports saving transparrent GIFs.  The center of the image is the "point".

To get rid of the cursor, open up "draw.php" and change this:

Code:

LOOK FOR:

$app_params = 'tools=pro&cursor=cursor&';

CHANGE TO:

$app_params = 'tools=pro&';

By default, ShiPro doesn't have a crosshair cursor, which I find really annoying.  My new oekaki will have options that will allow people to select how they want the applet to work.

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB