Early Bird Registration for DrupalCon Atlanta is now open! By registering during our Early Bird Registration window, you’ll save $100. This window ends on 19 January 2025 and will go by quickly, so don’t wait!
warning: opendir(/tmp//mc-alex): failed to open dir: Permission denied in /var/www/drupal/modules/image/image.module on line 1202.
warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/includes/common.inc:344) in /var/www/drupal/includes/common.inc on line 155.
The tmp folders are set up right, or at least they seem to be, because the images get uploaded correct.
Has anybody the same problem. I'm Using Drupal 4.5.
I am trying to develop personal books, where a user can add pages only to his or her own books.
How can I restrict which nodes can be the parent when creating or editing a book page? Specifically, I want to restrict possible parent nodes to nodes with a toplevel parent that matches certain criteria -- ownership, taxonomy terms, etc. I thought I could do this with the node_access API, but now I don't see how I could exclude nodes from being possible parents without also preventing the user from viewing them.
Before I start delving in module development it might be smart to see if something simular already exists. I didn't find it on the modulepage. At least not with all the requirements below.
I use 4.5.2 and it seems this will be the version I have to use for a while because my hosting company uses an older version of php.
I'd like to see node permissions integrated into the configure content types settings in 4.6. For example, a story node could be given permissions to be viewed by only certain users while a page could be given access to anonymous and other users. Honestly, I'd set up flexinode content that could allow permissions that stories and pages would not share.
This is a simple and quick mod I did myself to the taxonomy module in the block function. It changes your block display from an order of last updated content to alphabetical by term names.
Apply this mod by overwriting lines ranging from about 95-116 (V4.5 module) containing "Function taxonomy_block" code.
Original posting on this topic can be found http://drupal.org/node/20280
//Overwrite with this code around lines 95-116, the FUNCTION "taxonomy_block".
// Function edited by VideoJunky 4/14/05
/**
* Implementation of hook_block().
*
* Generates a block with all categories listed in alphabetical order.
*/
function taxonomy_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = t('Categories');
return $blocks;
}
else if (user_access('access content')) {
$result = db_query("SELECT d.tid, d.name, MAX(n.created) AS updated, COUNT(*) AS count FROM {term_data} d INNER JOIN {term_node} USING (tid) INNER JOIN {node} n USING (nid) WHERE n.status = 1 GROUP BY d.tid, d.name ORDER BY d.name ASC, d.name");
$items = array();
while ($category = db_fetch_object($result)) {
$items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid);
}
$block['subject'] = t('Categories');
$block['content'] = theme('item_list', $items);
return $block;
}
}