Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
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
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:
$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:
$left_menu[5] = 'blah';
To add a menu item for only one group of people, you need to check user flags:
// 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