Change "Submitted by" to use real name instead of userid

I'd like to change my page to show the real name of the user (a required profile field on my site) insead of the username when displaying node content. I think I need to mess with the $submitted variable, but I can't seem to find it anywhere. Could someone help point me in the right direction?

Thanks!

timezone function

hello, I'm working in a module, and I have to store dates and times of some events, but I want to store the UTC instead of the local time, because I want to show the events in the timezone of the users....

There is any function in drupal for timezone conversion?

php snippet to show if a block has content

Hi,
I would like to find a php snippet so I can display a block only if the list has 1 or more lines in it. so, to not display empty blocks.

My block is a view block.

Anybody knows how?

Thanks

Right sidebar block gets rendered in a HTML table in the content area!!!

I have a very strange problem occuring with the rendering of a block. Please bear with me while I explain the structure I've got.
I have two pages. Page1 lists items from a table in a db. Page2 lists all the sub-items for an item in page1, also obtained from a table in the same db, a one-to-many relationship. The lists are displayed as html tables. I also have two blocks. Block1 only appears when page1 appears and you've probably guessed that block2 only appears when page2 appears. The blocks are both set to be displayed in the right sidebar. Page1, and hence block1, is attached to a menu item in a block in the left sidebar. Page2, and hence block2, is attached to another menu item which is a child menu item of the former, mirroring the one-to-many relationship if you like.
Now, accessing page2 from the menu does you no good at all because the page needs to know which item from page1 is to be expanded. I've set it up so that the user gets a message telling him/her to go back to page1 and use the link provided. These links are just the item names in page1. The user clicks one and is taken to page2 where he/she can see the expanded details for the item in question.
Now, the rendering problem. If you go to page2 via the menu there's no problem. Everything looks as it should, except of course that that's the wrong way to page2. If instead, you use the item-as-link on page1 to go to page2, block2 is rendered in the table on the page rather than in the right sidebar!!!!

Drupal 4.7 multi-site installation

Currently I have a stable single-site 4.7 installation but I would like to set up a second iteration using a single instance of Drupal and separate databases. I have read install.txt and the support forums but no joy trying to log in to the second site. My file structure is:
example.com/gcms/sites/default/seetings.php - this is my first site and is stable with 4.7 upgrade
example.com/web - the url I would like to use for my second site with
example.com/gcms/sites/example.com.web/settings.php - as the configuration file with relevant edits to $db_url and $base_url

how to prevent link appearing in "create content" page?

Drupal 4.7:
I am making a module which specifies a new node type. But I do not wish this node type to have a link in the "create content" page. I did not include a hook_menu function at all, however my new node type still shows up on the "create content" page.

How can I suppress this link?
Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x