NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 01-22-2008 19:30:23

vege
New member

Template "Problem"

well, i'm just making some templates for my oekakiboard (Wacintaki 1.2.6)..
But somehow i just couldn't figure out if there is a way to change the header of the board with the templates.
since some of the members asked me if i could put some different series on, i'd need for every template a header.

so i wanted to ask if there is a code, to change that as well... (i'm not that good at php and css)


[uhm.. sorry for my crappy english.. it's not my mother tongue lol)

Offline

#2 01-24-2008 23:10:38

Waccoon
Administrator

Re: Template "Problem"

Sorry, but the menus in Wacintaki are dynamic, so they cannot be customized in the templates.  You'll have to edit the "header.php" file to change the menus.

The way the Wacintaki menu system works is that there are two arrays that contain the menu items.  The arrays are $left_menu[] for items on the left side of the screen, and $right_menu[] for items on the right.  Simply push HTML-formatted text onto the array to add a menu item.  The menu system will automatically add the separators and proper spacing.

To append an array, you assign text to that array without an index, as follows:

Code:

$left_menu[] = '<a href="blah">HTML</a>';

For reference, here's an array with an index, which is not what you want to do for the menus:

Code:

$left_menu[5] = 'blah';

To add a menu item for only one group of people, you need to check user flags:

Code:

// For administrators only
if ($flags['admin']) {
    $right_menu[] = '<a href="admins_only.php">VIP list</a>';
}

// For people with upload access only
if ($flags['U']) {
    $right_menu[] = '<a href="upload.php">Upload</a>';
}

Offline

#3 01-26-2008 08:15:20

vege
New member

Re: Template "Problem"

thank yyou for explaining.. smile *huggs*

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB