By felixsmile on
Hello everybody!
Many solutions have been thought of, many threads have been opened, and still, no one has ever posted a finalised, working version with a little explanation. This is the occasion.
The two main threads on the topic of replacing the username with the real name are http://drupal.org/node/47308 and http://drupal.org/node/122303
Considering the attention this is getting by a lot of people, I thought it might be useful if someone posted a working solution for Drupal 5.1, that would replace every occurrence of the username with the full name.
Of course, I myself would also be very grateful, as I haven't managed to get any of these solution to work on my Drupal 5.1.
Thanks a lot!
Felix.
Comments
One of the solutions of the other topic
Here is nevets' solution posted in one of the above mentioned posts (http://drupal.org/node/122303):
This piece of code changes the name in most of the cases, but does not, for instance, work in the birthday module.
Instead of patching the birthday module, is there no other way, maybe?
Thanks a lot,
Felix.
My solution
Hello everyone,
in the links above, you will find most of the useful information for the general case, I suppose.
The solution that worked in my case:
- I added the code snippet above to my template.php file, modifying it slightly. This is the new beginning of my template.php file:
- For the birthday module, I posted an issue and a patch here: http://drupal.org/node/147239
Bye,
Felix.