The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Username that sparkles with icon.

View previous topic View next topic Go down

Username that sparkles with icon.

Post by E.rr0r on Fri Nov 23, 2012 5:36 am

How to make a username that sparkles that has icon in its left? Mine just won't work, I don't know what to do. Please help me.

This is my code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(http://i47.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("http://i48.tinypic.com/2yjo4kn.gif) no-repeat left");}

E.rr0r
Forumember

Male Posts : 49
Reputation : 1
Language : CSS, HTML, Javascript, English, Tagalog
Location : Philippines

Back to top Go down

Re: Username that sparkles with icon.

Post by iyaaz on Fri Nov 23, 2012 5:51 am

CSS

Code:
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

Javascript Code

Code:
/* Kruna ispred nicka administratora. By BubbleDreams 2011 -
AdminCentar.net . Nemoj uklanjati copyright! Don't remove copyright! */

$(function() {
if($('a[href="/u1"] span strong')){
            $('a[href="/u1"] span strong').before('<img src="http://i47.servimg.com/u/f47/17/47/06/15/shield11.png" border="0" />');
    }
});


works for phpBB3 why don't you update?

iyaaz
Forumember

Male Posts : 350
Reputation : 8
Language : English
Location : London

http://iyaaz.forumotion.co.uk/

Back to top Go down

Re: Username that sparkles with icon.

Post by E.rr0r on Fri Nov 23, 2012 6:00 am

Code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(http://i47.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

Is this right?

E.rr0r
Forumember

Male Posts : 49
Reputation : 1
Language : CSS, HTML, Javascript, English, Tagalog
Location : Philippines

Back to top Go down

Re: Username that sparkles with icon.

Post by Kaizer Lee on Fri Nov 23, 2012 12:18 pm

Code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(http://i47.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

You forgot to add a " after and before the first background: url. Also, is the 2nd background url for the avatar? If so, please put it below the .last postAvatar

Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

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