Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Users, Authentication & Personalization
  •  
  • Jot Comment adding user image to comments post?#

  • 24735
    33

    redwolf Reply #1, 2 years, 4 months ago

    Reply
    • Link to this post#1
    Hello!

    Hopefully this is the right place to post this. I am working with Jot to display user comments after they login using webloginPE. I want to add a small thumb of the users profile image to each one of their posts.

    This is what I have for my jot call

    This is what I have for the default chunk.comments.inc.html

    <a></a>


















    <hr />





    </div>



    </div>



    </div>

    If anyone has any insight and or advise on how to go about adding a small user profile image to each of their comments, I would be most appreciative. Thanks!



  • 28788
    71

    suburbiaboy Reply #2, 2 years, 4 months ago

    Reply
    • Link to this post#2
    This should do the trick:

    <img src="[+comment.createdby:userinfo=`photo`+]">



  • 24735
    33

    redwolf Reply #3, 2 years, 4 months ago

    Reply
    • Link to this post#3
    Indeed, that did the trick! Thanks suburbiaboy!

    Thanks!

    For folks with a similar question you want to plug in the

    <img src="[+comment.createdby:userinfo=`photo`+]">

    right after
    [+comment.createdby:isnt=`0`:then=``+]

    Here is what my chunk.comments.inc.html looks like

    <a></a>


















    <hr />





    </div>



    </div>



    </div>


  • 28788
    71

    suburbiaboy Reply #4, 2 years, 4 months ago

    Reply
    • Link to this post#4
    No worries, it was good timing, I just implemented this myself.

    Just a quick warning admin users don't have a default photo like WebloginPE users do so if you you post as an admin you'll get an empty image unless you add one.

    Jamie


  • 37447
    6

    jordi19 Reply #5, 6 months, 4 weeks ago

    Reply
    • Link to this post#5
    i can help you, in my website i talk about this... and more things about Modx
    In the second part of this tutorial I uploaded a snippet that print user image.

    http://manuales.todolovisto.com/imagen-usuario-jot-modx





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
jordi19, redwolf, suburbiaboy

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy