Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
Sorry if this is a stupid question, but how would you remove the "view" and search bar section of the entire layout of the oekaki board. And also add/remove some additional links from the "faq, memberlist, rules" part of the bar?
An example would be something like this: http://pthithu.free.fr/oekaki/
Offline
That code is located in "header.php". There are enclosure tags for all the major parts of the header, including "<!-- Banner -->", "<!-- Menubar-->", "<!-- Options -->", and "<!-- Adminbar -->".
The code between the "<!-- Options -->" and "<!-- /Options -->" tags (note the slash) can simply be deleted entirely. It is just markup, so it will remove the view options and search from the board without causing functional problems.
As for the code for the Menubar, menu items are pushed onto an array, and each item is then rendered with the make_list() function call, which adds the separators and extra markup. You can push any link or span you like onto the arrays. Here is an example:
if ($flags['D']) { $right_menu[] = '<a href="draw.php"><strong>'.$langop_word_draw.'!</strong></a>'; }
What this does is check to see if the member has draw access, and if so, adds the link to the $right_menu array. The empty brackets (empty array index) tells PHP to simply add the code to the array, instead of replace an existing array item. Wacintaki adds items to arrays so it's easy to dynamically change the menus depending on whether someone is logged in or not, or has special status. Therefore, you'll see a lot of flag checks and stuff in that area. The $OekakiU variable is what shows whether someone is logged in or not. If the variable is empty, the person is a guest. Otherwise, $OekakiU will contain the user name of the member. Check that it is empty using if (!empty ($OekakiU)) {. Some people do an equality check, but this is a bad way of doing it (if ($OekakiU == "")) {).
Be careful when messing around with the Menubar. If you make a mistake, you will get a PHP error and the page will not show at all, instead of only a partial page like you will get with HTML. Make backups of your work, and pay close attention to the syntax of surrounding lines.
General guidelines for PHP are:
- PHP code starts with the <? or <?php tags, and ends with ?>
- Lines of code must end with a semicolon
- Single quotes delimit literal strings (where variables, like $OekakiU will not work).
- Double quotes delimit parseable strings.
Concerning string usage, all of the following are valid:
$right_menu[] = '<a href="draw.php"><strong>'.$langop_word_draw.'!</strong></a>'; $right_menu[] = "<a href=\"draw.php\"><strong>$langop_word_draw!</strong></a>"; $right_menu[] = "<a href=\"draw.php\"><strong>{$langop_word_draw}!</strong></a>";
Offline