Change the post background of staffs

View previous topic View next topic Go down

Change the post background of staffs

Post by Ikerepc on Wed Jan 21, 2015 6:48 am

In place of rank name use this:
Code:
<span class="atf-rank">RANK TITLE HERE</span>

Than paste this code to JavaScript:
Code:
$(function() {
$('.atf-rank').closest('.post').addClass('atf-background');
});

Than paste this to CSS
Code:
.post.online.atf-background {
background: #E5F1F9, url("http://illiweb.com/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.atf-background {
background-color: #E5F1F9;
}
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Change the post background of staffs

Post by brandon_g on Thu Feb 19, 2015 3:17 pm

May we have a picture of the gradient these codes are for? Like what color(s) and stuff they are?

_________________
-Brandon

~Administrator
avatar
brandon_g
ATF Staff
ATF Staff

Posts : 628
Pts : 506
Reputation : 17
Join date : 2015-01-22
Location : USA
Full

View user profile http://broadcastingduo.forumotion.com

Back to top Go down

Re: Change the post background of staffs

Post by Ikerepc on Fri Feb 20, 2015 8:23 am

They have #E5F1F9 color of background, not gradient.
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Change the post background of staffs

Post by brandon_g on Fri Feb 20, 2015 12:08 pm

A backgroud and gradient are pretty much the same thing.

_________________
-Brandon

~Administrator
avatar
brandon_g
ATF Staff
ATF Staff

Posts : 628
Pts : 506
Reputation : 17
Join date : 2015-01-22
Location : USA
Full

View user profile http://broadcastingduo.forumotion.com

Back to top Go down

Re: Change the post background of staffs

Post by The Flash on Sun Feb 22, 2015 2:03 am

Interesting tutorial. But this is only for ATF, right?
avatar
The Flash
ATF Member

Posts : 319
Pts : 187
Reputation : 10
Join date : 2015-02-12
Full

View user profile http://spamheaven.icyboards.net

Back to top Go down

Re: Change the post background of staffs

Post by Ikerepc on Sun Feb 22, 2015 10:37 am

You can use it anywhere. At your forum too. Atf in code isn't important. It is here for code to be unicate and for copyright Smile
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Change the post background of staffs

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum