Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

2.2.4 - Manually adding user picture to a page

ZhaanZhaan Professional fool ✭✭

Bit of a strange question, but I'm working on custom profile pages for my forum, and I need to know how to add a user's profile picture to userinfo.php.

I'm guessing I can't just add {photo_link} and expect it to work, so I'd love it if you guys could help me out here. Any input appreciated, as always.

Best Answer

Answers

  • Options
    rasteronrasteron forum.rastercode.com ✭✭

    Hey @Zhaan

    This seems like a late answer, but I have written a quick tip on this topic. You can check it out on my blog/forum here:

    http://forum.rastercode.com/9-adding-user-thumbnail-on-vanilla-forum-custom-profile-pages

    Preview:

    cheers. :)

  • Options
    R_JR_J Ex-Fanboy Munich Admin
    edited February 2015

    That reminds me of http://vanillaforums.org/discussion/28705/for-people-looking-where-to-edit-panel-asset-the-wrong-way
    I think your tip is incomplete. People who know how to duplicate a view in their custom theme would be able to make such a small change by themselves. Those who do not know about view overrides would simply search for the file and make the change in the original file.

    You better solve it a with a plugin or a theme hook. Or you have to add a short explanation on how to override the view correctly.

  • Options
    rasteronrasteron forum.rastercode.com ✭✭
    edited February 2015

    Yes I meant to direct this tip to advanced users like the OP's question (since this has not been answered for almost a year), but anyway just updated that post and will add a new article about that next.

    And as I have mentioned above, it's a quick tip that I have written for a couple of minutes. I'm sure there are more full solutions than this but that's another topic.

    cheers.

  • Options
    rasteronrasteron forum.rastercode.com ✭✭

    Hey @Bleistivt That function/object UserPhoto() is also a good option but will also generate and display the change profile picture feature which it already has in the sidebar, and it will duplicate that functionality. For a fix on that, it still needs to extract the image tag/resource only via pregmatch or similar.. so it can be customized and display as a normal thumbnail picture.

    Ok so just have updated with that here..

    http://forum.rastercode.com/9-adding-user-thumbnail-on-vanilla-forum-custom-profile-pages/p1#p9

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @rasteron

    As x00 says, it would be better to have tutorials on this site, rather than spread around the interwebby. You might also like to contribute tips and tutorials to the community wiki.

  • Options
    rasteronrasteron forum.rastercode.com ✭✭
    edited February 2015

    it would be better to have tutorials on this site, rather than spread around the interwebby.

    Yes, I also have my site to start with and is very related. I'm offering free support here with just my link. I'm sure you also have your own reasons with your time and knowledge spent here.

    You might also like to contribute tips and tutorials to the community wiki.

    will do if I got something relevant to add. :)

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @rasteron

    I'm sure you also have your own reasons with your time and knowledge spent here.

    Yes, to give something back to the community which has helped me immensely to get my forum exactly how I need and like it.

    Personally, I'm not a fan of people using this site to boost their own hits.

    I guess we see things differently.

    Since we have a tutorials section here, I don't see why you wouldn't add your information there, except that you want to plug you site.

  • Options
    rasteronrasteron forum.rastercode.com ✭✭
    edited February 2015

    Yes, to give something back to the community which has helped me immensely to get my forum exactly how I need and like it.

    Personally, I'm not a fan of people using this site to boost their own hits.

    You're being too serious dude, calm down :) It's just a back link like any other forum and site activity.

    I guess we see things differently.

    yep, not everyone is the same. Like Vanilla there's the opensource side here and there's the business side there. Still nothing wrong with that.

    cheers.

  • Options
    rasteronrasteron forum.rastercode.com ✭✭
    edited February 2015

    Since we have a tutorials section here, I don't see why you wouldn't add your information there, except that you want to plug you site.

    Not true, since you're a moderator, check out all my help comments if they are all the same. thank you :)

Sign In or Register to comment.