The Original Hover Mini-Profile with colors & staff!
Nov 26, 2013 9:45:06 GMT -8
Chris, ashycat!, and 16 more like this
Post by leif on Nov 26, 2013 9:45:06 GMT -8
Hello everyone! I am Leif aka Aki! I was the first to achieve mini-profiles that hover on the ProBoards service within the day of ProBoards v5 releasing, while other designers were stuck on figuring it out, I achieved it. I would like to share with you all ProBoards v5's original advanced hover mini profile that is extremely customizable with a great deal of profile fields for all of your needs! This is a complete tutorial and code set. Please feel free to modify my code for your own, personal use. You are welcome to be creative. If you do so, please do not redistribute the original code. Please note: I did not approve adaptions to any codes distributed by Adoxography, or any service outside of ProBoards Support. charoum's horizontal profile is the only approval I have ever given.
Due to how much of my time is a commodity at this time, I do not provide much Support. But, all the answers you probably need are already in this thread. Follow the guide's installation exactly, before modifying. Once it's installed and working, than start making small changes until you achieve your desired outcome.
I apologize to those who have been asking for my new mini-profile code that's available on my test board. This code has been exclusive to a role-play I'm a part on for a while. Enough time has passed and it seems people would like it. I have decided to release it for all to use. . I just wanted to thank everyone for all their support and their eagerness to use my new code. Thank-you all for using the old set. I'm glad I was able to create one of the first fully functioning hover codes (without using JavaScript). I'm so pleased to see how many different ways it has been adapted across ProBoards.
This code by default is set for a Harry Potter theme in mind, but it is editable. This requires some knowledge of basic editing of templates. I wasn't awesome enough to win the Profile Contest, but, I made this before the Profile Contest and have been slapping bugs out. I'm satisfied with this now. This is meant to be an entire board mini-profile revamp, not for just one person. Your admins can have different styles than members while retaining the basic look. If you want a less advance version, please check out the first version.
Notice: This entire template is designed by default for a Harry Potter site; but... Just set it up how it is in the guide to get it all working. Once it's working nice and shiny, you can go back and start editing it with your own fields. Why? Because it's easier to go back, then trying to do it all at once. Take it in steps! Thanks to ashycat! for her dropdown inspiration!
The Information:
See it in Action:
Here's a basic GIF preview without the hover effect that shows the range of colorization, for full effect just visit my test board.
Please be patient. I'm breaking this down step by step!
Changing Avatar Size (RECOMMENDED):
Adding New CSS
The Template:
The Footers:
Edit your Global Footers and add the following:
This will allow the In Character/Out of Character sections to load and load on every single page.
Background Group/Colors:
This feature should automatically select a border color/group based on the group the MEMBER is sorted into. I highly recommend setting the group description for each group to a single word so you can edit it into a code.
Help! I use images as my group name, how can I get this to work?
Many forums tend to use [img src="linkhere"] for their group titles. So, instead of this use Description to declare the group field:
Just click the group name field and a popup will come up like above that lets you set a description. Just title the Description as a regular group name field, and keep your image. Than use replace the code in the code box above with this:
This changes the user.group.name to user.group.description to call in the description instead.
Now Let's Paint (Adding Colors):
Okay! Now the colors! Remember that old CSS we saved at the bottom? This is going to be super simple... Remember the Hufflepuff example above that we changed to Human? Now let's do that with colors:
I Don't Have a Mini-Profile Border Like You:
Add a border in your regular visual sheet. I like between 7 to 10 pixels. That's all. The CSS will override the border color based on groups. The border, radius, etc will all take affect.
My Avatar Size isn't working
ProBoards' upload automatically resizes everything to 150x150 or less. This is really bad for RP forums, yes, I know. Simply link to it elsewhere on the web. There are other templates and plugins to prevent uploads. ProBoards' system does a fantastic job at resizing even web images for ProBoards purposes, however, it isn't sizes us RPers are accustomed with. So, simply link to it elsewhere.
Add Peter's Monetary System
Add this to where you want it
Edit: Please do not ask on Fidelius' cbox for help with this code.
Due to how much of my time is a commodity at this time, I do not provide much Support. But, all the answers you probably need are already in this thread. Follow the guide's installation exactly, before modifying. Once it's installed and working, than start making small changes until you achieve your desired outcome.
I apologize to those who have been asking for my new mini-profile code that's available on my test board. This code has been exclusive to a role-play I'm a part on for a while. Enough time has passed and it seems people would like it. I have decided to release it for all to use. . I just wanted to thank everyone for all their support and their eagerness to use my new code. Thank-you all for using the old set. I'm glad I was able to create one of the first fully functioning hover codes (without using JavaScript). I'm so pleased to see how many different ways it has been adapted across ProBoards.
This code by default is set for a Harry Potter theme in mind, but it is editable. This requires some knowledge of basic editing of templates. I wasn't awesome enough to win the Profile Contest, but, I made this before the Profile Contest and have been slapping bugs out. I'm satisfied with this now. This is meant to be an entire board mini-profile revamp, not for just one person. Your admins can have different styles than members while retaining the basic look. If you want a less advance version, please check out the first version.
Notice: This entire template is designed by default for a Harry Potter site; but... Just set it up how it is in the guide to get it all working. Once it's working nice and shiny, you can go back and start editing it with your own fields. Why? Because it's easier to go back, then trying to do it all at once. Take it in steps! Thanks to ashycat! for her dropdown inspiration!
The Information:
- 200x300 Hover Image. (widthxheight)
- Built for 150x200 avatar. (widthxheight)
- Large border based on member groups.
- Group automatically set!
- Six (6)+ customization fields.
- Option to hide/add more fields via member choice!
- Biography link
- Plotter link
- Different color schemes based on member groups.
- MP3 player
- Hover profile
- Option to use auto sorting even if you use images for your group title!
See it in Action:
- Another RPG: fidelius.forums.net
Here's a basic GIF preview without the hover effect that shows the range of colorization, for full effect just visit my test board.
Please be patient. I'm breaking this down step by step!
Changing Avatar Size (RECOMMENDED):
- Go to Admin > Themes > Your Theme > Advanced Styles & CSS > Style Sheet tab
- Around line 1143 (or press CTRL F and find .mini-profile { color: ) The line should look like this:
.mini-profile { color: @mini_text_color; font: @mini_text_font; background: @mini_background; border: @mini_border; .rounded-corners(@mini_border_radius); text-align: @mini_text_align; overflow: hidden; padding: 13px 10px; width: 150px; }
- Now what we're gonna do is change the 150px to 200px.
- Delete padding: 13px 10px;
- Seven lines below that around line 1150 find this:
.mini-profile .avatar { max-width: 150px; max-height: 150px; overflow-x: hidden; overflow-y: hidden; margin: auto; border-width: 0px; vertical-align: middle; }
- Change the max-height: 150px; to max-height:200px;
- A few lines below that find this:
.avatar_size_default img, .avatar_size_default default { max-height: 150px; max-width: 150px; }
- Change the max-height: 150px; to max-height:200px;
- Go to line 976 (or around there) and find:
.posts .post .content { padding-left: 10px; vertical-align: top; }
- Change the 10px to 60px
- Go to line 1036 (or around there) and find:
.messages .item .content { padding-left: 10px; word-wrap: break-word; overflow-x: auto; overflow-y: hidden; }
- Change the 10px to 60px
- Save.
Adding New CSS
- If you're not already on the style sheet, go to Admin > Themes > Your Theme > Advanced Styles & CSS > Style Sheet tab
- At the very end paste this code:
.ppinside { width:200px; height:300px; opacity:0;
transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-webkit-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
}
.ppinside:hover { width:200px; height:300px; opacity: 1; background-color:#52374d;
transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-webkit-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
}
.ppinside { width:200px; height:300px; margin:auto; text-align:center; }
.leifbox { width: 85px; height:20px; overflow:hidden; float:left; z-index:1; text-align:center; margin-left:10px;line-height:20px; margin-top:5px;}
div.leifbox { background-color: #212429; color: #ffffff; text-align:center; }
.leifbox select {
background: #212429;
width: 75px;
border: 0;
border-radius: 0;
height: 20px;
color: #e6e8e3;
}
.ac-container{
width: 100%;
margin: 5px auto 5px auto;
}
.ac-container label{
font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
padding: 5px 20px;
position: relative;
z-index: 20;
display: block;
margin-left:-20px;
height: 20px;
cursor: pointer;
// text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
line-height: 20px;
// font-size: 19px;
}
//.ac-container label:hover{ background: #5F512E; }
.ac-container input{ display: none; }
.ac-container article{
//background: rgba(37, 37, 39, 0.5);
margin-top: -1px;
overflow: hidden;
height: 0px;
position: relative;
z-index: 10;
-webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
}
.ac-container article.article-show{
-webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
}
.ac-container article p{
font-style: italic;
color: #EFEFEF;
line-height: 23px;
font-size: 11px;
padding: 3px;
}
.ac-container article.article-show{ height: 90px; overflow:hidden; margin:auto; }
.profilehead {
width:100%;
height:50px;
text-align:center;
overflow:hidden;
background-color: #68322b;
}
// the blow is how you color your border :)
div.admin div.mini-profile { border: 4px solid #b296bd; }
div.moderator div.mini-profile { border: 4px solid #b18ec0; }
div.icow div.mini-profile { border: 4px solid #97bdc7; }
div.govt div.mini-profile { border: 4px solid #77b1a1; }
div.hydra div.mini-profile { border: 4px solid #acca97; }
div.pyralis div.mini-profile { border: 4px solid #be889d; }
div.witchhunter div.mini-profile { border: 4px solid #c99382; }
div.adult div.mini-profile { border: 4px solid #97a3b1; }
div.magicalcreature div.mini-profile { border: 4px solid #a09696; }
div.student div.mini-profile { border: 4px solid #b1a572; }
div.child div.mini-profile { border: 4px solid #a78385; } - Save (we'll get back to editing the colors).
The Template:
- Go to Themes > Layout Templates > Mini-Profile
- Select all code and press backspace or delete to empty it out
- Copy this code in it's entirety:
<!-- Mini-Profile by Nick of Fidelius -->
<div class="{if $[user.group.name] == "Administrator"}
admin
{elseif $[user.group.name] == "Moderator"}
moderator
{elseif $[user.group.name] == "ICoW"}
icow
{elseif $[user.group.name] == "GovtEmployee"}
govt
{elseif $[user.group.name] == "HydraMember"}
hydra
{elseif $[user.group.name] == "Pyralis"}
pyralis
{elseif $[user.group.name] == "WitchHunter"}
witchhunter
{elseif $[user.group.name] == "Adult"}
adult
{elseif $[user.group.name] == "MagicalCreature"}
magicalcreature
{elseif $[user.group.name] == "Student"}
student
{elseif $[user.group.name] == "Child"}
child
{/if}">
<div class="$[miniprofile_class]" style="width:200px;height:400px;">
<div class="profilehead"><div style="padding-top:15px;text-shadow: 1px 1px 1px #000; color: #ffffff;">$[user]{if $[user.custom_title]}<br />$[user.custom_title]{/if}
</div> </div>
<div style="width:100%;height:300px;background-image: url('http://storage.proboards.com/5598878/i/V4FVmNuKAkTX5MxkH7M9.png');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Hover Image"}background-image:url('$[user.mini_custom_field.value]');{/if}{/foreach}background-size:cover;text-align:center;clear:both;"><div class="pphover"><div class="ppinside">
<div style="height:5px;clear:both;"></div>
<div style="max-width:150px;max-height:150px;margin-left:auto;margin-right:auto;">$[user.avatar]</div>
<section class="ac-container">
<label><input name="accordion-1" type="radio" /><div class="leifbox" style="width:180px;height:20px;text-align:center;margin-left:10px;margin-top:-5px;line-height:20px;font-size:12px;">In Character</div></label>
<article class="ac-small article-show">
<!-- In Character -->
<!-- CUSTOM BOX ONE -->
<div class="leifbox">
<span class="magicalability" title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Magical Abilities"}$[user.mini_custom_field.value]{/if}{/foreach}">{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Blood Status"}$[user.mini_custom_field.value]{/if}{/foreach}</span>
</div>
<!-- END CUSTOM BOX ONE-->
<!-- CUSTOM BOX TWO -->
<div class="leifbox">
<span title="Age">{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Age"}$[user.mini_custom_field.value]{/if}{/foreach}</span>
</div>
<!-- END CUSTOM BOX TWO-->
<!-- CUSTOM BOX THREE -->
<div class="leifbox">
<span title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "House"}$[user.mini_custom_field.value] at{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Magical School"}$[user.mini_custom_field.value]{/if}{/foreach}">School</span>
</div>
<!-- END CUSTOM BOX THREE-->
<!-- CUSTOM BOX FOUR -->
<div class="leifbox">
<span class="datinghover" title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Dating"}$[user.mini_custom_field.value]{/if}{/foreach}">{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Relationship Status"}$[user.mini_custom_field.value]{/if}{/foreach}</span>
</div>
<!-- END CUSTOM BOX FOUR-->
<!-- CUSTOM BOX FIVE -->
<div class="leifbox">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Occupation"}<span title="$[user.mini_custom_field.value]">Job</span>{/if}{/foreach}
</div>
<!-- END CUSTOM BOX FIVE -->
<!-- CUSTOM BOX SIX -->
<div class="leifbox">
<!-- drop test-->
<form name="theash">
<select name="menu" onChange="window.document.location.href=this.options[this.selectedIndex].value;" value="GO" style="width:75px;height:18px;margin-top:1px;border:0px;">
<option selected="selected"> ------</option>
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Biography Link"}<option value="$[user.mini_custom_field.value]">biography</option>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Plotter Link"}<option value="$[user.mini_custom_field.value]">plotter</a>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Tracker Link"}<option value="$[user.mini_custom_field.value]">tracker</a>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Diary Link"}<option value="$[user.mini_custom_field.value]">diary</a>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Requests Link"}<option value="$[user.mini_custom_field.value]">requests</a>{/if}{/foreach}
</select>
</form>
</div>
<!-- END CUSTOM BOX SIX -->
<!-- End In Character -->
</article>
<label><input name="accordion-1" type="radio" /><div class="leifbox" style="width:180px;height:20px;text-align:center;margin-left:10px;margin-top:-15px;line-height:20px;font-size:12px;">Out of Character</div></label>
<article class="ac-medium">
<!-- Out of Character -->
<div class="leifbox" style="float:left;height:20px;text-align:center;margin-right:5px;margin-left:10px;line-height:20px;">
$[user.posts] posts
</div>
<div class="leifbox" style="float:left;height:20px;text-align:center;margin-right:10px;margin-left:5px;line-height:20px;">
$[user.likes] likes
</div><div style="clear:both;"></div>
<div class="leifbox" style="height:20px;text-align:center;margin-top:5px;margin-right:5px;margin-left:10px;line-height:20px;">
<img src="http://i.imgur.com/xrTtguD.png" style="width:15px;height:14px;" /> <span class="money_amount" title="Galleons"></span>
</div>
<div class="leifbox" style="height:20px;text-align:center;margin-top:5px;margin-right:10px;margin-left:5px;line-height:20px;">
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Alias"}{if $[user.is_online]}<span style="color:#8ccf55;" title="Online">$[user.mini_custom_field.value]</span>
{else} <span title="Offline" style="color:#cf5558;">$[user.mini_custom_field.value]</span>{/if}{/if}{/foreach}
</div>
{foreach $[user.mini_custom_field]}
{if $[user.mini_custom_field.name] == "MP3 Link"}
<div class="leifbox" style="float:left;width:180px;height:20px;text-align:center;margin-top:5px;margin-left:10px;line-height:20px;">
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_mini.swf" width="100%" height="100%"><param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_mini.swf" /><param name="wmode" value="transparent"/><param name="FlashVars" value="mp3=$[user.mini_custom_field.value]"/><br></object>
</div>
{/if}
{/foreach}
<!-- End out of Character -->
</article>
</section>
</div></div></div>
<div class="profilehead">$[user.group]
</div>
</div>
</div> - Paste (CTRL + V) into the empty field
- Save!
The Footers:
Edit your Global Footers and add the following:
<script>// This is for ProBoards leif's mini profile; using accordion jss via radio buttons
$(document).ready(function(){
$('.ac-container input:radio').change(function(){
var $label = $(this).parent();
$label.siblings().filter(function(){
return !!$(this).find('input:radio').length;
}).next().removeClass('article-show');
if(this.checked){
$label.next().addClass('article-show')
}
});
});
proboards.on('pageChange', function() { $(document).ready(function(){
$('.ac-container input:radio').change(function(){
var $label = $(this).parent();
$label.siblings().filter(function(){
return !!$(this).find('input:radio').length;
}).next().removeClass('article-show');
if(this.checked){
$label.next().addClass('article-show')
}
});
}); });
proboards.on('afterSearch', function() { $(document).ready(function(){
$('.ac-container input:radio').change(function(){
var $label = $(this).parent();
$label.siblings().filter(function(){
return !!$(this).find('input:radio').length;
}).next().removeClass('article-show');
if(this.checked){
$label.next().addClass('article-show')
}
});
}); });</script>
This will allow the In Character/Out of Character sections to load and load on every single page.
Editing the Custom Profile Fields:
Editing fields is never fun! I know, but, we gotta do this! - Go to Admin > Members > Custom Profile Fields
- Fill out profile fields as needed, keep in mind by default this template only has 4 extra spaces (5 if you delete the likes and replace it). But, you can have as many as you want on your regular profile! There are some extra hidden ones!
- MP3 Link is built into this template so it's simple to add.
- Be sure to add a field titled Biography
- Be sure to add a field titled Plotter
- Be sure to add a field called Hover Image
- Be sure to create a field called Background Group
- Create a field called MP3 Link if you want MP3s
- The default fields this template includes are Year, Character Age, Blood Status, Relationship Status, Dating, Player Name
- Let's say you want to replace Year with whatever simply find this in the Mini-Profile Template:
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value]{/if}{/foreach}
- Replace the word Year with whatever field you created in Custom Profile Fields
- For the others repeat steps 10 & 11
Notice: The relationship status field is a bit different, if you hover over it it displays the Dating field. On our RPG we currently use it like "Dating" for relationship status and when hovering over it states "Julien Sol". Relationship Status = shown, Dating = hover.
Notice: Custom box three combines the fields: Year, House, and School. Change it how you'd like. This was meant to be an example of how advanced you can get!
Hover Image size is 200x300. This is your regular image that is shown. When hovered over it reveals the data. Avatar size is 150x200. This avatar is shown under the hover. Some asked why don't I make the avatar much, much bigger? Simple: Proportions, easier on ProBoards thumbnails to generate using smaller sizes, and I prefer setting it this way. It's personal preference to me so I don't mess around with the default avatar coding as much.
Advanced Feature: Show or Hide fields based on user choice.
There's a new feature now that's called... Hide! Do you have more than 6 options? That's no problem! You can easily hide one with a custom profile field. Sometimes showing 3 in one field like we did for School isn't enough, right? Find Custom Box Three:
Replace that with:
That code above will hide the 'School' field and give it an option in your profile. If Suzy selects to hide her school, nobody sees the school. You can let your members mix/match these. This is an ADVANCED feature. You will need to add a field to the Custom Profile Fields called 'Hide School' with the options Yes and No.
If you keep doing this you can by default HIDE some extra fields and have certain ones show and let your members decide.
Want to hide a field by default? Use this instead:
The above will require a field called 'Show School' instead of Hide.Notice: Custom box three combines the fields: Year, House, and School. Change it how you'd like. This was meant to be an example of how advanced you can get!
Hover Image size is 200x300. This is your regular image that is shown. When hovered over it reveals the data. Avatar size is 150x200. This avatar is shown under the hover. Some asked why don't I make the avatar much, much bigger? Simple: Proportions, easier on ProBoards thumbnails to generate using smaller sizes, and I prefer setting it this way. It's personal preference to me so I don't mess around with the default avatar coding as much.
Advanced Feature: Show or Hide fields based on user choice.
There's a new feature now that's called... Hide! Do you have more than 6 options? That's no problem! You can easily hide one with a custom profile field. Sometimes showing 3 in one field like we did for School isn't enough, right? Find Custom Box Three:
<!-- CUSTOM BOX THREE -->
<div class="leifbox">
<span title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "House"}$[user.mini_custom_field.value] at{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Magical School"}$[user.mini_custom_field.value]{/if}{/foreach}">School</span>
</div>
<!-- END CUSTOM BOX THREE-->
Replace that with:
<!-- CUSTOM BOX THREE -->
<div class="leifbox"{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Hide School"}{if $[user.mini_custom_field.value] == "Yes"} style="display:none;"{/if}{/if}{/foreach}>
<span title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "House"}$[user.mini_custom_field.value] at{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Magical School"}$[user.mini_custom_field.value]{/if}{/foreach}">School</span>
</div>
<!-- END CUSTOM BOX THREE-->
That code above will hide the 'School' field and give it an option in your profile. If Suzy selects to hide her school, nobody sees the school. You can let your members mix/match these. This is an ADVANCED feature. You will need to add a field to the Custom Profile Fields called 'Hide School' with the options Yes and No.
If you keep doing this you can by default HIDE some extra fields and have certain ones show and let your members decide.
Want to hide a field by default? Use this instead:
<!-- CUSTOM BOX THREE -->
<div class="leifbox"style="display:none;{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Show School"}{if $[user.mini_custom_field.value] == "Yes"} display:inline;{/if}{/if}{/foreach}">
<span title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "House"}$[user.mini_custom_field.value] at{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Magical School"}$[user.mini_custom_field.value]{/if}{/foreach}">School</span>
</div>
<!-- END CUSTOM BOX THREE-->
Background Group/Colors:
This feature should automatically select a border color/group based on the group the MEMBER is sorted into. I highly recommend setting the group description for each group to a single word so you can edit it into a code.
- Add in your groups in the header of the code using the DESCRIPTION word for each group.
- For example I added ICoW for International Confederation of Wizards
- Find this code in the Mini-Profile template:
<div class="{if $[user.group.description] == "Administrator"}
admin
{elseif $[user.group.name] == "Moderator"}
moderator
{elseif $[user.group.name] == "ICoW"}
icow
{elseif $[user.group.name] == "GovtEmployee"}
govt
{elseif $[user.group.name] == "HydraMember"}
hydra
{elseif $[user.group.name] == "Pyralis"}
pyralis
{elseif $[user.group.name] == "WitchHunter"}
witchhunter
{elseif $[user.group.name] == "Adult"}
adult
{elseif $[user.group.name] == "MagicalCreature"}
magicalcreature
{elseif $[user.group.name] == "Student"}
student
{elseif $[user.group.name] == "Child"}
child
{/if}"> - Modify the names between the groups. Our example ICoW can be changed to Human and the lowercased icow can be changed to human. For simplicity reasons keep it the same. Remember what you did here!
- Keep doing these until you replaced/added all of your groups.
Help! I use images as my group name, how can I get this to work?
Many forums tend to use [img src="linkhere"] for their group titles. So, instead of this use Description to declare the group field:
Just click the group name field and a popup will come up like above that lets you set a description. Just title the Description as a regular group name field, and keep your image. Than use replace the code in the code box above with this:
<div class="{if $[user.group.description] == "Administrator"}
admin
{elseif $[user.group.description] == "Moderator"}
moderator
{elseif $[user.group.description] == "ICoW"}
icow
{elseif $[user.group.description] == "GovtEmployee"}
govt
{elseif $[user.group.description] == "HydraMember"}
hydra
{elseif $[user.group.description] == "Pyralis"}
pyralis
{elseif $[user.group.description] == "WitchHunter"}
witchhunter
{elseif $[user.group.description] == "Adult"}
adult
{elseif $[user.group.description] == "MagicalCreature"}
magicalcreature
{elseif $[user.group.description] == "Student"}
student
{elseif $[user.group.description] == "Child"}
child
{/if}">
This changes the user.group.name to user.group.description to call in the description instead.
Now Let's Paint (Adding Colors):
Okay! Now the colors! Remember that old CSS we saved at the bottom? This is going to be super simple... Remember the Hufflepuff example above that we changed to Human? Now let's do that with colors:
- Go back to the style sheet, at the very bottom.
- Find the fields that look like this (There should be a few):
div.admin div.mini-profile { border: 4px solid #b296bd; }
div.moderator div.mini-profile { border: 4px solid #b18ec0; }
div.icow div.mini-profile { border: 4px solid #97bdc7; }
div.govt div.mini-profile { border: 4px solid #77b1a1; }
div.hydra div.mini-profile { border: 4px solid #acca97; }
div.pyralis div.mini-profile { border: 4px solid #be889d; }
div.witchhunter div.mini-profile { border: 4px solid #c99382; }
div.adult div.mini-profile { border: 4px solid #97a3b1; }
div.magicalcreature div.mini-profile { border: 4px solid #a09696; }
div.student div.mini-profile { border: 4px solid #b1a572; }
div.child div.mini-profile { border: 4px solid #a78385; } - Change icow to human to match the earlier editing we did.
- Just change the CSS to how you want.
- Just do this with the others to match your groups and you're done!
I Don't Have a Mini-Profile Border Like You:
Add a border in your regular visual sheet. I like between 7 to 10 pixels. That's all. The CSS will override the border color based on groups. The border, radius, etc will all take affect.
My Avatar Size isn't working
ProBoards' upload automatically resizes everything to 150x150 or less. This is really bad for RP forums, yes, I know. Simply link to it elsewhere on the web. There are other templates and plugins to prevent uploads. ProBoards' system does a fantastic job at resizing even web images for ProBoards purposes, however, it isn't sizes us RPers are accustomed with. So, simply link to it elsewhere.
Add Peter's Monetary System
Add this to where you want it
<span class="money_symbol"></span><span class="money_amount"></span>
Edit: Please do not ask on Fidelius' cbox for help with this code.