I haven't been using Drupal for very long, but i have searched the forum.
When making a theme for the user page ("My Account") i came across the problem that i cant customize the content of the page, and how its all set out because it just <?php print $content ?> So i was wondering if there was variables for username display picture ect. so i could make the page however i want it to be set out using html and replace the print content line for my html, then add print $username ect wherever i want the information.

Is there any other methods of doing this?

Thanks

Comments

yelvington’s picture

kuldip zala’s picture

hi,

for user related info you can use like
global $user;
and do your stuff.

And also try to use $node variable in node.tpl.php.

Thanks.

sign’s picture

By theming my account area, which could be also viewable by other users (user/uid) the global variable $user won't work as it always holds current user info!

London Drupal developers - Atomic Ant ltd