The blogger page doesn't necessarily return the latest blog post. For example, on my site it returned the latest forum post.

I fixed it by adding:

AND n.type='blog'" to the latest blog section, as below.

 //Latest blog
        $sql = " SELECT n.title, nid "
              ." FROM {node} n "
                  ." WHERE n.uid = '$node->uid' AND n.type='blog'"
                  ." ORDER BY n.created DESC"
                  ." LIMIT 1"
                  ;

Hope this helps. Great work on the module.

Comments

drupalnesia’s picture

Status: Active » Fixed

you right, I forgot the 'blog' type. bug fixed now uploaded.
thanks for corrections.

drupalnesia’s picture

Status: Fixed » Closed (fixed)

Ok.