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
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

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!

Comments

  • 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.

    hgtonightbyakkoZhaan
  • 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

    vrijvlinderhgtonightZhaan
  • ZhaanZhaan Professional fool ✭✭

    Ah, thanks for the help ^^

Sign In or Register to comment.