When using the Navigation module (the third-party one, not the default nav in Drupal) in a regular block context, how do you make a parent term expand to show the children terms? Although I've assigned parent/child term relationships like in the taxonomy module, the parent term doesn't display the children terms when clicked on. Am I missing something? Thanks!
I've been running a Drupal site first on 4.2, then after upgrading to 4.4 I noticed this problem: When I go to the URL, sometimes (not every time, I'd say it happens rarely, but happens) I arrive at the front page and am signed in as one of the users...not me...as in no, it's not because I did not log out...I'm actually logged in as someone else who holds an account on the site. This has happened to a few people, and in every case, the people were logged in automatically to the same person's user account. Any ideas what might be the problem?
I have been looking into customizing the way the front page of my site looks. I have played with the summary.module and it seems close to what I want to do, but I'd like a simpler version of it. I am looking for some coding examples of how to use the custom php page. So far I found this working code to display stories in a custom block:
global $user;
if (user_access("access content")) {
$stories = "";
$queryResult = db_query_range("SELECT n.uid, u.name, max(n.nid) FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE n.type = 'story' AND n.status = 1 GROUP BY n.uid, u.name ORDER BY 3 DESC", 0, 3);
. node_title_list(db_query_range("SELECT n.title, n.nid FROM {node} n WHERE n.type = 'story' AND n.status = 1 AND n.uid = " . $node->uid . " ORDER BY n.nid DESC", 0, 3));
}
return $stories
. "
". l(t("more"), "story", array("title" => t("Read the latest story entries."))) ."
";
}
But if I try and make this as a custom php page it does not work. How could I get this code to work on a custom page that I could use to show the last 10 stories (without the first 200 charaters, just title and submitted by only) on the main page?
I would love to be able to do this in a custom php page without having to use summary.module
Thanks.