This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

New forums - bug.

The new forum look is great, but it is not remembering which posts I've read and which I haven't.

Often I go to a post marked as unread only to realise I've already read it.  Getting confusing ! [:)]


This thread was automatically locked due to age.
Parents
  • Some more info on the forum bug.

    Once I read a thread, and then someone posts an addition to the thread, it marks all the older messages in the thread as new. (After the initial posts).
  • I have the same problem. It does not even metter if I am using IE 6.0 or Mozilla.

    BR, Matjaz
  • nope....still glitchy here...sometimes it will remember what I've read.  Others, all messages are unread...

    Firefox 0.8 here...
  • Yeah, still happening for me too, my bad.
  • Bump

    It is not yet fixed.   [:(]
  • When I saw message that UBB is being upgraded, I hoped it would eliminate old troubles. But as I can see now, version stayed the same, just UBB has new categorys.

    I hope you can soon repair troubles with UBB.

    BR, Matjaz
  • Hi there, 

    we are aware of the problem and are trying to track this one down.
    The bug has been introduced during the upgrade to the lasted version 6-8 weeks ago.

    Even that it is a little bit unconvienet at the moment, also for me, i need to ask to be patient until we get time to fix that one.
    ASL V4 and V5 updates have a higher priority, i hope this is understandable.

    I will post again once it is fixed.

    regards
    Gert
  • I agree with you that up2dates for ASL are more important!

    I didn't want to be anoying. IT just bothers me that I can view this board only at job, otherwise I read all articles twice  



    BR, Matjaz
  • Hi there all, 

    after 8 hours of debugging, plenty of coffee and an angry girl friend, 
    I finally found the bug and fixed it.

    It was a fault and very dirty SQL query, made by the developers of this Bulletin Board software.

    Every access of a user in a forum gets logged with its timestamp.
    With this codesnippet they want to retrieve a list of all forums with the timestamp of the last access of a certain user.
     Code:
    // -----------------------------------------
    // Get this user's last visit to each forum
       if ($Username) {
          $Username_q = addslashes($Username);
          $query = "
             SELECT L_Board,L_Last
             FROM   ubb_Last
             WHERE  L_Uid = '{$user['U_Number']}'
          ";
          $sth = $dbh -> do_query($query);
          while(list($Board,$Last) = $dbh -> fetch_array($sth)) {
             $Lastvisit[$Board] = $Last;
          }

       }
     



    But in their SQL-Query they retrieved ALL timestamps of ALL forums of a certain user and they assumed that the database returns its results in the cronological correct order.
    Depending on how often a user visits the board, this list is HUGH. With my UserID 4900 rows.
    They than process each visit and store the timestamp in a hash by the Forum ID.
    With this they hoped that a newer timestamp overwrites the older one and at the end, the newest is stored in the variable.
    Sometimes it did, than it worked, 
    but most of the time it didn't.

    I now changed the Query to
    Code:
             SELECT L_Board,max(L_Last)
             FROM   ubb_Last
             WHERE  L_Uid = '{$user['U_Number']}'
             GROUP BY L_Board 

     
    With this query the databse does all the work and returns me only a list of the 11 forums with the last access by this user.

    Now it works, and it should be even faster than before. [;)]

    Ok thats it, now its time to go to bed.

    I hope you all have now a pleasent browsing through our Bulletin Board, again. 

    Good night and regards
    Gert
  • Thanks for all of your hard work!!! Now go make your girlfriend happy!! 
Reply Children