I was just playing with the user picture that appears beside each posting and noticed that it didn't appear at all for my first post on my page. Instead the full text path is shown there instead (/files/pictures/user1.jpg.) (Syntax may not be 100% correct.)
Anyway, the first post is a blog and is stickied. I don't know if this has anything to do with it. This is also using the Pushbutton theme.
Any ideas on how to fix this issue? How can I disable user pictures on certain nodes/blocks?
Hi everyone, I would like to be able to track revisions to attachments on a node. Is this possible? Not diff's, but the ability to download previous versions of the files if desired. Thanks :)
Using Drupal 4.7 with the story module. On the main page, the post (submitted by) info and the categories does not show up on the front page for users that are not logged in. This is the only node that behaves like this, and the information is missing ONLY on the front page. If an anonymous user views the individual node, all the information is there.
The story node-type behaves as normal for registered users.
I didn't really want to post to the core forum but I am 99% sure that Drupal isn't doing what its supposed to. I modified block_example by
removing all the comments and adding a call to _user. I tried to add something to $user so I can use it later. The wording in the API leads me to believe this is possible. I try to display the thing I add in the block but it doesn't show up. All the code is here:
<?php
function block_example_help($section) {
switch ($section) {
case 'admin/modules#description':
// This description is shown in the listing at admin/modules.
return t('An example module showing how to define a block.');
}
}
function block_example_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Example: configurable text string');
$blocks[1]['info'] = t('Example: empty block');
return $blocks;
case 'configure':
$form = array();
if ($delta == 0) {
$form['block_example_string'] = array(
'#type' => 'textfield',
'#title' => t('Block contents'),
'#size' => 60,
'#description' => t('This string will appear in the example block.'),
'#default_value' =>
variable_get('block_example_string', t('Some example content.')),
);
}
return $form;
case 'save':
if ($delta == 0) {
variable_set('block_example_string', $edit['block_example_string']);
}
return;
case 'view': default:
switch ($delta) {
case 0:
$block['subject'] = t('Title of block #1');
$block['content'] = block_example_contents(1);
break;
case 1:
$block['subject'] = t('Title of block #2');
$block['content'] = block_example_contents(2);
break;
}
return $block;
}
}
function block_example_contents($which_block) {
global $user;
if ($which_block == 1) {
$output = variable_get('block_example_string', t('A default value.'));
$output .="