0

So far the only thing that works is $name wich prints the username with the link.

I´ve tried $account->name, and it won´t print anything at all (I´ve tried $author and $account_name; too, without any luck).

I want to print the username inside their profile usernode in a Drupal 6 installation, but don´t want to print it with the link to it, just the username.

Thanks for your help!

1 Answer 1

1

I do not have the exact answer you are looking for. However I'd use get_defined_vars() in all template files to list the defined variables.

In case you are not a programmer, here's the code.

<pre>
<?php
  print_r(get_defined_vars());
?>
</pre>

http://php.net/manual/en/function.get-defined-vars.php

1
  • Thanks for the input! (and specially thank you for the code, because yeah, I´m not a programmer :)
    – Rosamunda
    Commented May 23, 2012 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.