Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: wynnyelle - syyskuu 04, 2013, 03:46:08 IP

Otsikko: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: wynnyelle - syyskuu 04, 2013, 03:46:08 IP
We have a custom-made avatar builder and it works fine, but it's on a separate page from forum profile, where the rest of the avatar controls are. I want to make it so there's a 5th link below the other 4 avatar options that leads to the avatar builder.
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: margarett - syyskuu 04, 2013, 04:55:48 IP
When you build an avatar, how does it integrate with the member's profile? Does it allow automatic update of that profile or does it allow to save the image elsewhere and then the user has to go back to his profile and upload that image?

Anyway, that would be accomplished in Profile.template.php. I'm not with the computer right now, bit it should be fairly easy to locate, I guess.
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: live627 - syyskuu 04, 2013, 05:10:57 IP
Lainaus käyttäjältä: margarett - syyskuu 04, 2013, 04:55:48 IP
When you build an avatar, how does it integrate with the member's profile? Does it allow automatic update of that profile or does it allow to save the image elsewhere and then the user has to go back to his profile and upload that image
It shouldn't matter since all she wants is a link. But it is automatic.
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: wynnyelle - syyskuu 04, 2013, 05:17:56 IP
Ideally it would pop up as a part of the page that's there so you don't have to leave the page you are on and lose any information you have ready to save on there. Unless there's another way.
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: margarett - syyskuu 04, 2013, 05:24:08 IP
Since I have no idea how it works, I can only guess :P

If you only want a link then, as I told you, it should be easy to locate in Profile.template.php ;)
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: Burke ♞ Knight - syyskuu 04, 2013, 05:29:32 IP
Would be somewhere in the section below:

Koodi (Find) [Valitse]
function template_profile_avatar_select()
Otsikko: Re: Add link/button to our avatar maker on Forum Profile page.
Kirjoitti: wynnyelle - syyskuu 04, 2013, 05:55:21 IP
Well the exact link to it is here:

http://warriorcatsrpg.com/index.php?action=profile;area=avatarmakers