MyBB Community Forums

Full Version: Set Avatar on Registration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there.

I've been getting into the Php side of MyBB and customising it for my liking, however, I'm stuck at this point of setting a users avatar when they register.

I get and save the users image with their username, and set it accordingly in the database (I'm working on mysql injection - any tips?), but I would like this to happen automatically when they register.


If my question was a little vague please let me know.
Any help is appreciated.

Cheers,
Jason.
There is a plugin called default avatar - try that. Its in the mod section.
Would it be possible to have my Php run when the user registers?
It depends what your php is. If you use this plugin it will run on register. If you are trying to add other things on registration (insert to db etc) then looking at how this plugin is built will help you with that.
The Php gets an external resource, saves it locally and then updates database information.
I'll have a look at how they are built and hopefully learn from that.
ok, so we will class this as solved.