Menu

#40 Problems with userinfo

version_5.x.x
open
nobody
Interface (17)
5
2005-08-24
2005-08-24
No

Once validated as user of the site, if you want to see the
userinfo of other users you cannot see it. It always
shows the validated user's information.

It doesn't happen, when you are a visitor or these
validated as administrator of the web

Interesting a quick suggestion...

;)

Discussion

  • magnolia61

    magnolia61 - 2005-08-24
    • assigned_to: nobody --> menelaos61
    • status: open --> closed
     
  • magnolia61

    magnolia61 - 2005-08-24

    Logged In: YES
    user_id=1232168

    Good news, i found a solution:

    CHANGE:
    if ( isset($user_id) AND !isset($username) ) {
    $res01 = cnbya_query(01,"SELECT *
    FROM ".$user_prefix."_users WHERE user_id='$user_id'
    LIMIT 1");
    } else {
    $res01 = cnbya_query(01,"SELECT *
    FROM ".$user_prefix."_users WHERE
    username='$username' LIMIT 1");
    }

    TO:
    if ( isset($_GET['user_id']) AND $_GET['user_id'] != '' ) {
    $res01 = cnbya_query(01,"SELECT *
    FROM ".$user_prefix."_users WHERE user_id=\"".$_GET
    ['user_id']."\" LIMIT 1");
    } else {
    $res01 = cnbya_query(01,"SELECT *
    FROM ".$user_prefix."_users WHERE
    username='$username' LIMIT 1");
    }

    Let me know if this worked for you...

     
  • vecino398curt

    vecino398curt - 2005-08-24

    Logged In: YES
    user_id=1291738

    The problem has located him in the creation of this variable

    linea 119 apx:

    $lastvisit = cnbya_date($lastvisit, long);

    for some reason the function "cnbya_date" that it doesn't
    work correctly

     
  • vecino398curt

    vecino398curt - 2005-08-24
    • assigned_to: menelaos61 --> nobody
    • status: closed --> open
     
  • magnolia61

    magnolia61 - 2005-08-24

    Logged In: YES
    user_id=1232168

    The code i supplied solves the issue. Is there any new issue
    with cnbya_date? If so, please open a new ticket.
    Cheers, Richard

     
  • magnolia61

    magnolia61 - 2005-08-24
    • assigned_to: nobody --> menelaos61
    • status: open --> closed
     
  • vecino398curt

    vecino398curt - 2005-08-24

    Logged In: YES
    user_id=1291738

    The problem has located him in the creation of this variable

    linea 119 apx:

    $lastvisit = cnbya_date($lastvisit, long);

    for some reason the function "cnbya_date" that it doesn't
    work correctly

     
  • vecino398curt

    vecino398curt - 2005-08-24
    • assigned_to: menelaos61 --> nobody
    • status: closed --> open
     

Log in to post a comment.

MongoDB Logo MongoDB