Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#147 Topic.class bug fixes

closed-accepted
Joe Stewart
None
5
2002-03-20
2002-03-20
Luis M
No

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....

Discussion

  • Luis M
    Luis M
    2002-03-20

     
    Attachments
  • Luis M
    Luis M
    2002-03-20

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

    Logged In: YES
    user_id=239796

    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
    user_id=77269

    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