By Morphine. on
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
Documented
http://drupal.org/node/35728
Use global variable
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.
By theming my account area,
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
My personal blog | twitter:@sotak