Menu

Calendar broken?

Help
2002-01-26
2012-10-11
  • Alister Bulman

    Alister Bulman - 2002-01-26

    Hi (again, check the history file)

    I've come back to using Wiki today (as a pim) after suggesting it today as an intranet application for a client.

    However, I'm having trouble with the calendar plug-in though - the main block comes up with prev/next month links, but the dates themselves are just shown as 'Object'.  (and having two copies of Pear - one six months old didn't help either).

    I'm running the latest CVS of phpWiki and PHP 4.1.1.  Do I get to blame dairiki for the OO of the calender plugin, or did I mess it up ? :-)

     
    • Geoffrey T. Dairiki

      You most certainly do get to blame dairiki. (sorry).

      I've just checked the fix into CVS.  (I discovered another new bug (also dairiki's fault) while looking into this one...)  Here's the two patches, in case you want to do it by hand.

      --- lib/plugin/Calendar.php    2002/01/24 06:52:12    1.11
      +++ lib/plugin/Calendar.php    2002/01/26 03:30:23    1.12
      @@ -113,7 +113,7 @@
                                   $t['tm_mday']);
               }

      -        return  HTML::td(array('align' => 'center'), NBSP . $date . NBSP);
      +        return  HTML::td(array('align' => 'center'), NBSP, $date, NBSP);
           }

           function run($dbi, $argstr, $request) {

      (i.e. periods change to commas.)

      Also:

      --- lib/transform.php    2002/01/26 01:51:13    1.36
      +++ lib/transform.php    2002/01/26 03:30:23    1.37
      @@ -188,7 +188,7 @@
             
              $retval = $this->SetHTMLMode($list_type, 2 * $level - 1);
              if ($list_type == 'dl') {
      -           $retval .= AsXML(HTML::dt($defn_term));
      +           $retval .= AsXML(HTML::dt(HTML::raw($defn_term)));
                  $retval .= $this->SetHTMLMode('dd', 2 * $level);
              }
              else {

      (for proper handling of links, <b> and <i> within definition terms.)

       
    • Alister Bulman

      Alister Bulman - 2002-01-26

      Darn - and I'd just debuged it myself (and removed the NBSP's).

      Any chance of highlighting dates-with-entries /and/ today?

       
      • Geoffrey T. Dairiki

        Good idea! Done.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.