Drupal is up and running but how do I ...?

PHP in Flexinodes

How do I paste PHP code into a flexinode field so that it is displayed correctly?

At the moment any PHP code enclosed in tags does not display.

Thanks
Martin

Threading Story Comments

I just had the nice people at OpenSourceHost.com set up Drupal 4.5 for me.

I'm having some difficulty with comments to stories. I'd like to have threaded comments, i.e., a comment can refer to another comment, and all is displayed at proper indentation levels to indicate threads.

However, when I view story comments, whether looged in or not, I see no way to respond to a comment: only to respond to the main article.

I'm pretty sure that this can be done; in fact, it's one of the main reasons that I decided to use Drupal.

taxonomy_render_nodes

With 4.4 I was able to simply the output of taxonomy_render_nodes by means of the following code. You can see the result here.

function taxonomy_render_nodes($result) {

  while ($node = db_fetch_object($result)) {

    $number = module_invoke("comment", "num_all", $node->nid);
    $info = "<br><span style=\"color: #999; font-size: 0.8em; font-weight: normal\"> submitted by: " . $node->name . " on " . format_date($node->created, "large") . "<br>" . $node->type . " | " . format_plural($number, "%count comment", "%count comments"). "</span>";
    $items[] = "<br>" . l($node->title, "node/view/$node->nid", array("title" => format_plural($number, "%count comment", "%count comments"))) . $info;
  }

  return theme("tax_list", $items, $title);

}

I also added the function theme_tax_list to theme.inc:

function theme_tax_list($items = array(), $title = NULL) {
  $output = "<div class=\"item-list\">";
  if (isset($title)) {
    $output .= "<h3>$title</h3>";
  }

  if (isset($items)) {
    foreach ($items as $item) {
      $output .= "$item<br>";
    }
  }
  $output .= "</div>";
  return $output;
}

This doesn't work properly under 4.5. Neither the node title nor the node author shows up in the listing of nodes. I have no idea why. Can anyone help me with this? I notice also that instead of '0 comments' I get '%count comments'. More than 0 comments appears correctly.

Configure fatal errors

Hi

I have just installed 4.5 and I am getting the following errors when I try to configure the following:

Administer-->comments-->configure
Fatal error: Call to undefined function: system_settings_form() in C:\hosted\espnur\portal2\drupal-4.5.0\modules\comment.module on line 346

Administer-->content-->configure
Fatal error: Call to undefined function: system_settings_form() in C:\hosted\espnur\portal2\drupal-4.5.0\modules\node.module on line 593

Tracker Issues

Hi-

For some reason, when I click 'recent posts', articles don't actually come up with any of their text. I.e. if there is a post called 'blah' and content 'blah de blah' it only comes up with the title and not the content. I am unsure why this has happened. Any ideas? visit http://www.agean.org to see what I mean.

-Bo

How to limit node_privacy_byrole options when creating new forums?

I posted this as an issue for the module, but in case I'm wrong, does any know if there is a way to restrict users from being able to choose any combination of roles to give access permissions when they're creating new forum topics?

For example, I don't want anonymous users to have any forum access, so I don't want that box available for authenticated users to select.

My guess is that this will require additional code similar to the 'edit node permissions' patch submitted.

Pages

Subscribe with RSS Subscribe to RSS - Post installation