ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


removing a Tab


  • 2005-10-16 23:48:22

    removing a Tab

    how do i remove a Tab? i would like to remove Preferences tab but where do i do that?

  • 2005-10-17 02:29:30

    removed a tab

    hi, i managed to remove the Preferences Tab by editing header.tmpl.php
    these lines:
    <?php foreach ($this->top_level_pages as $page): ?>
    <?php
    if ($page[\'title\'] == \"Preferences\") //disable preferences tab. -wenbert
    {
    echo \"\";
    }
    else if ($page[\'url\'] == $this->current_top_level_page): ?>
    <li><a href=\"<?php echo $page[\'url\']; ?>\" accesskey=\"<?php echo ++$accesscounter; ?>\" title=\"<?php echo $page[\'title\']; ?> Alt+<?php echo $accesscounter; ?>\" class=\"active\"><?php echo $page[\'title\']; ?></a></li>
    <?php else: ?>
    <li><a href=\"<?php echo $page[\'url\']; ?>\" accesskey=\"<?php echo ++$accesscounter; ?>\" title=\"<?php echo $page[\'title\']; ?> Alt+<?php echo $accesscounter; ?>\"><?php echo $page[\'title\']; ?></a></li>
    <?php endif; ?>
    <?php endforeach; ?>
    if you have a better and safer solution, please notify me..

  • 2005-10-17 02:29:55

    removed a tab

    hi, i managed to remove the Preferences Tab by editing header.tmpl.php
    these lines:
    <?php foreach ($this->top_level_pages as $page): ?>
    <?php
    if ($page[\'title\'] == \"Preferences\") //disable preferences tab. -wenbert
    {
    echo \"\";
    }
    else if ($page[\'url\'] == $this->current_top_level_page): ?>
    <li><a href=\"<?php echo $page[\'url\']; ?>\" accesskey=\"<?php echo ++$accesscounter; ?>\" title=\"<?php echo $page[\'title\']; ?> Alt+<?php echo $accesscounter; ?>\" class=\"active\"><?php echo $page[\'title\']; ?></a></li>
    <?php else: ?>
    <li><a href=\"<?php echo $page[\'url\']; ?>\" accesskey=\"<?php echo ++$accesscounter; ?>\" title=\"<?php echo $page[\'title\']; ?> Alt+<?php echo $accesscounter; ?>\"><?php echo $page[\'title\']; ?></a></li>
    <?php endif; ?>
    <?php endforeach; ?>
    if you have a better and safer solution, please notify me..

  • 2005-11-01 12:49:24

    removing tabs

    hi, you can change tabs easily by editing include/lib/menu_pages.inc.php at the top of the file

    change

    $_pages[AT_NAV_START] = array('users/index.php', 'users/profile.php', 'users/preferences.php');

    to

    $_pages[AT_NAV_START] = array('users/index.php', 'users/profile.php');