Post by AcetoneAlligator on May 29, 2016 20:14:42 GMT
I had a bit of a genius moment and decided to develop a way to add your Minecraft skin/username to your user profiles on a Proboards forum, since I know this would probably be useful. I tested it with multiple themes, and it seems to work amazingly.
This uses Craftatar API, by the way, so it should be easy for you to figure out how to also add 3D skin models, etc. by changing the image link.
(If you don't know how, PM me)
So, if you wanna do this, you have to go to your admin CP.
-----------------------------------------------
Create a new custom profile field titled "Minecraft" (CaSe SeNsItIvE!)
The type should be at "Text Field".
Next to the "Text Field" type thing, you'll see a link that says "(View/Edit)". Clicky click..
Set the character limit to 16.
Pressing "Save" will close you out of the little window.
Make sure that "Location" is set to "Profiles and Mini-Profiles", and that "Members and Staff with Power" can edit it.
It should look like this...
Next, you need to add the code...
-----------------------------------------------
There, go to Themes >> Layout Templates
You should see a list of categories. ("Forum Wrapper" should be the first one, I think?). Please select "User Profile", fourth up from the bottom.
After this, please direct your attention to the little blue tabs at the top. These should include "User Profile", "Summary", "Activity", etc. So on and so forth..
Please select "Summary".
This is where you will place your code.. so that your custom profile field value will show up as a Minecraft skin and a username!
Scroll to the bottom of the template.
You should see this:
This is the very bottom of the template. See those {if} and </td> tags? We're gonna add some dope-ass code in there...
When you add it, it should look like this.
All you have to do now is go to your profile and edit your personal settings. You should see the "Minecraft" field. Enter your username and.. voila!
This uses Craftatar API, by the way, so it should be easy for you to figure out how to also add 3D skin models, etc. by changing the image link.
(If you don't know how, PM me)
So, if you wanna do this, you have to go to your admin CP.
-----------------------------------------------
Create a new custom profile field titled "Minecraft" (CaSe SeNsItIvE!)
The type should be at "Text Field".
Next to the "Text Field" type thing, you'll see a link that says "(View/Edit)". Clicky click..
Set the character limit to 16.
Pressing "Save" will close you out of the little window.
Make sure that "Location" is set to "Profiles and Mini-Profiles", and that "Members and Staff with Power" can edit it.
It should look like this...
Next, you need to add the code...
-----------------------------------------------
There, go to Themes >> Layout Templates
You should see a list of categories. ("Forum Wrapper" should be the first one, I think?). Please select "User Profile", fourth up from the bottom.
After this, please direct your attention to the little blue tabs at the top. These should include "User Profile", "Summary", "Activity", etc. So on and so forth..
Please select "Summary".
This is where you will place your code.. so that your custom profile field value will show up as a Minecraft skin and a username!
Scroll to the bottom of the template.
You should see this:
This is the very bottom of the template. See those {if} and </td> tags? We're gonna add some dope-ass code in there...
<div class="content-box right-col">
{foreach $[user.custom_field]}
{if $[user.custom_field.name] == "Minecraft"}
<b>Minecraft Character:</b> $[user.custom_field.value]
<br />
<img src="https://crafatar.com/avatars/$[user.custom_field.value]" alt="$[user.custom_field.value]" height="100" width="100">
</div>
When you add it, it should look like this.
All you have to do now is go to your profile and edit your personal settings. You should see the "Minecraft" field. Enter your username and.. voila!