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....
Log in to post a comment.