Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to add username and image of the user near the question?
Issue fork questions_answers-3071975
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pgrandeg CreditAttribution: pgrandeg as a volunteer commentedDear @vjeni
I am a bit new on this module comaintenance, but as far as I know there was no plan to include that feature and it doesn't exist on latest release 1.13. Please, if you included that feature in your custom development, could you please share your code and we may merge into main branch?
Best, Pablo
Comment #3
pgrandeg CreditAttribution: pgrandeg as a volunteer commentedComment #6
Nishant CreditAttribution: Nishant at Melity commentedImplemented Usericon on question page. Please validate.
Comment #7
pgrandeg CreditAttribution: pgrandeg as a volunteer commentedDear @Nishant, first of all, thank you for your support
I like the logic you implemented, nevertheless there is something I think must be improved in twig file. Including css in twig files is not the best approach, so I suggest to move CSS code to an external css file and include it into a module library.
It would be better to use flex boxes instead of floats, and to create an image style to render user profile's picture instead of rendering by CSS.
Comment #8
pgrandeg CreditAttribution: pgrandeg as a volunteer commentedComment #9
Nishant CreditAttribution: Nishant at Melity commented@pgrandeg, Sure will do,
Thanks to looking in to this.
Comment #10
Nishant CreditAttribution: Nishant at Melity commentedComment #11
Nishant CreditAttribution: Nishant at Melity commented