I found the problem!
If any of you are using the
Online/Click Log Combo Update Thingy mod (very useful mod by BHRA Webmaster), you'll notice that your buddylist shows people online who aren't necessarily on the online users list that displays on your board index. If you set your click_log time (let's say 5 hours) to a greater amount than your online_log time (let's say 3 minutes) --which you probably do--, your online buddylist is showing the buddies that have been active sometime in the last 5 hours, when what you really want is for it to show online the buddies that have been active in the last 3 minutes, and show the rest as offline. Needless to say: this sucks.
The reason for this is that the
Online/Click Log Combo Update Thingy mod uses the log.txt file (originally intended for the online users list) for both the online users list and the click log (which originally used the click_log.txt file). Now that log.txt is used to log a greater amount of time, this makes your buddylist show the wrong information. So, the fix is right here (I tried it out on my board, and it works fine)...
Remember! This is only necessary if you have installed the Online/Click Log Combo Update Thingy mod by BHRA Webmaster on the same board as the Advanced Instant Message Box 2.1!!On your Sources/Buddylist.pl file, search for:
foreach $curentry (@budentries) {
chomp($curentry);
($name, $value) = split(/\|/, $curentry);
chomp($name);
if( $name ) {
if( $name eq "$bname") {
...and replace it with this:
foreach $curentry (@budentries) {
chomp($curentry);
($tmp_name, $tmp_online, $tmp_ip, $tmp_time, $dummy ) = split(/\|/, $curentry);
if (($time - $tmp_time) > ($OnlineLogTime * 60)) {last;}
chomp($tmp_name);
if( $tmp_name ) {
if( $tmp_name eq "$bname") {
Now the buddy list will read the same file, but will rule out the users whose most recent activity is not within the amount of time set to show users on the online list. Meaning: if one of your buddies last clicked on your board 5 minutes ago and you've set your online users list to show only users that have been active in the last 2 minutes, then that user won't show in your buddies list as online; he/she will show up on your buddylist as offline.
Hope this serves to help anyone out there wh might be using both mods at the same time... which there probably are a few, since both mods are very useful, not to mention simply cool.
Cheers!
Alf.