Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

Author avatar in post?

This discussion is related to the Articles addon.
ZhaanZhaan Professional fool ✭✭

Hiya and thanks for a great plugin! I'm wondering if it's possible to add the author's avatar to an article/post? Currently only his or her name is displayed, and I couldn't find anything in the options.

Any help appreciated!


  • peregrineperegrine MVP
    edited September 2015

    Most likely someone will have a better way, that doesn't require modifying the app.

    But if you want to modify the App itself.

    <?php echo UserPhoto($Author); ?>

    add the line above to appropriate spot in the index.php in the views for articles (article list - similar to indexphotos) or within views for article depending on where you want it to appear.

    I suppose if you could override the index.php views that would be another way, if you can figure that out.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • ShadowdareShadowdare π Moderator

    A feature called "About the Author" was added in Articles 1.1.1. It requires setting an author bio for the user, but it does show the avatar next to the box under articles.

    Add Pages to Vanilla with the Basic Pages app | Publish articles with the Articles app

  • ZhaanZhaan Professional fool ✭✭

    Ah, thanks for the help ^^

Sign In or Register to comment.