Menu

#87 no post data from guest posts, when not logged in

v1.6
open
nobody
None
5
2007-01-20
2007-01-20
no_comment
No

if you are not logged in, you can't see any posts of other guests.

to fix the bug, replace in ipbsdk_class.inc.php the following part of function get_post_info:

$mem = $this->get_advinfo($row['author_id']);
$row = array_merge($row,$mem);

width

if(!empty($row['author_id'])) {
$mem = $this->get_advinfo($row['author_id']);
$row = array_merge($row,$mem);
}

Discussion

  • Peter Walker

    Peter Walker - 2007-01-22

    Logged In: YES
    user_id=1091024
    Originator: NO

    Not entirely getting this...
    get_post_info doesn't currently run any perms checks, it's up to you to check if someone's logged in or not.

     
  • no_comment

    no_comment - 2007-01-22

    Logged In: YES
    user_id=1457161
    Originator: YES

    no, the problem is that ipbsdk has a failure when a guest is viewing a post of a guest.

    the ipbsdk is getting the user-data from the currently logged in user, when you are calling member_info. if you are grab the post_info, you call member_info too. when guests are logged_in, member_info cannot grab any member-datas, so this failure will produced.

     
  • Peter Walker

    Peter Walker - 2007-01-24

    Logged In: YES
    user_id=1091024
    Originator: NO

    Okay, will take a closer look...
    Thanks :)

     

Log in to post a comment.