Closed (fixed)
Project:
Blogger
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2006 at 22:07 UTC
Updated:
12 Oct 2006 at 01:53 UTC
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
Comment #1
drupalnesia commentedyou right, I forgot the 'blog' type. bug fixed now uploaded.
thanks for corrections.
Comment #2
drupalnesia commentedOk.