Post by • Ambrose • on Jul 24, 2018 22:35:38 GMT -8
Forum URL: areion.boards.net
I understand that this might need to be moved to the Coding section of PBS, but I have to ask you to please not do that because I really need help on this! I actually have a few threads in that section that have yet to be replied to and it's been months. Well, for this specific forum, I have been trying to work at it since I first started to add it, a little over a year ago, and I still can't figure it out. I even had a friend who tried to come and help me but even then it was just a jumble of boxes that didn't appear in the mini-profile right. She's been long gone now and so I'm taking up the slack trying to fix it.
I found another code that looked easier and so far I followed it to the best of my understanding... Then came the CSS and, ultimately, the Layout Template parts... This is what I used: support.proboards.com/thread/491844/original-hover-profile-colors-staff
As far as I can see, the CSS part is working okay except for one thing; the Ghost group doesn't have that border around it, though it should. I'm planning to add more groups too, so I want to make sure the CSS would work. For Guests, can they also have a border?
The Layout Templates are the worst part of this code because I cannot, for the life of me, get the boxes arranged properly...
I also want it a specific way if that's possible;
Students should not have Occupation or Subject showing in their mini-profile.
Mentors (Professors in the Potterverse) shouldn't have Year and House showing. I'm not really worried about the Age bit but it helps.
Other staff (Caretakers, Doctors, Librarians, etc.) should only have Age and Occupation showing, if that's possible, along with Blood Status, Sexual Orientation, and Relationship Status.
Lastly, the Ghosts are not students nor are they mentors... I am not sure what they should have, maybe a box that says they are deceased? Much like with the Guests, where it would just say they are a Guest.
Also, this little thing aggravates me because I can't figure out where it came from, since there's nothing showing up except a couple of dashes -- there's a dropdown button in the mini-profile when you hover over it. There shouldn't be anything like that.
The custom field names are showing in the profile but they aren't showing in the mini-profile.
Also, not sure why but it shouldn't show that House on the bottom (if you peruse the screenshot I send of my character.)
LAYOUT TEMPLATE
CSS
I found another code that looked easier and so far I followed it to the best of my understanding... Then came the CSS and, ultimately, the Layout Template parts... This is what I used: support.proboards.com/thread/491844/original-hover-profile-colors-staff
As far as I can see, the CSS part is working okay except for one thing; the Ghost group doesn't have that border around it, though it should. I'm planning to add more groups too, so I want to make sure the CSS would work. For Guests, can they also have a border?
The Layout Templates are the worst part of this code because I cannot, for the life of me, get the boxes arranged properly...
I also want it a specific way if that's possible;
Students should not have Occupation or Subject showing in their mini-profile.
Mentors (Professors in the Potterverse) shouldn't have Year and House showing. I'm not really worried about the Age bit but it helps.
Other staff (Caretakers, Doctors, Librarians, etc.) should only have Age and Occupation showing, if that's possible, along with Blood Status, Sexual Orientation, and Relationship Status.
Lastly, the Ghosts are not students nor are they mentors... I am not sure what they should have, maybe a box that says they are deceased? Much like with the Guests, where it would just say they are a Guest.
Also, this little thing aggravates me because I can't figure out where it came from, since there's nothing showing up except a couple of dashes -- there's a dropdown button in the mini-profile when you hover over it. There shouldn't be anything like that.
The custom field names are showing in the profile but they aren't showing in the mini-profile.
Also, not sure why but it shouldn't show that House on the bottom (if you peruse the screenshot I send of my character.)
LAYOUT TEMPLATE
<!-- Mini-Profile by Nick of Fidelius -->
<div class="{if $[user.group.name] == "Administrator"}
admin
{elseif $[user.group.name] == "Moderator"}
moderator
{elseif $[user.group.name] == "Cronus"}
cronus
{elseif $[user.group.name] == "Artemis"}
artemis
{elseif $[user.group.name] == "Eros"}
eros
{elseif $[user.group.name] == "Hecate"}
hecate
{elseif $[user.group.name] == "Osiris"}
osiris
{elseif $[user.group.name] == "Mentor"}
mentor
{elseif $[user.group.name] == "Caretaker"}
caretaker
{elseif $[user.group.name] == "Librarian"}
librarian
{elseif $[user.group.name] == "Doctor"}
doctor
{elseif $[user.group.name] == "Nurse"}
nurse
{elseif $[user.group.name] == "Cook"}
cook
{elseif $[user.group.name] == "Head"}
head
{elseif $[user.group.name] == "Deputy Head"}
deputyhead
{/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> <span title="Year">{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[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] == "Age"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Year"}$[user.mini_custom_field.value] at{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "House"}$[user.mini_custom_field.value]{/if}{/foreach}</span>
</div>
<!-- END CUSTOM BOX THREE-->
<!-- CUSTOM BOX FOUR -->
<div class="leifbox">
<span title="{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Blood Status"}$[user.mini_custom_field.value] year{/if}{/foreach} {foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Sexual Orientation"}$[user.mini_custom_field.value] at{/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] == "Application"}<option value="$[user.mini_custom_field.value]">APP</option>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Plotter"}<option value="$[user.mini_custom_field.value]">PLOT</a>{/if}{/foreach}
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Tracker"}<option value="$[user.mini_custom_field.value]">TRACKER</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>
CSS
/* Start Mini-Profile CSS */
.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: #181818;
}
// the below is how you color your border :)
div.admin div.mini-profile { border: 4px solid #e5e5e5; }
div.moderator div.mini-profile { border: 4px solid #c5c5c5; }
div.cronus div.mini-profile { border: 4px solid #cd7f32; }
div.artemis div.mini-profile { border: 4px solid #228b22; }
div.eros div.mini-profile { border: 4px solid #db7093; }
div.hecate div.mini-profile { border: 4px solid #6f2da8; }
div.osiris div.mini-profile { border: 4px solid #394243; }
div.ghost div.mini-profile { border: 4px solid #a5f2f3; }
/* div.mentor div.mini-profile { border: 4px solid 000000; }
div.caretaker div.mini-profile { border: 4px solid 000000; }
div.cook div.mini-profile { border: 4px solid 000000; }
div.librarian div.mini-profile { border: 4px solid 000000; }
div.doctor div.mini-profile { border: 4px solid 000000; }
div.nurse div.mini-profile { border: 4px solid 000000; }
div.deputy headmistress div.mini-profile { border: 4px solid 000000; }
div.deputy headmaster div.mini-profile { border: 4px solid 000000; }
div.headmistress div.mini-profile { border: 4px solid 000000; }
div.headmaster div.mini-profile { border: 4px solid 000000; } */
/* End Mini-Profile Code */