Menu

Adding bug without logged-in

Help
2002-09-09
2002-09-16
  • Nobody/Anonymous

    Hi there,
    I m new to BugTracker, but I think its a pretty cool program. I would like to have anonymous users to enter bugs. I have created a customized form for this purpose. Can anybody tell me what changes I need to do in the PHP scripts to achieve this?
    Thanks

     
    • Benjamin Curtis

      Benjamin Curtis - 2002-09-16

      I would create an anonymous account in the user table.  Then you would need to specify that user id as the $u variable.  The bug-saving code is in bug.php, so you might put a line of code at the beginning of that file that reads something like...

      if (!empty($HTTP_POST_VARS['anon_id'])) $u = $HTTP_POST_VARS['anon_id'];

      where there is a hidden field on your anonymous submission page named anon_id that has that user id as its value.

       

Log in to post a comment.