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.

Avatars/Profile Pictures - how to change select path to server side

I was wondering if there is a way of changing the way the Profile Picture is selected. so that instead of from my computer it automatically opens a folder "avatar" in the base of the vanilla directory on the server that I have pre-loaded some avatars? If someone has already done this could you please give me a hint as to how you coded it. Sorry if this is a noob question.


  • Options
    jspautschjspautsch Themester ✭✭✭
    edited March 2012

    I think this would require some more extensive coding, it's not just a matter of opening up that file browser window to your server (which even if it was possible would be a terrible idea).

    I'd imagine you'd have to create a form with radio buttons, with each button corresponding to a file path pointing to an image on your web server. The list of buttons would need to be populated by either defining a fixed list of possible file paths manually, or coming up with a way to automatically look in a folder and retrieve the names of all images in that folder and looping through and generating the buttons that way.

    That might be enough to get you started, and if you need to know more about Vanilla, how it works and how to develop plugins, check out the Vanilla Wiki.

  • Options
    422422 Developer MVP

    There was an error rendering this rich post.

  • Options
    edited March 2012

    thanks for the info jspautsch, i will have a look at the script 422 provided and see if I can use that to make a workaround for my forum.

    thanks for link 422

Sign In or Register to comment.