Menu

#17 Jump To... (this month)

open
nobody
None
5
2005-05-17
2005-05-17
No

If I use the Jump To... to jump to a future month, there's
no easy way to jump back to the current month. Would
you consider adding the current month to the Jump To...
list?

Discussion

  • Darrell Schulte

    Darrell Schulte - 2005-05-24

    Logged In: YES
    user_id=1034521

    I just added:

    echo ' <option value="',$y,'-',str_pad($m, 2, "0",
    STR_PAD_LEFT),'-01 00:00:00">',Month_to_Text($m),' ',$y,'</option>',"\n";

    to line 375 of main.php. Seemed to do what you're asking.

     
  • onealkm

    onealkm - 2005-11-22

    Logged In: YES
    user_id=1385785

    As an alternate method to dschulte's code change comment,
    you can always click the Today is: link and then click the
    Month tab. This 2-click method is the same number of clicks
    as clicking on the Jump to... drop-down and then clicking on
    the current month with the code change from dschulte.

    Just another option.

     
  • Steven Hunter

    Steven Hunter - 2006-02-24

    Logged In: YES
    user_id=1443411

    This will fix this issue. Just made the changes to the
    indicated file.

    --Start fix--
    File: main.php
    Start Line: 374
    Change: Add current month to “Jump to” list
    $m = $today['month'];
    $y = $today['year'];

    echo ' <option value="',$y,'-',str_pad($m, 2, "0",
    STR_PAD_LEFT),'-01 00:00:00">',Month_to_Text($m),'
    ',$y,'</option>',"\n";
    --End Fix--

     
  • Tim Constantine

    Tim Constantine - 2006-03-14

    Logged In: YES
    user_id=638347

    Not to beat this into the ground, but the html in the above
    responses is apparently getting hidden or dropped. The fix:
    Copy line 382 of main.php & paste it above line 375.

     

Log in to post a comment.

MongoDB Logo MongoDB