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 five + one?

Go back

Topic review (newest first)

lawlsuit
01-17-2008 16:54:53

Oh man, this is awesome. I'll try it out and see how it goes.

Thanks a million, Marriland. *___*

Marriland
01-16-2008 17:24:40

Wac hit it right on the head, pretty much. As people were complaining about the high-quality art being flooded by the not-as-high quality art, I was forced to act and had to make a few small adjustments to the code to prevent people from using the board (but still allowing them to comment).

I forgot to make exact notes on what was altered, but here are some of the changes made to the scripts to allow such a board (please consider this was done on a version 1.3.1 board, quite some time ago):

MAKE THESE CHANGES ON ALL OEKAKIS YOU HAVE SET UP! (make backups, too)

modflags.php
Find the part where it says the following (about line 116):

Code:

<? if ($flags['admin']) { ?>

                <input type="checkbox" name="draw_user" value="D" <?if (strstr($row2['usrflags'],'D')) { echo 'checked="checked" '; } ?>/><?=$langop_type_daccess?> 
                <input type="checkbox" name="anim_user" value="M" <?if (strstr($row2['usrflags'],'M')) { echo 'checked="checked" '; } ?>/><?=$langop_type_aaccess?>  
                <input type="checkbox" name="upload_user" value="U" <? if (strstr($row2['usrflags'],'U')) { echo 'checked="checked" '; } ?>/><?=$langop_type_uaccess?>
                <input type="checkbox" name="immunity" value="I" <? if (strstr($row2['usrflags'],'I')) { echo 'checked="checked" '; } ?>/><?=$langop_type_immunity?> 
                <input type="checkbox" name="general" value="G" <? if (strstr($row2['usrflags'], 'G')) { echo 'checked="checked" '; } ?>/>&nbsp;<?=$langop_type_guser?> 

<? } ?>

Add this in here somewhere (be mindful of the <br /> tags that are there; you may need to adjust some things):

Code:

                <input type="checkbox" name="pro_user" value="R" <? if (strstr($row2['usrflags'], 'R')) { echo 'checked '; } ?>/>&nbsp;Pro User<br />

(Too lazy to use the other languages, since I only use English.)

Scroll down a little bit and you'll find a bunch of table rows and cells. Look for one like this (about line 155):

Code:

            <tr>
            <td class="infoask" valign="top">
                <strong><?=$langop_type_aaccess?></strong>:
            </td>
            <td class="infoenter" valign="top">
                <?=$langop_type_gaaccess?> 
            </td>
            </tr>

And add right below it:

Code:

            <tr>
            <td class="infoask" valign="top">
                <strong>Pro User</strong>:
            </td>
            <td class="infoenter" valign="top">
                Allows the user to draw in the Oekaki Pro board. 
            </td>
            </tr>

Save the modflags.php file and make the changes on any other modflags.php files in your other boards.

functions.php
Find this line and you'll see the relevant code:

Code:

// User Flag Modification (from modflags.php)

Scroll down a bit and you will see a variable called $new_flags. It probably looks like this:

Code:

    $new_flags =
        $_POST['general'].
        $_POST['draw_user'].
        $_POST['anim_user'].
        $_POST['upload_user'].
        $_POST['adult_user'].
        $_POST['immunity'];

Right before the semi-colon (wink, type a dot (.), make a new line, and then type $_POST['pro_user']. It should look like this:

Code:

    $new_flags =
        $_POST['general'].
        $_POST['draw_user'].
        $_POST['anim_user'].
        $_POST['upload_user'].
        $_POST['adult_user'].
        $_POST['immunity'].
        $_POST['pro_user'];

That's everything you need to do to all of your boards. Save the changes and upload all of the files!
______________________________

In any boards that you want marked as "Pro" (as I called it), make the following changes:
MAKE THESE CHANGES TO ANY "PRO" OEKAKI FILES:

header.php
Look for this line around line 144:

Code:

    if ($flags['D']) {
        $right_menu[] = '<a href="draw.php"><strong>'.$langop_word_draw.'!</strong></a>';
    }

Simply change that $flags['D'] to $flags['R'] and the option to draw will not appear.

noteBBS.php
oekakiBBS.php
paintBBS.php
shiBBS.php
(all these files)
In all of these files, right near the top, there's a few lines that look like this:

Code:

// Check Draw access

if (!$flags['D']) {
    report_err($langop_err_drawaccess);

}

Replace the 'D' with a 'R', and then you can change the reported error if you want to as well. Mine looks like this:

Code:

// Check Draw access
if (!$flags['R']) {
    report_err('You do not have access draw on the Marriland Oekaki Pro board. To gain access, you must first draw a high-quality Oekaki drawing and an Oekaki Administrator will determine if you will be accepted in.');
}

I think that's probably it. Hopefully. Sorry it's a bit sloppy. I have no problem if you or anyone else uses anything I listed here, credit or no credit.

lawlsuit
01-05-2008 03:06:24

Ah, I see. If I knew enough about php I'd try to code a special flag myself, but alas, I don't... x'D; Oh well...
Thanks so much for answering my questions! :3 I really appreciate it. <3

Waccoon
01-05-2008 02:40:41

Sorry, but no.  All the boards share the same member information.

My guess (given the old version number used on that oekaki board) is that they are using a modified board with a special flag that enables draw access on the Pro board.

BTW, don't feel bad about asking questions!  If anything, they give me more ideas to add to my to-do list.  wink

lawlsuit
01-05-2008 01:10:06

I'm trying to give my oekaki a Pro board where only certain members can draw but everyone can comment, much like this one: http://www.marriland.com/oekakipro/

The problem is, even when I unchecked drawing/animation/upload access boxes during installation, when the board is installed, everyone seems to be allowed to draw there (I took a look at Modify Permissions). When I try to uncheck the boxes for members in Modify Permissions from the Pro board, their ability to draw is affected in ALL the boards, not just the pro board.

Is there any way I can set up the Pro Board permissions so that only certain people can draw but everyone can comment? Thanks and sorry for another post! n_n;

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB