#147 Topic.class bug fixes

Luis M

K, as discussed in previous emails, but now official:
The problem with the Icon Bar updating all items, even
when they are already on the topic bar was fixed. This
files contains a revised version that does this:

a) selects to see whether the onlinkbar is already set
to a value greater than 0 for a given topic_id and
stores the number somewhere in a variable.
b) if the topic_id is already in the bar, and the
onlinkbar is one (1), it returns true
c) if the number is greater than one, the it reorders
the topics so that the newly submitted article is the
first one on the link bar, and all other topics below
this number are increased by one. I.E.
if we have a bar with the following topics:
A, B , C, D, E ... where C is our new article
then $c = C: A, B, ,D, E
A and B get increased: ,A,B,D,E
C gets put back where it belong: C,A,B,D,E
d) if the onlinkbar is not set for a given topic, it
does what it used to do ...

by just reading the file (fully commented) one can
figure out what's going on....


  • Luis M

    Luis M - 2002-03-20
  • Luis M

    Luis M - 2002-03-20
    • assigned_to: nobody --> joestewart
  • Luis M

    Luis M - 2002-03-20

    Logged In: YES

    NOTE: there is another known bug, when articles are schedule
    to show at a later time, the icon bar does not publish the
    icons accordingly... :-)

  • Joe Stewart

    Joe Stewart - 2002-03-20

    Logged In: YES

    This problem has been corrected in the CVS. Please update your
    copy of PHPSlash, or wait for the next release.

  • Joe Stewart

    Joe Stewart - 2002-03-20
    • status: open --> closed-accepted

Log in to post a comment.