Menu

#81 Enhancement suggestions

closed-fixed
nobody
None
5
2008-01-02
2007-12-19
No

I would like to submit the following enhancments.
For me they make navigation easier.

1) Alternating hilites for messages

action.php - line 670

$hilite = ' hilite';
// Include this once for each line of the
// message index
while ($tmp = array_shift($tab_mail)) {
require ('./html/html_inbox.php');
if ($hilite == '') $hilite = ' hilite';
else $hilite = '';
}

style.css
.hilite {
background-color: #FEEC85;
}

2) Inbox Menu Folder navigation

function.php
function buildfolderlink($folder)
{
// split the string at the periods
$elements = explode('.',$folder);
$folderpath = "";
for ($i=0;$i<count($elements);$i++) {
if ($i > 0) {
$folderpath = $folderpath . ".";
echo ".";
}
$folderpath = $folderpath . $elements[$i];
echo "<a href=\"". $_SERVER['PHP_SELF'] . "?folder=" . $folderpath . "\">" . $elements[$i] . "</a>";
}

echo "\n";
}

html/menu_inbox.php line 36
<td class="<?php echo $classInbox; ?>">
<?php buildfolderlink($_SESSION['nocc_folder']); ?>
</td>

Discussion

  • Tim Gerundt

    Tim Gerundt - 2007-12-19

    Logged In: YES
    user_id=652377
    Originator: NO

    > 1) Alternating hilites for messages

    NOCC 1.5 will have support for this, but only the "standard" theme use it by default!

    For other themes you can use code like this in the style.css:

    --------------------8<--------------------
    #inboxTable .odd {
    background-color: #FFFFFF;
    }

    #inboxTable .even {
    background-color: #F0F0F0;
    }
    -------------------->8--------------------

    > 2) Inbox Menu Folder navigation

    I like the idea, but I want to optimize the navigation anyway a little bit. So I will wait with this patch until I have a plan for the new navigation.

     
  • Anonymous

    Anonymous - 2007-12-20

    Logged In: YES
    user_id=529507
    Originator: NO

    Tim : about #2, try to avoid committing new enhancements before I release NOCC 1.5. I plan to do this on January 1st. I prefer to fix any coming bugs before this date.

     
  • Tim Gerundt

    Tim Gerundt - 2007-12-20

    Logged In: YES
    user_id=652377
    Originator: NO

    > try to avoid committing new enhancements before
    > I release NOCC 1.5.

    For few days before a release, this changes are to big! And I also want your comment about MacOS browsers for big CSS changes. So this are things for 1.6... ;)

    But I use Michael's buildfolderlink() function now to make the "currentInbox" view to a breadcrumb navigation for IMAP accounts! Thanks for your code Michael!!!

    I think the RFE can now be closed.

     
  • Anonymous

    Anonymous - 2008-01-02
    • status: open --> closed-fixed
     
  • Anonymous

    Anonymous - 2008-01-02

    Logged In: YES
    user_id=529507
    Originator: NO

    Fixed in CVS.

    It'll be included in next release.

    But you can donwload daily snapshots at :
    http://nocc.sourceforge.net/download/

    Thanks for the feature request.

     

Log in to post a comment.

Auth0 Logo