Printing node author user-profile fields in custom node.tpl.php? [Drupal 7]

Hi ladies & gentlemen,

I'm trying to customize a node--TYPE.tpl.php template, and I am wondering how I can print out a custom user profile field in it.

Basically, I have a user profile field called 'field_occupation', where a user enters his/her occupation. Then inside this content type, that is submitted by users, I want a line that prints out the author's username and his/her occupation.

I googled and searched Drupal.org for some answers, but I only found code snippets for Drupal 6 and they don't seem to work for me (in Drupal 7).

After upgrading to D7.2, I get Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name()

Since upgrading last night, I am getting the following error on the modules list page:

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (line 202 of /home/cpelham/public_html/dev.crsny.org/public/includes/install.inc).

Sophisticated Stock Market module / software

Hello all

I'm want to know if any body can help me find a stock market module that I can integrate into my drupal 6 site.

I have tried the stock module and api and I'm glad there is at least that option but I need something more advanced.

I would really like something like bloomberg or google finance. Even if they are pay for software I need to know about them. I would also like to be able to place a scrolling ticker on the front page like bloomberg.

how to pass the value?

echo something like the following in a template file(page--node--5.tpl.php).

201105
201106
201107
201108
201110
...

the code output the above:

Feeds Importer in Drupal 7

I've created a content type X with 7 fields. I have a csv file with 7 fields and 10 records.with the same field names. Using Feeds Importer the doing a "Node Import" 10 new Nodes are created for each record when I attach to a basic page, but nothing is displayed. When I attach to the content type x with the seven fields, the fields don't map to the new content type and the import won't proceed. Any suggestions?

Theming best practive question - new to Drupal

I am learning theme development and have installed devel and the "Theme developer". It is very helpful. I am starting by using Fusion as a base theme. I have created a sub theme and am now working with it. My question is about best practice in theme development.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x