Adding blue and purple color around avatar [punBB, phpBB2, phpBB3, ModernBB and AwesomeBB]
3 posters
Page 1 of 1
Adding blue and purple color around avatar [punBB, phpBB2, phpBB3, ModernBB and AwesomeBB]
Hi all,
Recently, we developed a css code that allows everyone to show two colors around the avatar (blue and pink).
Demonstration
Code CSS
Add in: Display > Pictures and Colors > Colors & CSS > CSS Stylesheet > Add a new CSS code
Template modifications
Find (line 156)
Replace it with
in viewtopic_body find
Replace it with
in viewtopic_body find
Replace it with:
ModernBB
AwesomeBB
P.S: For avatars that are different (ex: https://prnt.sc/Kb2NKIlyR5Rt ), find this code:
Recently, we developed a css code that allows everyone to show two colors around the avatar (blue and pink).
Demonstration
- Images:
Code CSS
Add in: Display > Pictures and Colors > Colors & CSS > CSS Stylesheet > Add a new CSS code
Version modifications
punBB
- Code:
.user-basic-info a {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 1px;
background: rgba(255,255,,0.5);
overflow: hidden;
border-radius: 10px;
border: 1px solid #f4f4f4;
max-width: 60%;
z-index: 2;
margin: 0 auto;
}
.user-basic-info a::before {
content: "";
position: absolute;
width: 80px;
height: 140%;
background: linear-gradient(#00ccff,#00ccff,#d400d4,#d400d4);
border-radius: 5px;
z-index: 1;
overflow: hidden;
animation: animate 2s linear infinite;
}
.user-basic-info a img {
position: relative;
z-index: 1;
}
@keyframes animate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg)
}
}
Template modifications
Find (line 156)
- Code:
{postrow.displayed.POSTER_AVATAR}<br /><br />
Replace it with
- Code:
<div class='avatar__container'>{postrow.displayed.POSTER_AVATAR} </div><br /><br />
phpBB2
in viewtopic_body find
- Code:
{postrow.displayed.POSTER_AVATAR}<br /><br />
Replace it with
- Code:
<div class='avatar__container'>{postrow.displayed.POSTER_AVATAR} </div><br /><br />
- Code:
.avatar__container {
position: relative;
display: inline-block;
padding: 3px;
background: rgba(255,255,,0.5);
overflow: hidden;
border-radius: 10px;
border: 1px solid #f4f4f4;
z-index: 2;
margin: 0 auto;
}
.avatar__container:before {
content: "";
position: absolute;
width: 80px;
height: 150%;
background: linear-gradient(#00ccff,#00ccff,#d400d4,#d400d4);
border-radius: 5px;
z-index: 1;
overflow: hidden;
animation: animate 2s linear infinite;
left: 15px;
bottom: -25px;
}
.avatar__container img {
position: relative;
z-index: 3;
border-radius: 10px;
background-color: #fff;
}
@keyframes animate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg)
}
}
phpBB3
in viewtopic_body find
- Code:
<dt>
{postrow.displayed.POSTER_AVATAR}
<br /><strong style="font-size:1.2em">{postrow.displayed.POSTER_NAME}</strong>
</dt>
Replace it with:
- Code:
<dt>
<div class='avatar__container'>
{postrow.displayed.POSTER_AVATAR}
</div>
<br /><strong style="font-size:1.2em">{postrow.displayed.POSTER_NAME}</strong>
</dt>
- Code:
.avatar__container {
position: relative;
display: inline-block;
padding: 3px;
background: rgba(255,255,,0.5);
overflow: hidden;
border-radius: 10px;
border: 1px solid #f4f4f4;
z-index: 2;
margin: 0 auto;
}
.avatar__container:before {
content: "";
position: absolute;
width: 80px;
height: 140%;
background: linear-gradient(#00ccff,#00ccff,#d400d4,#d400d4);
border-radius: 5px;
z-index: 1;
overflow: hidden;
animation: animate 2s linear infinite;
left: 15px;
bottom: -25px;
}
.avatar__container img {
position: relative;
z-index: 3;
border-radius: 10px;
}
ModernBB
- Code:
Coming soon
AwesomeBB
- Code:
Coming soon
P.S: For avatars that are different (ex: https://prnt.sc/Kb2NKIlyR5Rt ), find this code:
- Code:
.user-basic-info a img {
position: relative;
z-index: 1;
}
- Code:
.user-basic-info a img {
position: relative;
z-index: 1;
width: 150px;
height: 95px;
object-fit: cover;
}
Sir Chivas™ and Vilgefortz like this post
Re: Adding blue and purple color around avatar [punBB, phpBB2, phpBB3, ModernBB and AwesomeBB]
Lovely.
Vilgefortz- AdministratorPackage Team LeaderPackage Team
- Posts : 218
Cash : 698
Join date : 2024-01-03
Age : 31
mihai likes this post
Re: Adding blue and purple color around avatar [punBB, phpBB2, phpBB3, ModernBB and AwesomeBB]
Interesting, they look nice. Thanks for sharing.
Sir Chivas™- Moderator Team LeaderCommunity Team
- Posts : 104
Cash : 362
Join date : 2024-01-03
Location : Windy City
mihai likes this post
Similar topics
» [phpBB3] Prefixes System in the Topics Title
» What's the color of your eye?
» Saint Patrick's Avatar Contest @ OT
» What's the color of your eye?
» Saint Patrick's Avatar Contest @ OT
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|