Menu

#1 5.03 Forum Reg. User bug

open
nobody
None
5
2001-07-08
2001-07-08
Anonymous
No

Registered users ar not allowed to post in a forum
marked for registered users. Once marked anonymous
posting, the posts cannot be read due to a "can not
redeclare head(); error.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Yes, I have the same problem, after hacking it alot , I
    found out the bug is a problem with the PosterID field.
    However I still can't get it the error to leave off editing
    a post.

     
  • Joeri Cornelissens

    Logged In: YES
    user_id=87320

    Same problem here, I currently got the bug fixed by changing
    this code in viewtopic.php:

    if($myrow[poster_id] != 1) {
    $posterdata = get_userdata_from_id($myrow[poster_id], $db);
    }

    by

    if($myrow[poster_id] != 1) {
    $sql ="select uname, user_regdate from nuke_users
    where uid=$myrow[poster_id]";
    $userq = mysql_query($sql, $db);
    $info =mysql_fetch_array($userq);
    $posterdata = array("uid" => $myrow[poster_id],
    "uname" => $info[0], "posts" => "0", "rank" => -1,
    "user_regdate" => $info[1] );
    }

     

Log in to post a comment.